deployments/phoenix/deployment.yaml
2026-03-12 08:32:13 +00:00

48 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: phoenix-app
namespace: web
labels:
app: phoenix-app
spec:
replicas: 1
selector:
matchLabels:
app: phoenix-app
template:
metadata:
labels:
app: phoenix-app
spec:
serviceAccountName: phoenix-sa
imagePullSecrets:
- name: harbor-secret
securityContext:
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: phoenix-app
image: harbor.mxhunt.in/k8s-lab/phoenix:c124f4748fc9bd33cc96f63198dfa5c7db683f22
ports:
- containerPort: 8080
env:
- name: DEBUG_PATH
valueFrom:
configMapKeyRef:
name: phoenix-config
key: DEBUG_PATH
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 10