apiVersion: apps/v1

kind: Deployment

metadata:
  name: nginx-deployment
  labels:
    app: nginx-ex

spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx-ex

  template:
    metadata:
      labels:
        app: nginx-ex
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        ports:
        - containerPort: 80