helm/headscale/webui/deployment.yaml

47 lines
1.0 KiB
YAML
Raw Normal View History

2023-09-06 04:40:25 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: headscale-webui
spec:
selector:
matchLabels:
app: headscale-webui
template:
metadata:
labels:
app: headscale-webui
spec:
volumes:
- name: headscale-webui
persistentVolumeClaim:
claimName: headscale-webui
- name: headscale-config
configMap:
name: headscale-8mfb922bbb
containers:
- name: headscale-webui
image: headscale-webui
resources:
limits:
memory: "128Mi"
cpu: "200m"
requests:
memory: "32Mi"
cpu: "10m"
ports:
- containerPort: 5000
env:
- name: TZ
value: Asia/Shanghai
envFrom:
- configMapRef:
name: headscale-webui
- secretRef:
name: headscale-webui
volumeMounts:
- mountPath: /data
name: headscale-webui
- mountPath: /etc/headscale
name: headscale-config