Closed leonidasas closed 6 months ago
Hey @leonidasas,
Are you still running into this issue? I was not able to recreate this problem using viya4-iac-k8s:3.6.0. I believe the issue may be how you defined the kubernetes_loadbalancer_addresses
in your ansible-vars.yaml
, could you share your what you set for that?
For context this is what I tested with and did not run into the error you saw.
ansible-vars.yaml snippet
kubernetes_loadbalancer : "kube_vip" # Load Balancer accepted values [kube_vip,metallb]
kubernetes_loadbalancer_addresses :
- "range-global: 10.12.202.126-10.12.202.127"
- "range-development: 10.12.127.254-10.12.127.255"
checking config map
$ kubectl get cm kubevip -n kube-system -o yaml
apiVersion: v1
data:
range-development: 10.12.127.254-10.12.127.255
range-global: 10.12.202.126-10.12.202.127
kind: ConfigMap
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","data":{"range-development":"10.12.127.254-10.12.127.255","range-global":"10.12.202.126-10.12.202.127"},"kind":"ConfigMap","metadata":{"annotations":{},"name":"kubevip","namespace":"kube-system"}}
creationTimestamp: "2023-12-06T20:49:51Z"
name: kubevip
namespace: kube-system
resourceVersion: "1626"
uid: 6c928d28-4791-4236-a0f6-b0cb3ffee0dc
Marking as stale/inactive. If there are further questions please open a new GitHub issue.
When creating the cluster on bare metal with Ansible, it fails while trying to apply the kube-vip ConfigMap.
The template here does not specify the properties
range-development:
as this behavior was changed in this commitThis is the error:
If /tmp/kube-vip-cm.yaml is updated with
range-development:
the ConfigMap is created correctly