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