apiVersion: v1
kind: Service
metadata:
  name: nginx-consul-example
  namespace: vault
spec:
  selector:
    app: nginx
  type: LoadBalancer
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: 80
  - name: https
    port: 443
    protocol: TCP
    targetPort: 443