cilium / cilium-olm

Other
10 stars 13 forks source link

enabled KPR #48

Closed errordeveloper closed 3 years ago

errordeveloper commented 3 years ago

Deploying a cluster without kube-proxy (see cilium/openshift-terrafrom-upi#16) implies that usual API access is not possible, so the operator needs to do something else.

From looking at CVO, it appears that one option could be to use nodeSelector: { node-role.kubernetes.io/master: "" } and KUBERNETES_SERVICE_HOST=127.0.0.1, because masters always run an API server.

From looking at CNO, it seems like another route could be to mount /etc/kubernetes from the host.

errordeveloper commented 3 years ago

I will try to implement the CVO option first, as CNO one would require SCC adjustments to get hostPath volumes.

errordeveloper commented 3 years ago

The CVO option didn't work as it doesn't work during bootstrap, will probably implement something in Terraform for testing. Doing something similar to what CNO does would be needed, but it's probably best to leave until there is a custom operator.

errordeveloper commented 3 years ago

xref https://github.com/cilium/openshift-terraform-upi/commit/9e22c4f77015618c7ba7560dd455a72f0b7e758f

errordeveloper commented 3 years ago

xref cilium/openshift-terraform-upi@9e22c4f

This worked, closing!