Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to specify the host of k8s apiserver #4536
Comments
This comment has been minimized.
This comment has been minimized.
|
You can use the
I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search. |
simonpasquier
closed this
Aug 27, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Kevin-P-Huang commentedAug 26, 2018
What did you expect to see?
Specify the host of k8s apiserver
What did you see instead? Under which circumstances?
Environment
$ uname -srm
Linux 3.10.0-862.3.2.el7.x86_64 x86_64
quay.io/prometheus/prometheus:v2.0.0
Alertmanager version:
insert output of
alertmanager --versionhere (if relevant to the issue)Prometheus configuration file:
To simplify installation, TLS Certificates is not used in our k8s environment( 3 master and 5 node in cluster), and URL of apiserver in our k8s environment is "http://192.168.1.4:8080" and is not “https://10.10.10.1:443”.
It will sometimes bring us trouble when deploy.Because some containers will automatically connect apiserver by https' URL when be deployed, and error which info like
open /var/run/secrets/kubernetes.io/serviceaccount/ca.crt: no such file or directoryoccur.For example, when we deploy prometheus in our k8s environment, error info will be printed in pod's log.
To avoid connecting to the https url of apiserver, we will find the arg or env of container to specify the host of apiserver. For example, we add an env of container which name "APISERVER_HOST" to specify the host of apiserver when deploy elasticsearch of k8s addon fluentd-elasticsearch