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? ๐Ÿ˜“

Give Aptakube a go โ€” a modern, lightweight Kubernetes interface.

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