Added a semaphore service account

This commit is contained in:
Khwezi
2026-04-12 13:50:09 +02:00
parent c6a3b4c473
commit e1196d437f

View File

@@ -5,6 +5,12 @@ metadata:
name: semaphore name: semaphore
--- ---
apiVersion: v1 apiVersion: v1
kind: ServiceAccount
metadata:
name: semaphore-sa
namespace: semaphore
---
apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: semaphore-data-pvc name: semaphore-data-pvc
@@ -58,6 +64,7 @@ spec:
labels: labels:
app: semaphore app: semaphore
spec: spec:
serviceAccountName: semaphore-sa
affinity: affinity:
nodeAffinity: nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
@@ -120,18 +127,14 @@ spec:
- name: semaphore-persistent-storage - name: semaphore-persistent-storage
mountPath: /tmp/semaphore mountPath: /tmp/semaphore
subPath: tmp subPath: tmp
- name: ssh-keys-secret - name: ssh-keys-volume
mountPath: /home/semaphore/.ssh/id_ed25519 mountPath: /home/semaphore/.ssh
subPath: id_ed25519 readOnly: true
- name: ssh-keys-secret
mountPath: /home/semaphore/.ssh/id_ed25519.pub
subPath: id_ed25519.pub
volumes: volumes:
- name: semaphore-persistent-storage - name: semaphore-persistent-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: semaphore-data-pvc claimName: semaphore-data-pvc
- name: ssh-keys-secret - name: ssh-keys-volume
secret: secret:
secretName: semaphore-secrets secretName: semaphore-secrets
defaultMode: 384 defaultMode: 384