apiVersion: v1
kind: Service
metadata:
  name: api
  labels:
    application: api
    component: api
  namespace: final-space
  annotations:
    cloud.google.com/neg: '{"ingress": true}'
    beta.cloud.google.com/backend-config: '{"ports": {"80":"api-backend"}}'
spec:
  type: LoadBalancer
  sessionAffinity: ClientIP
  ports:
  - port: 80
    protocol: TCP
    targetPort: 9000
  selector:
    application: api
    component: api
