apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello-nginx
spec:
  replicas: 6
  selector:
    matchLabels:
      app: hello-nginx  
  template: 
    metadata:
      labels:
        app: hello-nginx
    spec: 
      containers: 
      - name: nginx
        image: nginx:1.17-alpine
        ports:
        - containerPort: 80 

        resources:
          requests:
            memory: "100Mi"
            cpu: "200m"
          limits:
            memory: "200Mi"
            cpu: "250m"

        volumeMounts: 
        - mountPath: /etc/nginx/conf.d
          name: nginx-conf
          readOnly: true

      volumes:
      - name: nginx-conf
        configMap:
          name: nginx-conf
          items:
            - key: nginx.conf
              path: nginx.conf