Browse Source

add haha

pull/27/head
locmai-kms 6 years ago
parent
commit
06b5664aab
  1. 8
      guestbook/guestbook-ui-deployment.yaml
  2. 2
      guestbook/guestbook-ui-gateway.yaml
  3. 4
      guestbook/guestbook-ui-svc.yaml
  4. 8
      guestbook/guestbook-ui-virtualsvc.yaml

8
guestbook/guestbook-ui-deployment.yaml

@ -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

2
guestbook/guestbook-ui-gateway.yaml

@ -1,7 +1,7 @@
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: Gateway kind: Gateway
metadata: metadata:
name: guestbook name: guestbook-custom
spec: spec:
selector: selector:
app: istio-ingressgateway app: istio-ingressgateway

4
guestbook/guestbook-ui-svc.yaml

@ -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

8
guestbook/guestbook-ui-virtualsvc.yaml

@ -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…
Cancel
Save