apps/v1 · Namespaced Resource

Deployment

Deployment enables declarative updates for Pods and ReplicaSets.

Looking for some examples?

There are 3 examples of Deployment that you can use as a starting point to create your own.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  namespace: shopping-cart # Deployment is namespaced resource
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
        - name: nginx
          image: nginx:1.19.5
          ports:
            - containerPort: 80

Tired of using Kubectl? 😓

Experience hassle-free Kubernetes management with a powerful GUI.

Screenshot of Aptakube showing a list of pods from 2 clusters in a single view