4 changed files with 11 additions and 11 deletions
			
			
		| @ -1,20 +1,20 @@ | |||||
| apiVersion: apps/v1beta2 | apiVersion: apps/v1beta2 | ||||
| kind: Deployment | kind: Deployment | ||||
| metadata: | metadata: | ||||
|   name: guestbook-ui |   name: guestbook-custom | ||||
| spec: | spec: | ||||
|   replicas: 1 |   replicas: 1 | ||||
|   revisionHistoryLimit: 3 |   revisionHistoryLimit: 3 | ||||
|   selector: |   selector: | ||||
|     matchLabels: |     matchLabels: | ||||
|       app: guestbook-ui |       app: guestbook-custom | ||||
|   template: |   template: | ||||
|     metadata: |     metadata: | ||||
|       labels: |       labels: | ||||
|         app: guestbook-ui |         app: guestbook-custom | ||||
|     spec: |     spec: | ||||
|       containers: |       containers: | ||||
|       - image: gcr.io/heptio-images/ks-guestbook-demo:0.2 |       - image: gcr.io/heptio-images/ks-guestbook-demo:0.2 | ||||
|         name: guestbook-ui |         name: guestbook-custom | ||||
|         ports: |         ports: | ||||
|         - containerPort: 80 |         - containerPort: 80 | ||||
|  | |||||
| @ -1,10 +1,10 @@ | |||||
| apiVersion: v1 | apiVersion: v1 | ||||
| kind: Service | kind: Service | ||||
| metadata: | metadata: | ||||
|   name: guestbook-ui |   name: guestbook-custom | ||||
| spec: | spec: | ||||
|   ports: |   ports: | ||||
|   - port: 80 |   - port: 80 | ||||
|     targetPort: 80 |     targetPort: 80 | ||||
|   selector: |   selector: | ||||
|     app: guestbook-ui |     app: guestbook-custom | ||||
|  | |||||
| @ -1,19 +1,19 @@ | |||||
| apiVersion: networking.istio.io/v1alpha3 | apiVersion: networking.istio.io/v1alpha3 | ||||
| kind: VirtualService | kind: VirtualService | ||||
| metadata: | metadata: | ||||
|   name: guestbook-ui |   name: guestbook-custom | ||||
| spec: | spec: | ||||
|   hosts: |   hosts: | ||||
|   - guestbook-ui |   - guestbook-custom | ||||
|   http: |   http: | ||||
|   - match: |   - match: | ||||
|     - uri: |     - uri: | ||||
|         prefix: "/" |         prefix: "/" | ||||
|     route: |     route: | ||||
|     - destination: |     - destination: | ||||
|         host: guestbook-ui |         host: guestbook-custom | ||||
|         subset: v2 |         subset: v2 | ||||
|   - route: |   - route: | ||||
|     - destination: |     - destination: | ||||
|         host: guestbook-ui |         host: guestbook-custom | ||||
|         subset: v1 |         subset: v1 | ||||
|  | |||||
					Loading…
					
					
				
		Reference in new issue