-
Notifications
You must be signed in to change notification settings - Fork 2
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
invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable #66
Comments
Hi @firatalkis, I had this issue too, and it was because I didn't mount the volume with :/.kube/config properly. Thanks, |
Hi @razvanmac95, I have added oc package and ran oc login command for create /.kube/config file. Then file was created you can see below but I am getting the same error: |
Hi @firatalkis, The Please try setting export KUBECONFIG=/var/spool/icinga2/.kube/config Best regards, |
Hi @lippserd, yes its worked for this issue: "try setting KUBERNETES_MASTER environment variable" but afret that I got this error: Actually I also added those commands to mysql configuration file I0404 08:56:35.828377 72217 database.go:285] "Connecting to database" logger="database" |
Hi @firatalkis, You also have to add Best regards, |
Hi @lippserd, thanks for your help but the problems do not end for me :) when I run "systemctl start icinga-kubernetes" then getting error you can see below: icinga-kubernetes[127617]: F0404 11:43:43.675125 127617 main.go:32] invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
|
Hi @firatalkis, Sorry for replying a bit late. Could you please pull the image and try again? The issue should be fixed.
Icinga for Kubernetes is not trying to reach the internet. This is a stack trace which lists all open functions involved that lead to the error. The URLs here just tell from which Go module the code is coming from.
There are a lot of authentication and authorization methods in K8s. I think you could just configure and use something else for Icinga for Kubernetes. Best regards, |
Hi @lippserd, I am sorry for the late response because our icinga test envoriment included very old components, for example mysql 5.5 version. so I have refresh install icinga on new virtual server as rhel8 then when I try install icinga-kubernetes got error in the below: when I run "systemctl enable --now icinga-kubernetes" command getting same error " then I try "/usr/sbin/icinga-kubernetes --config /etc/icinga-kubernetes/config.yml" then I see error in mariadb log file : 2024-04-25 8:41:34 587 [Warning] Aborted connection 587 to db: 'kubernetes' user: 'kubernetes' host: 'localhost' (Got an error reading communication packets) |
Similar here:
The required file is available/readable: Any additional file(s) required? Unfortunately the documentation is missing further steps how to configure a connection to kubernetes located outside the icinga-master and what to do inside kubernetes. OS: SuSE Linux Enterprise Server SLES 15 SP5 |
@tectumopticum You need a @firatalkis I'm sorry but we only support MySQL from version 8 and MariaDB from version 10.4. However, the documentation states something else that needs to be fixed. Maybe it's also worth a try to increase |
@Jan-Schuppik Please fix the documentation regarding the supported database versions and create a section explaining how to use the
|
Hi @lippserd, Do I have upgrade to 10.4 version for fixing below issue? I have changed max_allowed_packet value from 512 MB to 2G. After that I fresh install icinga-kubernetes then when I run service with systemctl got permission error as "status=255" and I changed permission this folder "/etc/icinga-kubernetes" to 755 than this issue is fixed. May 28 17:30:21 host systemd[1]: icinga-kubernetes.service: Main process exited, code=exited, status=255/n/a I used "xx" service account for create "/var/spool/icinga2/.kube/config" file with "oc login" command but icinga-kubernetes trying to collect data from kubernetes with "system:anonymous" user and that user getting permission error: May 29 11:55:52 host icinga-kubernetes[813204]: E0529 11:55:52.185682 813204 reflector.go:147] k8s.io/[email protected]/tools/cache/reflector.go:229: Failed to watch *v1.Ingress: failed to list *v1.Ingress: ingresses.networking.k8s.io is forbidden: User "system:anonymous" cannot list resource "ingresses" in API group "networking.k8s.io" at the cluster scope |
Hello,
When I have started icinga-kubernetes service on rhel8 then getting this error:
icinga-kubernetes[102140]: F0325 14:10:55.837316 102140 main.go:32] invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
Could you please help me for what did I do wrong?
Thanks.
The text was updated successfully, but these errors were encountered: