apiVersion: v1
kind: Service
metadata:
  name: nexus
  namespace: my-test-namespace
  annotations:
    k8s-dogu-operator.cloudogu.com/ces-services: '[{"name":"nexus", "port":8082, "location":"/nexus", "pass": "/nexus"}, {"name":"nexus-docker-registry", "port":8082, "location": "/v2", "pass": "/nexus/repository/docker-registry/v2"}]'
spec:
  selector:
    app: nexus
  ports:
    - name: "8082"
      protocol: TCP
      port: 8082
      targetPort: 8082
    - name: "8081"
      protocol: TCP
      port: 8081
      targetPort: 8081