apiVersion: v1
kind: Service
metadata:
  name: web-app
spec:
  selector:
    app: web-app
  ports:
    - name: http
      protocol: 'TCP'
      port: 80          # port on which the service will be exposed
      targetPort: 80    # port on which the pod is listening
    - name: https
      protocol: 'TCP'
      port: 443
      targetPort: 443
  type: LoadBalancer