cm-router.yaml 429 B

12345678910111213141516
  1. {{- if .Values.netOpenvpn -}}
  2. apiVersion: v1
  3. kind: ConfigMap
  4. metadata:
  5. name: {{ include "openvpn.fullname" . }}-routecheck
  6. data:
  7. route-add: |
  8. {{- range .Values.netOpenvpn}}
  9. ip route add {{ . }} via {{ $.Values.virtIP_addr }} metric 200
  10. {{- end}}
  11. sleep infinity
  12. route-delete: |
  13. {{- range .Values.netOpenvpn}}
  14. ip route delete {{ . }} via {{ $.Values.virtIP_addr }} metric 200
  15. {{- end}}
  16. {{- end -}}