service.yaml 440 B

12345678910111213141516
  1. {{- if and .Values.inbound_IP .Values.inbound_port }}
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: {{ .Release.Name }}-ingress
  6. spec:
  7. type: LoadBalancer
  8. selector:
  9. {{- include "openvpn.selectorLabels" . | nindent 4 }}
  10. ports:
  11. - name: ingress
  12. protocol: {{ .Values.inbound_proto | default "UDP" | upper }}
  13. port: {{ .Values.inbound_port }}
  14. loadBalancerIP: {{ .Values.inbound_IP }}
  15. externalTrafficPolicy: Local
  16. {{- end }}