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
If this is not attached, it will be Crash Loop Back Off
          command:
            - sleep
            - infinity
yuta:~ $ kubectl apply -f ubuntu-pod.yaml 
deployment.apps/ubuntu created
        Recommended Posts