Differences between revisions 1 and 2
Revision 1 as of 2021-10-18 09:06:24
Size: 537
Editor: PieterSmit
Comment:
Revision 2 as of 2021-10-18 09:09:37
Size: 538
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
   }}}

k8s/StudyNotes/Deployments

  • Deployment wraps, ReplicaSets, pods, allows for roll backs

    • Same format as ReplicSets

      apiVersion: apps/v1
      kind: Deployment
      metadata
        name: myapp-deployment
        labels:
          app: myapp
          type: front-end
      spec:
        template
          metadata
            name: mayapp-pod
            labels:
              app: myapp
              type: front-end
            spec:
              containers:
              - name: nginx-container
                image: nginz
        replicas: 3
        selector:
          matchLabels:
            type: front-end

k8s/StudyNotes/Deployments (last edited 2021-10-18 09:09:37 by PieterSmit)