ubuntu-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: ubuntu
spec:
replicas: 1
selector:
matchLabels:
app: "ubuntu"
template:
metadata:
labels:
app: "ubuntu"
spec:
containers:
- name: ubuntu
image: ubuntu
command:
- sleep
- infinity
Si ce n'est pas attaché, ce sera Crash Loop Back Off
command:
- sleep
- infinity
yuta:~ $ kubectl apply -f ubuntu-pod.yaml
deployment.apps/ubuntu created
Recommended Posts