Compare commits

...

3 Commits

Author SHA1 Message Date
c4b22b5f8d Merge pull request 'dev' (#34) from dev into main
Reviewed-on: #34
2026-04-12 13:55:11 +02:00
Khwezi
2d4ccc7910 Added semaphore role binding 2026-04-12 13:54:24 +02:00
Khwezi
e1196d437f Added a semaphore service account 2026-04-12 13:50:09 +02:00

View File

@@ -5,6 +5,36 @@ metadata:
name: semaphore name: semaphore
--- ---
apiVersion: v1 apiVersion: v1
kind: ServiceAccount
metadata:
name: semaphore-sa
namespace: semaphore
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: semaphore-role
namespace: semaphore
rules:
- apiGroups: [""]
resources: ["pods", "secrets", "configmaps"]
verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: semaphore-rb
namespace: semaphore
subjects:
- kind: ServiceAccount
name: semaphore-sa
namespace: semaphore
roleRef:
kind: Role
name: semaphore-role
apiGroups: rbac.authorization.k8s.io
---
apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: semaphore-data-pvc name: semaphore-data-pvc
@@ -58,6 +88,7 @@ spec:
labels: labels:
app: semaphore app: semaphore
spec: spec:
serviceAccountName: semaphore-sa
affinity: affinity:
nodeAffinity: nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
@@ -116,22 +147,20 @@ spec:
volumeMounts: volumeMounts:
- name: semaphore-persistent-storage - name: semaphore-persistent-storage
mountPath: /home/semaphore mountPath: /home/semaphore
subPath: home
- 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/id_ed25519
subPath: id_ed25519 subPath: id_ed25519
- name: ssh-keys-secret - name: ssh-keys-volume
mountPath: /home/semaphore/.ssh/id_ed25519.pub mountPath: /home/semaphore/.ssh/id_ed25519.pub
subPath: 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