apiVersion: apps/v1
kind: Deployment
metadata:
  name: web-prod
  namespace: web1
spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
  selector:
    matchLabels: 
      app: nginx   
  template:
    metadata:
      labels:
        app: nginx 
    spec:              
      containers:
        - name: web
          image: bharamicrosystems/nginx:v1
          imagePullPolicy: IfNotPresent
          resources:
            requests:
              memory: "400Mi"
              cpu: "500m"
            limits:
              memory: "1Gi"
              cpu: "1000m"
