travisghansen / kubernetes-pfsense-controller

Integrate Kubernetes and pfSense
Apache License 2.0
197 stars 22 forks source link

Cannot change namespace #7

Closed aded closed 4 years ago

aded commented 4 years ago

Hi @travisghansen, thanks for this controller, it's very useful!

When I try to change the namespace (basically s/kube-system/mynamespace/ on each k8s manifest file), I'm able to deploy the controller, but I get the following messages in pod logs:

2020-03-25T18:02:34+00:00 waiting for ConfigMap kube-system/kubernetes-pfsense-controller-config to be present and valid

It seems it waits for kubernetes-pfsense-controller-config on kube-system namespace only.

PS: I'm relatively new in Kubernetes, so I apologize if this is the desired behaviour.

Thanks in advance!

travisghansen commented 4 years ago

@aded thanks for the interest! That does look to be hard-coded currently :( I'll have to code that in.

travisghansen commented 4 years ago

This is configurable now via the CONTROLLER_NAMESPACE env var. Note that you'll like need to update the rbac stuff if you're actually deploying the pod to a different namespace as well.

travisghansen commented 4 years ago

v0.2.0