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

Not able to start control-plane when K8S api server is down #9007

Closed
slonka opened this issue Jan 23, 2024 · 2 comments
Closed

Not able to start control-plane when K8S api server is down #9007

slonka opened this issue Jan 23, 2024 · 2 comments
Labels
kind/bug A bug triage/rotten closed due to lack of information for too long, rejected feature...

Comments

@slonka
Copy link
Contributor

slonka commented Jan 23, 2024

What happened?

During a testing call we noticed that we're not able to start a CP when k8s API is down:

2024-01-23T10:04:24.439Z        ERROR   kuma-cp.run     unable to set up Control Plane runtime  {"error": "failed to run beforeBootstrap plugin:'k8s': could not add index of Secret cache by field 'type': failed to get restmapping: failed to get server groups: Get \"https://10.76.0.1:443/api\": dial tcp 10.76.0.1:443: i/o timeout", "errorVerbose": "failed to get restmapping: failed to get server groups: Get \"https://10.76.0.1:443/api\": dial tcp 10.76.0.1:443: i/o timeout\ncould not add index of Secret cache by field 'type'\ngithub.com/kumahq/kuma/pkg/plugins/bootstrap/k8s.createSecretClient\n\tgithub.com/kumahq/[email protected]/pkg/plugins/bootstrap/k8s/plugin.go:135\ngithub.com/kumahq/kuma/pkg/plugins/bootstrap/k8s.(*plugin).BeforeBootstrap\n\tgithub.com/kumahq/[email protected]/pkg/plugins/bootstrap/k8s/plugin.go:88\ngithub.com/kumahq/kuma/pkg/core/bootstrap.buildRuntime\n\tgithub.com/kumahq/[email protected]/pkg/core/bootstrap/bootstrap.go:79\ngithub.com/kumahq/kuma/pkg/core/bootstrap.Bootstrap\n\tgithub.com/kumahq/[email protected]/pkg/core/bootstrap/bootstrap.go:232\ngithub.com/kumahq/kuma/app/kuma-cp/cmd.newRunCmdWithOpts.func1\n\tgithub.com/kumahq/[email protected]/app/kuma-cp/cmd/run.go:65\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/[email protected]/command.go:983\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/[email protected]/command.go:1115\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/[email protected]/command.go:1039\nmain.main\n\tgithub.com/kumahq/kuma/app/kuma-cp/main.go:42\nruntime.main\n\truntime/proc.go:267\nruntime.goexit\n\truntime/asm_amd64.s:1650\nfailed to run beforeBootstrap plugin:'k8s'\ngithub.com/kumahq/kuma/pkg/core/bootstrap.buildRuntime\n\tgithub.com/kumahq/[email protected]/pkg/core/bootstrap/bootstrap.go:80\ngithub.com/kumahq/kuma/pkg/core/bootstrap.Bootstrap\n\tgithub.com/kumahq/[email protected]/pkg/core/bootstrap/bootstrap.go:232\ngithub.com/kumahq/kuma/app/kuma-cp/cmd.newRunCmdWithOpts.func1\n\tgithub.com/kumahq/[email protected]/app/kuma-cp/cmd/run.go:65\ngithub.com/spf13/cobra.(*Command).execute\n\tgithub.com/spf13/[email protected]/command.go:983\ngithub.com/spf13/cobra.(*Command).ExecuteC\n\tgithub.com/spf13/[email protected]/command.go:1115\ngithub.com/spf13/cobra.(*Command).Execute\n\tgithub.com/spf13/[email protected]/command.go:1039\nmain.main\n\tgithub.com/kumahq/kuma/app/kuma-cp/main.go:42\nruntime.main\n\truntime/proc.go:267\nruntime.goexit\n\truntime/asm_amd64.s:1650"}
Error: failed to run beforeBootstrap plugin:'k8s': could not add index of Secret cache by field 'type': failed to get restmapping: failed to get server groups: Get "https://10.76.0.1:443/api": dial tcp 10.76.0.1:443: i/o timeout

This could be worked around.

@slonka slonka added triage/pending This issue will be looked at on the next triage meeting kind/bug A bug labels Jan 23, 2024
@jakubdyszkiewicz jakubdyszkiewicz added triage/rotten closed due to lack of information for too long, rejected feature... and removed triage/pending This issue will be looked at on the next triage meeting labels Jan 29, 2024
@jakubdyszkiewicz
Copy link
Contributor

Triage: nothing we can do really about this

@jakubdyszkiewicz jakubdyszkiewicz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 29, 2024
Copy link
Contributor

Automatically closing the issue due to having one of the "closed state label".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug triage/rotten closed due to lack of information for too long, rejected feature...
Projects
None yet
Development

No branches or pull requests

2 participants