apiVersion: v1
kind: Service
metadata:
  labels: # pods
    app: todo-web-application-h2
  name: todo-web-application-h2
  namespace: default
spec:
  ports:
  - nodePort: 32003
    port: 8080
    protocol: TCP
    targetPort: 8080
  selector:
    app: todo-web-application-h2
    # version: v1 # access using versin labels
  sessionAffinity: ClientIP # to keep sessionAffinity to same pod
  type: LoadBalancer
