diff --git a/init-example1.yaml b/init-example1.yaml index b9445ea..33f06cc 100644 --- a/init-example1.yaml +++ b/init-example1.yaml @@ -6,24 +6,9 @@ spec: containers: - name: nginx image: nginx - ports: - - containerPort: 80 - volumeMounts: - - name: workdir - mountPath: /usr/share/nginx/html - # These containers are run during pod initialization initContainers: - name: install image: busybox command: - - wget - - "-O" - - "/work-dir/index.html" - - http://info.cern.ch - volumeMounts: - - name: workdir - mountPath: "/work-dir" - dnsPolicy: Default - volumes: - - name: workdir - emptyDir: {} + - sleep + - "3600" diff --git a/init-example2.yaml b/init-example2.yaml index cdadd98..8eca257 100644 --- a/init-example2.yaml +++ b/init-example2.yaml @@ -6,9 +6,24 @@ spec: containers: - name: nginx image: nginx + ports: + - containerPort: 80 + volumeMounts: + - name: workdir + mountPath: /usr/share/nginx/html + # These containers are run during pod initialization initContainers: - name: install image: busybox command: - - sleep - - "3600" + - wget + - "-O" + - "/work-dir/index.html" + - http://info.cern.ch + volumeMounts: + - name: workdir + mountPath: "/work-dir" + dnsPolicy: Default + volumes: + - name: workdir + emptyDir: {}