Added semaphore role binding
This commit is contained in:
@@ -10,6 +10,30 @@ metadata:
|
|||||||
name: semaphore-sa
|
name: semaphore-sa
|
||||||
namespace: semaphore
|
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
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@@ -123,13 +147,15 @@ 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-volume
|
- name: ssh-keys-volume
|
||||||
mountPath: /home/semaphore/.ssh
|
mountPath: /home/semaphore/.ssh/id_ed25519
|
||||||
readOnly: true
|
subPath: id_ed25519
|
||||||
|
- name: ssh-keys-volume
|
||||||
|
mountPath: /home/semaphore/.ssh/id_ed25519.pub
|
||||||
|
subPath: id_ed25519.pub
|
||||||
volumes:
|
volumes:
|
||||||
- name: semaphore-persistent-storage
|
- name: semaphore-persistent-storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user