Resource TypeSelect whether to deploy a Deployment, StatefulSet or DaemonSet.
Deployment
A Deployment provides declarative updates for Pods ReplicaSets. More information.
StatefulSet
StatefulSet is the workload API object used to manage stateful applications. More information.
DaemonSet
A DaemonSet ensures that all (or some) nodes run a copy of a pod. More information.
DeploymentEnter the details for the deployment.
The name of the deployment must be unique, and is used by Kubernetes when updating an existing resource.
Learn more about deployment names.
The number of pod replicas to create from this deployment.
Learn more about replicas.
The number revisions to retain.
Learn more about revision history limits.
The maximum time for a deployment to make progress before it's considered to be failed. Blue/Green deployments will point the service to the new deployment only once the new deployments has succeeded.
Learn more about progression deadlines.

Labels
Add labels to be applied to the deployment resource, pods managed by the deployment resource, the service and the ingress.

Learn more about labels.
Deployment StrategyChoose how the deployment will be updated.
Recreate deploymentsdelete existing pods before creating new pods
Use this option when container versions can not be mixed. This strategy does result in downtime.
Learn more about the recreate strategy.
Rolling update deployments deploys new pods while remove older pods
This option requires that two container versions can run side by side, and avoids downtime.
Learn more about the rolling update strategy.
VolumesAdd volumes to be exposed to the containers in this step.
Volumes can reference externally managed storage devices, or can reference config map and secret resources managed by this step through the ConfigMap and Secret features.
Learn more about volumes.
ContainersAdd containers that make up the pod managed by this deployment

nginx

Configuring the nginx container from feed Feeds-1321
Ports
80/TCP
DNS PolicyNo DNS policy specified
DNS ConfigNo DNS configuration options specified.
Host NetworkingNo host network access specified
Pod Security ContextNo pod security settings configured.
Pod Affinity / Anti-AffinityDefine the pod affinity or anti-affinity that determines where the pod resources created by this deployment resource will be placed.
Preferred anti-affinity with weight 100 matching topology key kubernetes.io/hostname label key app is in value web
Pod affinity rules determine which nodes a pod will be placed on based on the presence or absence of other pods. More information.
Node AffinityDefine the node affinity that determines where the pod resources created by this deployment resource will be placed.
Pods can be scheduled onto a node as long as at least one of the Required rules is satisfied. In effect this means theRequired rules are combined with the boolean "or" operator. Preferred rules will attempt to be satisfied, but if not the pods will still be scheduled.
TolerationsAdd tolerations to allow pod resources to be scheduled on tainted nodes
Pod AnnotationsAdd annotations to configure the pods resources created by the deployment resource.
Deployment AnnotationsAdd annotations to configure the Deployment resource.
Service Account NameConfigure the service account for the pod
When processes in containers inside pods access the cluster API they are authenticated as a service account.
Leaving this field blank results in no service account being specified in the pod spec. When the pods are created, the default service account in the same namespace will be automatically assigned.
Readiness GatesDefine the readniess gates to assign to the container.
A new line separated list of pod readiness gates. More information.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: octopus-deployment
  labels:
    app: web
spec:
  selector:
    matchLabels:
      octopusexport: OctopusExport
  replicas: 1
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: web
        octopusexport: OctopusExport
    spec:
      containers:
        - name: nginx
          image: nginx
          ports:
            - containerPort: 80
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
            - weight: 100
              podAffinityTerm:
                labelSelector:
                  matchExpressions:
                    - key: app
                      operator: In
                      values:
                        - web
                topologyKey: kubernetes.io/hostname