Kubernetes Deployment Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 21: Line 21:
   [[#replicas|replicas]]: 1
   [[#replicas|replicas]]: 1
   [[#selector|selector]]:
   [[#selector|selector]]:
    matchLabels:
      function: 'builder'
   [[#strategy|strategy]]:
   [[#strategy|strategy]]:
   [[#revisionHistoryLimit|revisionHistoryLimit]]:
   [[#revisionHistoryLimit|revisionHistoryLimit]]:

Revision as of 23:05, 11 September 2019

External

Internal

Overview

Example

apiVersion: apps/v1
kind: Deployment
metadata:
  name: archaeopteryx
  labels:
    color: blue
spec:
  replicas: 1
  selector:
    matchLabels:
      function: 'builder'
  strategy:
  revisionHistoryLimit:
  progressDeadlineSeconds:
  template:

.spec Elements

replicas

Specifies the number of desired pods. Defaults to 1.

selector

Specifies the label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.

strategy

revisionHistoryLimit

progressDeadlineSeconds

template