Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Kubernetes-icinga.go #9

Open
aspryne opened this issue Mar 18, 2019 · 7 comments
Open

Build Kubernetes-icinga.go #9

aspryne opened this issue Mar 18, 2019 · 7 comments

Comments

@aspryne
Copy link

aspryne commented Mar 18, 2019

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

@iljaweis
Copy link
Contributor

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.

@aspryne
Copy link
Author

aspryne commented Mar 19, 2019

thanks you !
I readed Dockerfile and now the build is Ok

@aspryne
Copy link
Author

aspryne commented Mar 19, 2019

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

@iljaweis
Copy link
Contributor

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.

@aspryne
Copy link
Author

aspryne commented Mar 19, 2019

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

@iljaweis
Copy link
Contributor

Do you have the required privileges (probably admin) on the target cluster?

@aspryne
Copy link
Author

aspryne commented Mar 19, 2019

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants