apiVersion: v1
kind: Service
metadata:
  namespace: default
  name: whoami2
  labels:
    app2: whoami2
spec:
  selector:
    app2: whoami2
  ports:
    - port: 80
      protocol: TCP
      targetPort: 8001
