Fix crash loop error in longhorn-iscsi-installation
We install iscsi in the init container then sleep in the main container. This avoids crash loop after finishing installing iscsi Longhorn #1741 Signed-off-by: Phan Le <phan.le@rancher.com>
This commit is contained in:
parent
4d52211839
commit
90350b1903
@ -16,7 +16,8 @@ spec:
|
|||||||
app: longhorn-iscsi-installation
|
app: longhorn-iscsi-installation
|
||||||
spec:
|
spec:
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
containers:
|
hostPID: true
|
||||||
|
initContainers:
|
||||||
- name: iscsi-installation
|
- name: iscsi-installation
|
||||||
command:
|
command:
|
||||||
- nsenter
|
- nsenter
|
||||||
@ -28,4 +29,8 @@ spec:
|
|||||||
image: alpine:3.7
|
image: alpine:3.7
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
hostPID: true
|
containers:
|
||||||
|
- name: sleep
|
||||||
|
image: k8s.gcr.io/pause:3.1
|
||||||
|
updateStrategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
Loading…
Reference in New Issue
Block a user