apiVersion: apps/v1 kind: Deployment metadata: name: myapp-deployment labels: app: myapp type: frontend spec: template: metadata: name: myapp-pod labels: app: myapp type: frontend spec: containers: - name: nginx-container image: nginx resources: limits: memory: "500Mi" cpu: "500Mi" replicas: 5 selector: matchLabels: type: frontend