test theme volume mount
This commit is contained in:
parent
9a4ffcee83
commit
3ac04dd27e
@ -16,6 +16,24 @@ spec:
|
||||
labels:
|
||||
io.kompose.service: hydra-dispatcher
|
||||
spec:
|
||||
initContainers:
|
||||
# This container clones the desired git repo to the EmptyDir volume.
|
||||
- name: git-theme
|
||||
image: alpine/git # Any image with git will do
|
||||
args:
|
||||
- clone
|
||||
- --single-branch
|
||||
- --
|
||||
- https://forge.cadoles.com/CNOUS/hydra-dispatcher-mse-theme.git # Your repo
|
||||
- /theme # Put it in the volume
|
||||
securityContext:
|
||||
runAsUser: 1 # Any non-root user will do. Match to the workload.
|
||||
allowPrivilegeEscalation: false
|
||||
readOnlyRootFilesystem: true
|
||||
volumeMounts:
|
||||
- name: git-theme
|
||||
mountPath: /theme
|
||||
|
||||
containers:
|
||||
- name: hydra-dispatcher-php-fpm
|
||||
image: reg.cadoles.com/cadoles/hydra-dispatcher-kube:0.0.1
|
||||
@ -31,8 +49,10 @@ spec:
|
||||
- configMapRef:
|
||||
name: hydra-dispatcher-env
|
||||
volumeMounts:
|
||||
- mountPath: /app/config/hydra
|
||||
name: hydra-dispatcher-apps
|
||||
- name: hydra-dispatcher-apps
|
||||
mountPath: /app/config/hydra
|
||||
- name: git-theme
|
||||
mountPath: /theme
|
||||
resources: {}
|
||||
|
||||
- image: reg.cadoles.com/cadoles/hydra-dispatcher-kube:0.0.1
|
||||
@ -61,3 +81,5 @@ spec:
|
||||
- name: hydra-dispatcher-apps
|
||||
configMap:
|
||||
name: hydra-dispatcher-apps
|
||||
- name: git-theme
|
||||
emptyDir: {}
|
||||
|
Loading…
Reference in New Issue
Block a user