python/python-guestbook/src/frontend/kubernetes-manifests/guestbook-frontend.deployment.yaml (30 lines of code) (raw):
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-guestbook-frontend
labels:
app: python-guestbook
tier: frontend
spec:
replicas: 1
selector:
matchLabels:
app: python-guestbook
tier: frontend
template:
metadata:
labels:
app: python-guestbook
tier: frontend
spec:
containers:
- name: frontend
image: python-guestbook-frontend
ports:
- name: http-server
containerPort: 8080
env:
- name: PORT
value: "8080"
- name: GUESTBOOK_API_ADDR
value: python-guestbook-backend:8080