From 30c6208a7c3d54e61329e04b7706184cedc830c8 Mon Sep 17 00:00:00 2001 From: James Gu Date: Wed, 29 Sep 2021 11:58:34 -0400 Subject: [PATCH] Specify k8s api server binding ip and port in the kubeadm.yaml Without this change, the api server will listen to whatever the default network interface is, instead of the OAM ip. Change-Id: Ife9c500335d6bf3cda68a91194e76c09c980654d --- manifests/function/ephemeral/secret.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/function/ephemeral/secret.yaml b/manifests/function/ephemeral/secret.yaml index 24af97d1f..34bb47ea0 100644 --- a/manifests/function/ephemeral/secret.yaml +++ b/manifests/function/ephemeral/secret.yaml @@ -94,7 +94,9 @@ stringData: --- apiVersion: kubeadm.k8s.io/v1beta2 kind: InitConfiguration - localAPIEndpoint: {} + localAPIEndpoint: + advertiseAddress: REPLACEMENT_CP_IP + bindPort: REPLACEMENT_CP_PORT nodeRegistration: ignorePreflightErrors: - NumCPU