diff --git a/charts/kubeadm/Chart.yaml b/charts/kubeadm/Chart.yaml index 1918978e..949cb227 100644 --- a/charts/kubeadm/Chart.yaml +++ b/charts/kubeadm/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubeadm description: KubeZero Kubeadm golden config type: application -version: 1.20.8 +version: 1.20.11 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png keywords: diff --git a/charts/kubeadm/README.md.gotmpl b/charts/kubeadm/README.md.gotmpl index dc0e843b..e8bc176c 100644 --- a/charts/kubeadm/README.md.gotmpl +++ b/charts/kubeadm/README.md.gotmpl @@ -5,8 +5,6 @@ {{ template "chart.description" . }} -Installs the Istio control plane - {{ template "chart.homepageLine" . }} {{ template "chart.maintainersSection" . }} diff --git a/charts/kubeadm/templates/ClusterConfiguration.yaml b/charts/kubeadm/templates/ClusterConfiguration.yaml index 985b0485..dc08cab8 100644 --- a/charts/kubeadm/templates/ClusterConfiguration.yaml +++ b/charts/kubeadm/templates/ClusterConfiguration.yaml @@ -23,10 +23,12 @@ etcd: {{- end }} # These will only be used to create the etcd certs but removed for Init/Join kudeadm calls allowing us to sneak in aliases for etcd nodes serverCertSANs: + - "{{ .Values.listenAddress }}" - "{{ .Values.etcd.nodeName }}" - "{{ .Values.etcd.nodeName }}.{{ .Values.domain }}" - "{{ .Values.domain }}" peerCertSANs: + - "{{ .Values.listenAddress }}" - "{{ .Values.etcd.nodeName }}" - "{{ .Values.etcd.nodeName }}.{{ .Values.domain }}" - "{{ .Values.domain }}" @@ -57,6 +59,7 @@ apiServer: audit-log-maxsize: "100" audit-log-maxbackup: "3" audit-log-compress: "true" + bind-address: {{ .Values.listenAddress }} tls-cipher-suites: "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" admission-control-config-file: /etc/kubernetes/apiserver/admission-configuration.yaml {{- if eq .Values.platform "aws" }} diff --git a/charts/kubeadm/templates/InitConfiguration.yaml b/charts/kubeadm/templates/InitConfiguration.yaml index 969e9bfb..461e0166 100644 --- a/charts/kubeadm/templates/InitConfiguration.yaml +++ b/charts/kubeadm/templates/InitConfiguration.yaml @@ -3,6 +3,7 @@ kind: InitConfiguration metadata: name: kubezero-initconfiguration localAPIEndpoint: + advertiseAddress: {{ .Values.listenAddress }} bindPort: {{ .Values.api.listenPort }} nodeRegistration: ignorePreflightErrors: diff --git a/charts/kubeadm/templates/JoinConfiguration.yaml b/charts/kubeadm/templates/JoinConfiguration.yaml index 72953b88..d2c9073c 100644 --- a/charts/kubeadm/templates/JoinConfiguration.yaml +++ b/charts/kubeadm/templates/JoinConfiguration.yaml @@ -18,3 +18,6 @@ nodeRegistration: {{- with .Values.providerID }} provider-id: {{ . }} {{- end }} + {{- if ne .Values.listenAddress "0.0.0.0" }} + node-ip: {{ .Values.listenAddress }} + {{- end }} diff --git a/charts/kubeadm/templates/KubeProxyConfiguration.yaml b/charts/kubeadm/templates/KubeProxyConfiguration.yaml index 8d30d729..6ca59450 100644 --- a/charts/kubeadm/templates/KubeProxyConfiguration.yaml +++ b/charts/kubeadm/templates/KubeProxyConfiguration.yaml @@ -2,5 +2,5 @@ apiVersion: kubeproxy.config.k8s.io/v1alpha1 kind: KubeProxyConfiguration metadata: name: kubezero-kubeproxyconfiguration -metricsBindAddress: "{{ .Values.listenAddress }}:10249" +metricsBindAddress: "0.0.0.0:10249" mode: ""