From 1b16809cfcdd7c852ab4f5c8a415f7375882d7a0 Mon Sep 17 00:00:00 2001 From: Mengxin Liu Date: Tue, 9 Jul 2024 19:43:41 +0800 Subject: [PATCH] enable nat gw by default (#4273) Signed-off-by: oilbeater --- charts/kube-ovn/templates/vpc-nat-config.yaml | 11 ++++++++++- charts/kube-ovn/values.yaml | 1 + dist/images/install.sh | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/charts/kube-ovn/templates/vpc-nat-config.yaml b/charts/kube-ovn/templates/vpc-nat-config.yaml index 486ffe32421..3ce0f924bac 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 668d221c9f3..1e81cb08743 100644 --- a/charts/kube-ovn/values.yaml +++ b/charts/kube-ovn/values.yaml @@ -67,6 +67,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 851bd326b32..28700b97711 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} NODE_LOCAL_DNS_IP=${NODE_LOCAL_DNS_IP:-}