Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (34 sloc) 672 Bytes
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ic-deploy
spec:
replicas: 1
template:
metadata:
labels:
app: ic
spec:
initContainers:
- name: msginit
image: centos:7
command:
- "bin/bash"
- "-c"
- "echo INIT_DONE > /ic/this"
volumeMounts:
- mountPath: /ic
name: msg
containers:
- name: main
image: centos:7
command:
- "bin/bash"
- "-c"
- "while true; do cat /ic/this; sleep 5; done"
volumeMounts:
- mountPath: /ic
name: msg
volumes:
- name: msg
emptyDir: {}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.