fix(hermes-webui): add init container to create webui user entry
This commit is contained in:
parent
f886934963
commit
a893406374
1 changed files with 19 additions and 1 deletions
|
|
@ -16,7 +16,21 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
runAsUser: 1000
|
initContainers:
|
||||||
|
- name: create-webui-user
|
||||||
|
image: busybox
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
echo "hermeswebui:x:1000:1000::/home/hermeswebui:/bin/sh" >> /etc/passwd
|
||||||
|
echo "hermeswebui:x:1000:" >> /etc/group
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
volumeMounts:
|
||||||
|
- name: webui-etc
|
||||||
|
mountPath: /etc
|
||||||
containers:
|
containers:
|
||||||
- name: hermes-agent
|
- name: hermes-agent
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
@ -142,6 +156,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: hermes-data
|
- name: hermes-data
|
||||||
mountPath: /home/hermeswebui/.hermes
|
mountPath: /home/hermeswebui/.hermes
|
||||||
|
- name: webui-etc
|
||||||
|
mountPath: /etc
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
@ -166,6 +182,8 @@ spec:
|
||||||
- name: hermes-data
|
- name: hermes-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: hermes-agent-pvc
|
claimName: hermes-agent-pvc
|
||||||
|
- name: webui-etc
|
||||||
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue