k8s/app02/ub_de.yaml
2022-03-28 17:13:04 +08:00

25 lines
443 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ubuntu
namespace: app02
labels:
app: test02
spec:
replicas: 1
selector:
matchLabels:
app: test02
template:
metadata:
labels:
app: test02
name: ub-test
spec:
containers:
- name: test02
image: ubuntu
command:
- "/bin/bash"
args: ["-c", "while true; do echo hello; sleep 10;done"]