mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
autoconf - add KUBERNETES_VERIFY_SSL env var
This commit is contained in:
parent
8925e5c71c
commit
5f8bc4ec82
2 changed files with 4 additions and 0 deletions
|
|
@ -746,6 +746,9 @@ Given the presence of multiple BunkerWeb instances, it is necessary to establish
|
|||
|
||||
Please ensure that the autoconf services have access to the Kubernetes API. It is recommended to utilize [RBAC authorization](https://kubernetes.io/docs/reference/access-authn-authz/rbac/) for this purpose.
|
||||
|
||||
!!! warn "Custom CA for Kubernetes API"
|
||||
At the moment, using a custom CA for the Kubernetes API is not supported by the autoconf. The only workaround available is to disable certificate verification by setting the `KUBERNETES_SSL_VERIFY` environment variable of the autoconf to `no` (default is `yes`).
|
||||
|
||||
Additionally, **it is crucial to set the `KUBERNETES_MODE` environment variable to `yes` when utilizing the Kubernetes integration**. This variable is mandatory for proper functionality.
|
||||
|
||||
To assist you, here is a YAML boilerplate that can serve as a foundation for your configuration:
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ class IngressController(Controller):
|
|||
self.__internal_lock = Lock()
|
||||
super().__init__("kubernetes")
|
||||
config.load_incluster_config()
|
||||
config.verify_ssl = getenv("KUBERNETES_VERIFY_SSL", "yes") == "yes"
|
||||
self.__corev1 = client.CoreV1Api()
|
||||
self.__networkingv1 = client.NetworkingV1Api()
|
||||
self.__use_fqdn = getenv("USE_KUBERNETES_FQDN", "yes").lower() == "yes"
|
||||
|
|
|
|||
Loading…
Reference in a new issue