Files
homelab/k8s/apps/hexound/deployment.yaml
Ultradesu ce4172b435
Some checks are pending
Auto-update README / Generate README and Create MR (push) Waiting to run
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 12s
Check with kubeconform / lint (push) Successful in 23s
Increase CPU limits
2025-11-24 13:19:04 +02:00

73 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: hexound
spec:
replicas: 1
selector:
matchLabels:
app: hexound
template:
metadata:
labels:
app: hexound
spec:
volumes:
- name: hexound-repo
emptyDir: {}
- name: tmp-dir
emptyDir: {}
- name: run-dir
emptyDir: {}
- name: nginx-logs
emptyDir: {}
initContainers:
- name: git-cloner
image: alpine/git
resources:
requests:
memory: "32Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "300m"
command:
- git
- clone
- --depth=1
- https://github.com/house-of-vanity/hexound.ru.git
- /repo
volumeMounts:
- name: hexound-repo
mountPath: /repo
containers:
- name: hexound
image: trafex/php-nginx:3.8.0
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "256Mi"
cpu: "300m"
volumeMounts:
- name: hexound-repo
mountPath: /var/www/html
readOnly: true
- name: tmp-dir
mountPath: /tmp
- name: run-dir
mountPath: /run
- name: nginx-logs
mountPath: /var/lib/nginx/logs
securityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
runAsNonRoot: true
runAsUser: 101
runAsGroup: 101
ports:
- name: http
containerPort: 8080
protocol: TCP