apiVersion: v1
kind: Service
metadata:
  labels:
    app: app1
  name: app1
  namespace: app2-ns
spec:
  ports:
  - name: 8081-80
    port: 8081
    protocol: TCP
    targetPort: 80
  selector:
    app: app1
  type: ClusterIP
