``` apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment l . . .

Aneek Bera:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80

If the question is about edit deploy & add something, under which spec section should we add those?

Radoslaw Czajkowski:
if you will be editing something related to the pod settings then you need to make changes in the second spec, if the changes to be made are related to the deployment itself (for example number of replicas) then you edit the first spec

Aneek Bera:
Still confused. What abt adding name/protocol and other related stuff.? @Radoslaw Czajkowski

Radoslaw Czajkowski:
protocol is a container setting so the second pod spec

Radoslaw Czajkowski:
as a guess, you most likely will want to edit the second spec

Radoslaw Czajkowski:
in the first spec you edit these things

Radoslaw Czajkowski:

  replicas: 3
  selector:
    matchLabels:
      app: nginx

Radoslaw Czajkowski:
number of replicas and template selectors