statefulset config of env var KUBEVIP_NAMESPACE cannot take effect in the pod
fsdrw08 opened this issue · 2 comments
fsdrw08 commented
I install kube-vip-cloud-provider via helm chart, it installed into a namespace call "kube-vip", and also apply a configmap name kubevip into this namespace, for details check here
install-kube-vip-cloud-provider-for-service-loadbalancer
but the pod log still shows that it still retrieve config map from namespace kube-system
Inf-Alpine01:~$ kubectl describe statefulset kube-vip-cloud-provider -n kube-vip
Name: kube-vip-cloud-provider
Namespace: kube-vip
CreationTimestamp: Sat, 14 May 2022 15:18:35 +0800
Containers:
kube-vip-cloud-provider:
Image: kubevip/kube-vip-cloud-provider:v0.0.2
Port: <none>
Host Port: <none>
Command:
/kube-vip-cloud-provider
--leader-elect-resource-name=kube-vip-cloud-controller
Environment:
KUBEVIP_NAMESPACE: kube-vip
KUBEVIP_CONFIG_MAP: kubevip
Mounts: <none>
Volumes: <none>
Volume Claims: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 32m statefulset-controller create Pod kube-vip-cloud-provider-0 in StatefulSet kube-vip-cloud-provider successful
Inf-Alpine01:~$ kubectl logs kube-vip-cloud-provider-0 -n kube-vip | grep configMap
E0514 07:23:18.807292 1 loadBalancer.go:94] Unable to retrieve kube-vip ipam config from configMap [kubevip] in kube-system
drawdy commented
I find that the namespace of kubevip configmap is stalbe in the source code.