Skip to content

Commit

Permalink
feat(helm): name prefix for nat gws
Browse files Browse the repository at this point in the history
  • Loading branch information
SkalaNetworks committed Nov 5, 2024
1 parent 246a255 commit 15bb990
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/kube-ovn/templates/natGw/vpc-nat-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ data:
{{- with .Values.natGw.bgpSpeaker.apiNadProvider }}
apiNadProvider: {{ tpl . $ }}
{{- end }}
{{- with .Values.natGw.namePrefix }}
natGwNamePrefix: {{ . | quote }}
{{- end }}

---
kind: ConfigMap
Expand Down
4 changes: 4 additions & 0 deletions charts/kube-ovn/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ natGw:
# -- Network attachment definition used to reach the API server when running on BGP mode
# See https://kubeovn.github.io/docs/stable/en/advance/with-bgp/
apiNadProvider: "{{ .Values.apiNad.name }}.{{ .Values.namespace }}.ovn"
# -- Prefix appended to the name of the NAT gateways when generating the Pods
# If this value is changed after NAT GWs have been provisioned, every NAT gateway will need to be
# manually destroyed and recreated.
namePrefix: "vpc-nat-gw"

# -- API NetworkAttachmentDefinition to give some pods (CoreDNS, NAT GW) in custom VPCs access to the K8S API
# This requires Multus to be installed
Expand Down

0 comments on commit 15bb990

Please sign in to comment.