Files
fleet-infra/soft-serve/soft-serve-deployment.yaml
2024-09-03 10:46:04 -04:00

46 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: soft-serve
namespace: soft-serve
spec:
replicas: 1
selector:
matchLabels:
app: soft-serve
strategy:
type: Recreate
template:
metadata:
labels:
app: soft-serve
spec:
containers:
- env:
- name: SOFT_SERVE_INITIAL_ADMIN_KEYS
valueFrom:
secretKeyRef:
name: soft-serve-secret
key: admin_key
- name: SOFT_SERVE_SSH_PUBLIC_URL
value: ssh://git.michaelthomson.dev
image: charmcli/soft-serve:latest
name: soft-serve
ports:
- containerPort: 23231
protocol: TCP
- containerPort: 23232
protocol: TCP
- containerPort: 23233
protocol: TCP
- containerPort: 9418
protocol: TCP
volumeMounts:
- mountPath: /soft-serve
name: soft-serve-pvc
restartPolicy: Always
volumes:
- name: soft-serve-pvc
persistentVolumeClaim:
claimName: soft-serve-pvc