﻿apiVersion: apps/v1
kind: Deployment
metadata: 
  name: nginx
spec: 
  replicas: 2 
  selector: 
    matchLabels: 
      run: nginx 
  template: 
    metadata: 
      labels: 
        run: nginx 
    spec: 
      containers: 
      - name: nginx 
        image: nginx 
        resources: 
          requests: 
            cpu: 400m 
            memory: 6Mi 
          limits: 
            cpu: 400m 
            memory: 6Mi 
        ports: 
        - containerPort: 80