You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
749 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- image: phico/frontend:2.0
imagePullPolicy: Always
name: frontend
ports:
- name: frontend
containerPort: 4200
env:
- name: BACKEND_URI
valueFrom:
configMapKeyRef:
name: frontend-config
key: backend-uri
- name: GUESTBOOK_NAME
valueFrom:
configMapKeyRef:
name: frontend-config
key: guestbook-name