Kubespec Logo kubespec.dev

apps/v1 · Namespaced Resource

Deployment

        Deployment enables declarative updates for Pods and ReplicaSets.
      

Click on Property Name to see the description, and Pink Types to expand schema.

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

No links for Deployment yet

You can help us by adding useful links on GitHub