apiVersion: apps/v1
kind: Deployment
metadata:
  name: app2
  labels:
    mycompany.com/department: hr
spec:
  replicas: 1
  selector:
    matchLabels:
      name: app2
  template:
    metadata:
      labels:
        name: app2
        mycompany.com/department: hr
    spec:
      containers:
        - image: nginx
          name: app2
