apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp-deployment
  labels:
    app: myapp
    type: frontend
spec:
  selector:
    matchLabels:
      app: myapp
  replicas: 3
  template:
    metadata:
      name: nginx-pod
      labels:
        type: webserver
        app: myapp

    spec:
      containers:
        - name: nginx-container
          image: nginx