This commit is contained in:
2026-03-29 15:33:13 +00:00
parent 00b79aef02
commit ad508d5ceb

View File

@@ -5,7 +5,7 @@ metadata:
namespace: openbao namespace: openbao
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteMany
resources: resources:
requests: requests:
storage: 5Gi storage: 5Gi
@@ -46,6 +46,24 @@ spec:
labels: labels:
app: openbao app: openbao
spec: spec:
securityContext:
fsGroup: 1000
fsGroupChangePolicy: "OnRootMismatch"
initContainers:
- name: fix-permissions
image: busybox:1.36
command:
- sh
- -c
- |
mkdir -p /openbao/file
chown -R 100:1000 /openbao/file
chmod -R ug+rwX /openbao/file
securityContext:
runAsUser: 0
volumeMounts:
- name: data
mountPath: /openbao/file
containers: containers:
- name: openbao - name: openbao
image: ghcr.io/openbao/openbao:2.4.3 image: ghcr.io/openbao/openbao:2.4.3
@@ -60,7 +78,7 @@ spec:
- name: config - name: config
mountPath: /openbao/config mountPath: /openbao/config
- name: data - name: data
mountPath: /openbao/data mountPath: /openbao/file
volumes: volumes:
- name: config - name: config
configMap: configMap: