Add extra initContainers, containers, volumes to agent and server
With plugin support, agents and servers need more customization. This patch enables initContainers, extraContainers, extraVolumes and extraVolumeMounts to be added to those services. Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
spire-agent:
|
||||
initContainers:
|
||||
- name: extra-init
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -xec
|
||||
- |
|
||||
echo 'hi there' > /extra/file
|
||||
volumeMounts:
|
||||
- name: extra
|
||||
mountPath: /extra
|
||||
extraContainers:
|
||||
- name: extra
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -xec
|
||||
- |
|
||||
[ -f /extra/file ]
|
||||
while true; do sleep 1000; done
|
||||
volumeMounts:
|
||||
- name: extra
|
||||
mountPath: /extra
|
||||
extraVolumeMounts:
|
||||
- name: extra
|
||||
mountPath: /extra
|
||||
extraVolumes:
|
||||
- name: extra
|
||||
emptyDir: {}
|
||||
|
||||
spire-server:
|
||||
initContainers:
|
||||
- name: extra-init
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -xec
|
||||
- |
|
||||
echo 'hi there' > /extra/file
|
||||
volumeMounts:
|
||||
- name: extra
|
||||
mountPath: /extra
|
||||
extraContainers:
|
||||
- name: extra
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -xec
|
||||
- |
|
||||
[ -f /extra/file ]
|
||||
while true; do sleep 1000; done
|
||||
volumeMounts:
|
||||
- name: extra
|
||||
mountPath: /extra
|
||||
extraVolumeMounts:
|
||||
- name: extra
|
||||
mountPath: /extra
|
||||
extraVolumes:
|
||||
- name: extra
|
||||
emptyDir: {}
|
||||
Reference in New Issue
Block a user