Files
homelab/k8s/apps/pasarguard/deployment.yaml
ab 792421ffc5
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 13s
Check with kubeconform / lint (push) Successful in 14s
Update k8s/apps/pasarguard/deployment.yaml
Enabled PasarGuard API
2025-11-06 13:36:29 +00:00

66 lines
1.4 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pasarguard
labels:
app: pasarguard
annotations:
reloader.stakater.com/auto: "true"
spec:
selector:
matchLabels:
app: pasarguard
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: pasarguard
spec:
nodeSelector:
kubernetes.io/hostname: master.tail2fe2d.ts.net
containers:
- name: pasarguard-web
image: 'pasarguard/panel:v1.4.1'
imagePullPolicy: Always
envFrom:
- secretRef:
name: pasarguard-secrets
env:
- name: UVICORN_HOST
value: "0.0.0.0"
- name: UVICORN_PORT
value: "8000"
- name: DOCS
value: "true"
- name: UVICORN_SSL_CERTFILE
value: "/app/tls/tls.crt"
- name: UVICORN_SSL_KEYFILE
value: "/app/tls/tls.key"
ports:
- name: http
containerPort: 8000
protocol: TCP
volumeMounts:
- name: tls
mountPath: /app/tls
readOnly: true
volumes:
- name: tls
secret:
secretName: pasarguard-tls
---
apiVersion: v1
kind: Service
metadata:
name: pasarguard
spec:
selector:
app: pasarguard
ports:
- protocol: TCP
port: 80
targetPort: 8000