52 lines
1.0 KiB
YAML
52 lines
1.0 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"
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
protocol: TCP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pasarguard
|
|
spec:
|
|
selector:
|
|
app: pasarguard
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 8000
|