--- apiVersion: v1 kind: Service metadata: name: artifactapi namespace: artifactapi spec: internalTrafficPolicy: Cluster ports: - name: http port: 80 protocol: TCP targetPort: http selector: app: api sessionAffinity: None type: ClusterIP --- # Authenticated front door for the web UI only: api-route sends /ui and /oauth2 # here, oauth2-proxy authenticates and forwards to the ui Service. Every other # path reaches the api Service above directly and stays unauthenticated. apiVersion: v1 kind: Service metadata: name: oauth2 namespace: artifactapi spec: internalTrafficPolicy: Cluster ports: - name: http port: 80 protocol: TCP targetPort: http selector: app: oauth2 sessionAffinity: None type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: ui namespace: artifactapi spec: internalTrafficPolicy: Cluster ports: - name: http port: 80 protocol: TCP targetPort: http selector: app: ui sessionAffinity: None type: ClusterIP --- apiVersion: v1 kind: Service metadata: name: redis namespace: artifactapi spec: internalTrafficPolicy: Cluster ports: - name: redis port: 6379 protocol: TCP targetPort: redis selector: app: redis sessionAffinity: None type: ClusterIP