write-ups-challenges-2022-2023/k8s_easter_eggs/part4/challenge.yaml

33 lines
593 B
YAML
Raw Permalink Normal View History

2022-11-24 21:59:22 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: cool-webapp-check-it-out
labels:
app: cool-webapp
spec:
replicas: 1
selector:
matchLabels:
app: cool-webapp
template:
metadata:
labels:
app: cool-webapp
spec:
restartPolicy: Always
containers:
- name: cool-webapp
image: us-docker.pkg.dev/capturetheklarrioflag/gcr.io/part4:latest
---
apiVersion: v1
kind: Service
metadata:
name: cool-webapp-check-it-out
spec:
selector:
app: cool-webapp
ports:
- protocol: TCP
port: 3001
targetPort: 3001