Open aspryne opened 5 years ago
How did you try to build it? Did you include all files in pkg/controller? Have a look at the Dockerfile to see how you could try to build.
thanks you ! I readed Dockerfile and now the build is Ok
i followed this tutorial : https://liet.me/2018/03/29/kubernetes-monitoring-with-icinga2/
But i don't know if its was a good idea beacause at the end i don't understand how to "launch" the app
There are sample files in the deploy directory to run this in Kubernetes so that it basically configures Icinga to monitor the cluster it is running in. The tutorial suggests that you run it somewhere outside the cluster which is ok as well, but I don't have any example files for that.
ok i understand i will try with your method but I'm having a problem with Review and create the RBAC configuration (kubectl apply -f deploy / rbac.yaml) when i try to do that i have this : Error from server (Forbidden): error when creating "rbac.yaml": clusterroles.rbac.authorization.k8s.io "kubernetes-icinga" is forbidden: attempt to grant extra privileges
it is an error known to the community but the way to fix it would be to execute this: kubectl create clusterrolebinding cluster-admin-binding --clusterterrole cluster-admin --user $ (gcloud config get-value account) To give admin role. But i don't know why "google API / account" come here ...
Thanks you so much for your help
Do you have the required privileges (probably admin) on the target cluster?
I m the admin but i think when i execute that i don't have admin privileges. How can I give admin role to run rbac.yaml ?
i have this error when i try to build kubernetes-icinga.go :
command-line-arguments
./kubernetes-icinga.go:82:8: undefined: Controller ./kubernetes-icinga.go:92:16: undefined: HostGroupMapping ./kubernetes-icinga.go:94:16: undefined: HostMapping ./kubernetes-icinga.go:96:16: undefined: HostGroupMapping
Do you know why ? he don't know this values ? thanks