add ssh persistence
This commit is contained in:
@@ -15,3 +15,4 @@ data:
|
|||||||
SEMAPHORE_ADMIN_EMAIL: "aggarwalakshun@gmail.com"
|
SEMAPHORE_ADMIN_EMAIL: "aggarwalakshun@gmail.com"
|
||||||
SEMAPHORE_ADMIN: "admin"
|
SEMAPHORE_ADMIN: "admin"
|
||||||
SEMAPHORE_LDAP_ACTIVATED: "'no'"
|
SEMAPHORE_LDAP_ACTIVATED: "'no'"
|
||||||
|
SEMAPHORE_SSH_PATH: /root/.ssh/
|
||||||
|
|||||||
@@ -11,3 +11,17 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: longhorn-semaphore-ssh
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 50Mi
|
||||||
|
|||||||
@@ -59,7 +59,13 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: semaphore-secrets
|
name: semaphore-secrets
|
||||||
key: key
|
key: key
|
||||||
|
volumeMounts:
|
||||||
|
- name: ssh
|
||||||
|
mountPath: /root/.ssh/
|
||||||
volumes:
|
volumes:
|
||||||
- name: db
|
- name: db
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: longhorn-semaphore
|
claimName: longhorn-semaphore
|
||||||
|
- name: ssh
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: longhorn-semaphore-ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user