[zh] modify busybox to busybox:1.28 in dir examples
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: count
|
- name: count
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args:
|
args:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: count
|
- name: count
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args:
|
args:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
@@ -22,13 +22,13 @@ spec:
|
|||||||
- name: varlog
|
- name: varlog
|
||||||
mountPath: /var/log
|
mountPath: /var/log
|
||||||
- name: count-log-1
|
- name: count-log-1
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args: [/bin/sh, -c, 'tail -n+1 -f /var/log/1.log']
|
args: [/bin/sh, -c, 'tail -n+1 -f /var/log/1.log']
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: varlog
|
- name: varlog
|
||||||
mountPath: /var/log
|
mountPath: /var/log
|
||||||
- name: count-log-2
|
- name: count-log-2
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args: [/bin/sh, -c, 'tail -n+1 -f /var/log/2.log']
|
args: [/bin/sh, -c, 'tail -n+1 -f /var/log/2.log']
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: varlog
|
- name: varlog
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: count
|
- name: count
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args:
|
args:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: busybox-cnt01
|
- name: busybox-cnt01
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt01; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt01; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
memory: "200Mi"
|
memory: "200Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
- name: busybox-cnt02
|
- name: busybox-cnt02
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt02; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt02; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
memory: "100Mi"
|
memory: "100Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
- name: busybox-cnt03
|
- name: busybox-cnt03
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt03; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt03; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
@@ -32,6 +32,6 @@ spec:
|
|||||||
memory: "200Mi"
|
memory: "200Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
- name: busybox-cnt04
|
- name: busybox-cnt04
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt04; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt04; sleep 10;done"]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: busybox-cnt01
|
- name: busybox-cnt01
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt01; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt01; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
@@ -16,7 +16,7 @@ spec:
|
|||||||
memory: "200Mi"
|
memory: "200Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
- name: busybox-cnt02
|
- name: busybox-cnt02
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt02; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt02; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
memory: "100Mi"
|
memory: "100Mi"
|
||||||
cpu: "100m"
|
cpu: "100m"
|
||||||
- name: busybox-cnt03
|
- name: busybox-cnt03
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt03; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt03; sleep 10;done"]
|
||||||
resources:
|
resources:
|
||||||
@@ -32,6 +32,6 @@ spec:
|
|||||||
memory: "200Mi"
|
memory: "200Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
- name: busybox-cnt04
|
- name: busybox-cnt04
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
args: ["-c", "while true; do echo hello from cnt04; sleep 10;done"]
|
args: ["-c", "while true; do echo hello from cnt04; sleep 10;done"]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: busybox-cnt01
|
- name: busybox-cnt01
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: "300Mi"
|
memory: "300Mi"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hello
|
- name: hello
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
|||||||
@@ -13,6 +13,6 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: c
|
- name: c
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: ["sh", "-c", "echo Processing item $ITEM && sleep 5"]
|
command: ["sh", "-c", "echo Processing item $ITEM && sleep 5"]
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: count
|
- name: count
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args: [/bin/sh, -c,
|
args: [/bin/sh, -c,
|
||||||
'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done']
|
'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done']
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ spec:
|
|||||||
# These containers are run during pod initialization
|
# These containers are run during pod initialization
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: install
|
- name: install
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command:
|
command:
|
||||||
- wget
|
- wget
|
||||||
- "-O"
|
- "-O"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
env:
|
env:
|
||||||
- name: SERVICE_PORT
|
- name: SERVICE_PORT
|
||||||
value: "80"
|
value: "80"
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hello
|
- name: hello
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ]
|
command: [ "sh", "-c", "echo 'Hello AppArmor!' && sleep 1h" ]
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- name: sec-ctx-demo
|
- name: sec-ctx-demo
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command: [ "sh", "-c", "sleep 1h" ]
|
command: [ "sh", "-c", "sleep 1h" ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: sec-ctx-vol
|
- name: sec-ctx-vol
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ spec:
|
|||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
- name: shell
|
- name: shell
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: container-test
|
- name: container-test
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: all-in-one
|
- name: all-in-one
|
||||||
mountPath: "/projected-volume"
|
mountPath: "/projected-volume"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: container-test
|
- name: container-test
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: all-in-one
|
- name: all-in-one
|
||||||
mountPath: "/projected-volume"
|
mountPath: "/projected-volume"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: container-test
|
- name: container-test
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: token-vol
|
- name: token-vol
|
||||||
mountPath: "/service-account"
|
mountPath: "/service-account"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: test-projected-volume
|
- name: test-projected-volume
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
args:
|
args:
|
||||||
- sleep
|
- sleep
|
||||||
- "86400"
|
- "86400"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ spec:
|
|||||||
- "bar.remote"
|
- "bar.remote"
|
||||||
containers:
|
containers:
|
||||||
- name: cat-hosts
|
- name: cat-hosts
|
||||||
image: busybox
|
image: busybox:1.28
|
||||||
command:
|
command:
|
||||||
- cat
|
- cat
|
||||||
args:
|
args:
|
||||||
|
|||||||
Reference in New Issue
Block a user