33 lines
593 B
YAML
33 lines
593 B
YAML
|
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
|