2 changed files with 7 additions and 7 deletions
@ -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 |
||||
|
@ -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…
Reference in new issue