gitops-zurrli/apps/camper/owntracks-fe/deployment.yaml

43 lines
969 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: frontend
spec:
selector:
matchLabels:
app: frontend
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
env:
- name: SERVER_HOST
value: recorder.owntracks
- name: SERVER_PORT
value: "8083"
- name: LISTEN_PORT
value: "8083"
image: git.tbrnt.ch/tobru/ot-frontend:2.12.0
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /usr/share/nginx/html/config
name: config
ports:
- containerPort: 8083
protocol: TCP
name: nginx
resources: {}
volumes:
- name: config
configMap:
name: frontend
imagePullSecrets:
- name: registry