apiVersion: apps/v1
kind: Deployment 
metadata:
  name: myapp-deployment
  labels:
   tier: frontend
   app: nginx
spec:
  selector:
    matchLabels:
      app: myapp
  replicas: 3
  template:
      metadata:
        name: ngin-2
        labels:
          app: myapp
      spec:
        containers:
          - name: nginx
            image: nginx    
