Browse Source

test

pull/139/head
alliot-qima 3 years ago
parent
commit
82e8545453
  1. 10
      guestbook/guestbook-ui-deployment.yaml
  2. 4
      guestbook/guestbook-ui-svc.yaml

10
guestbook/guestbook-ui-deployment.yaml

@ -1,20 +1,20 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: guestbook-ui name: nginx
spec: spec:
replicas: 1 replicas: 1
revisionHistoryLimit: 3 revisionHistoryLimit: 3
selector: selector:
matchLabels: matchLabels:
app: guestbook-ui app: nginx
template: template:
metadata: metadata:
labels: labels:
app: guestbook-ui app: nginx
spec: spec:
containers: containers:
- image: gcr.io/heptio-images/ks-guestbook-demo:0.2 - image: nginx:latest
name: guestbook-ui name: nginx
ports: ports:
- containerPort: 80 - containerPort: 80

4
guestbook/guestbook-ui-svc.yaml

@ -1,10 +1,10 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: guestbook-ui name: nginx
spec: spec:
ports: ports:
- port: 80 - port: 80
targetPort: 80 targetPort: 80
selector: selector:
app: guestbook-ui app: nginx

Loading…
Cancel
Save