travisghansen / kubernetes-pfsense-controller

Integrate Kubernetes and pfSense

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot change namespace

aded opened this issue · comments

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!

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

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.