---
kind: Service
apiVersion: v1
metadata:
  name: hello-elixir
  labels:
    app: hello-elixir
spec:
  ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: 8080
  selector:
    app: hello-elixir
  type: LoadBalancer
#  externalTrafficPolicy: Local
#  sessionAffinity: ClientIP

#
#---
#kind: Ingress
#apiVersion: networking.k8s.io/v1beta1
#metadata:
#  name: hello-elixir
#spec:
#  rules:
#    - http:
#        paths:
#          - path: /
#            backend:
#              serviceName: hello-elixir
#              servicePort: 8080