localkube (running only in http mode) throws healthcheck errors #2506
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/rotten
Denotes an issue or PR that has aged beyond stale and will be auto-closed.
BUG REPORT
Environment:
What happened:
I had a kubernetes cluster that uses insecure deployment (https://kubernetes.io/docs/getting-started-guides/scratch/#security-models), where API server is exposed via http. (No SSL). Some of the operator pods, that were using client-go, InClusterConfig option to communicate with the API server started failing. I wanted to reproduce this environment using minikube (vm-driver=none) so that I could test my changes to the operator without having to recreate the entire setup -- kubernetes the hardway!
Localkube has setting that can be used to apiserver in insecure(http) mode, using the following options:
When the above changes are made and localkube is restarted, it starts to continuously throw the following error messages and also doesn;t schedule any pods:
What you expected to happen:
localkube should be functional in insecure only mode and user should be able to run their workloads.
How to reproduce it (as minimally and precisely as possible):
/etc/systemd/system/localkube.service
with the above mentioned insecure options.Output of
minikube logs
(if applicable):Anything else do we need to know:
The issue is related to the way
pkg/localkube/apiserver.go
uses the APIServerPort.Even when APIServerPort is set to 0 via the options, health check is performed on the same port.
The text was updated successfully, but these errors were encountered: