Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 621 Bytes

03.Deployments.md

File metadata and controls

33 lines (27 loc) · 621 Bytes
deploy > replicaset > pod



kubectl get deploy

kubectl describe deploy frontend-deployment

    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: deployment-1
    spec:
      replicas: 2
      selector:
        matchLabels:
          name: busybox-pod
      template:
        metadata:
          labels:
            name: busybox-pod
        spec:
          containers:
          - name: busybox-container
            image: busybox888
            command:
            - sh
            - "-c"
            - echo Hello Kubernetes! && sleep 3600

kubectl scale deploy httpd-frontend --replicas 5