---
apiVersion: v1
kind: Service
metadata:
  name: watchstate
  namespace: watchstate
spec:
  internalTrafficPolicy: Cluster
  ports:
    - name: http
      port: 8080
      protocol: TCP
      targetPort: http
  selector:
    app: watchstate
  sessionAffinity: None
  type: ClusterIP
---
# Front-door entry Service: the HTTPRoute for watchstate.k8s.syd1.au.unkin.net
# targets this; all traffic enters via oauth2-proxy.
apiVersion: v1
kind: Service
metadata:
  name: watchstate-oauth2
  namespace: watchstate
spec:
  internalTrafficPolicy: Cluster
  ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: http
  selector:
    app: watchstate-oauth2
  sessionAffinity: None
  type: ClusterIP
