Files
k3s-gitops/apps/semaphore/deployment.yaml

37 lines
949 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

apiVersion: apps/v1
kind: Deployment
metadata:
name: semaphore
namespace: semaphore
spec:
replicas: 1
selector:
matchLabels:
app: semaphore
template:
metadata:
labels:
app: semaphore
spec:
securityContext:
fsGroup: 1000 # ← ВОТ ЭТО ДОБАВЛЕНО
containers:
- name: semaphore
image: semaphoreui/semaphore:latest
env:
- name: SEMAPHORE_DB_DIALECT
value: bolt
- name: SEMAPHORE_DB_PATH
value: /var/lib/semaphore/semaphore.db
- name: SEMAPHORE_PLAYBOOK_PATH
value: /tmp/semaphore/
ports:
- containerPort: 3000
volumeMounts:
- name: semaphore-data
mountPath: /var/lib/semaphore
volumes:
- name: semaphore-data
persistentVolumeClaim:
claimName: semaphore-data