apiVersion: v1 kind: Service metadata: name: app2-service spec: type: ClusterIP selector: app: app2 ports: - port: 80 targetPort: 80