diff --git a/charts/kube-ovn/templates/natGw/vpc-nat-config.yaml b/charts/kube-ovn/templates/natGw/vpc-nat-config.yaml index 151678346f73..9ff4d8ebedf9 100755 --- a/charts/kube-ovn/templates/natGw/vpc-nat-config.yaml +++ b/charts/kube-ovn/templates/natGw/vpc-nat-config.yaml @@ -11,6 +11,9 @@ data: {{- with .Values.natGw.bgpSpeaker.apiNadProvider }} apiNadProvider: {{ tpl . $ }} {{- end }} + {{- with .Values.natGw.namePrefix }} + natGwNamePrefix: {{ . | quote }} + {{- end }} --- kind: ConfigMap diff --git a/charts/kube-ovn/values.yaml b/charts/kube-ovn/values.yaml index d84e3d5e60b7..22a9ffd4c781 100644 --- a/charts/kube-ovn/values.yaml +++ b/charts/kube-ovn/values.yaml @@ -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