diff --git a/charts/kube-ovn/templates/vpc-nat-config.yaml b/charts/kube-ovn/templates/vpc-nat-config.yaml index 0f9bd0f504f..c005bec1d3b 100755 --- a/charts/kube-ovn/templates/vpc-nat-config.yaml +++ b/charts/kube-ovn/templates/vpc-nat-config.yaml @@ -7,4 +7,13 @@ metadata: kubernetes.io/description: | kube-ovn vpc-nat common config data: - image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.vpcRepository }}:{{ .Values.global.images.kubeovn.tag }} \ No newline at end of file + image: {{ .Values.global.registry.address }}/{{ .Values.global.images.kubeovn.vpcRepository }}:{{ .Values.global.images.kubeovn.tag }} + +--- +kind: ConfigMap +apiVersion: v1 +metadata: + name: ovn-vpc-nat-gw-config + namespace: kube-system +data: + enable-vpc-nat-gw: "{{ .Values.func.ENABLE_NAT_GW }}" \ No newline at end of file diff --git a/charts/kube-ovn/values.yaml b/charts/kube-ovn/values.yaml index 3ad9145d592..94884e3f400 100644 --- a/charts/kube-ovn/values.yaml +++ b/charts/kube-ovn/values.yaml @@ -71,6 +71,7 @@ func: U2O_INTERCONNECTION: false ENABLE_TPROXY: false ENABLE_IC: false + ENABLE_NAT_GW: true ipv4: POD_CIDR: "10.16.0.0/16" diff --git a/dist/images/install.sh b/dist/images/install.sh index 7959daffc52..b2cc9537f04 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -19,7 +19,7 @@ LS_CT_SKIP_DST_LPORT_IPS=${LS_CT_SKIP_DST_LPORT_IPS:-true} ENABLE_EXTERNAL_VPC=${ENABLE_EXTERNAL_VPC:-true} CNI_CONFIG_PRIORITY=${CNI_CONFIG_PRIORITY:-01} ENABLE_LB_SVC=${ENABLE_LB_SVC:-false} -ENABLE_NAT_GW=${ENABLE_NAT_GW:-false} +ENABLE_NAT_GW=${ENABLE_NAT_GW:-true} ENABLE_KEEP_VM_IP=${ENABLE_KEEP_VM_IP:-true} ENABLE_ARP_DETECT_IP_CONFLICT=${ENABLE_ARP_DETECT_IP_CONFLICT:-true} # comma-separated string of nodelocal DNS ip addresses