mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Add optional setting for ca data in auth webhook (#8777)
* Add optional setting for ca data in auth webhook * add webhook token auth variables to sample inventory
This commit is contained in:
@@ -113,3 +113,10 @@ no_proxy_exclude_workers: false
|
|||||||
|
|
||||||
# sysctl_file_path to add sysctl conf to
|
# sysctl_file_path to add sysctl conf to
|
||||||
# sysctl_file_path: "/etc/sysctl.d/99-sysctl.conf"
|
# sysctl_file_path: "/etc/sysctl.d/99-sysctl.conf"
|
||||||
|
|
||||||
|
## Variables for webhook token auth https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
|
||||||
|
kube_webhook_token_auth: false
|
||||||
|
kube_webhook_token_auth_url_skip_tls_verify: false
|
||||||
|
# kube_webhook_token_auth_url: https://...
|
||||||
|
## base64-encoded string of the webhook's CA certificate
|
||||||
|
# kube_webhook_token_auth_ca_data: "LS0t..."
|
||||||
|
|||||||
@@ -111,13 +111,17 @@ kube_api_runtime_config: []
|
|||||||
## Enable/Disable Kube API Server Authentication Methods
|
## Enable/Disable Kube API Server Authentication Methods
|
||||||
kube_token_auth: false
|
kube_token_auth: false
|
||||||
kube_oidc_auth: false
|
kube_oidc_auth: false
|
||||||
|
|
||||||
|
## Variables for webhook token auth https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
|
||||||
kube_webhook_token_auth: false
|
kube_webhook_token_auth: false
|
||||||
kube_webhook_token_auth_url_skip_tls_verify: false
|
kube_webhook_token_auth_url_skip_tls_verify: false
|
||||||
## Variables for webhook token auth https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
|
|
||||||
# kube_webhook_token_auth_url: https://...
|
# kube_webhook_token_auth_url: https://...
|
||||||
kube_webhook_authorization: false
|
## base64-encoded string of the webhook's CA certificate
|
||||||
|
# kube_webhook_token_auth_ca_data: "LS0t..."
|
||||||
|
|
||||||
## Variables for webhook token authz https://kubernetes.io/docs/reference/access-authn-authz/webhook/
|
## Variables for webhook token authz https://kubernetes.io/docs/reference/access-authn-authz/webhook/
|
||||||
# kube_webhook_authorization_url: https://...
|
# kube_webhook_authorization_url: https://...
|
||||||
|
kube_webhook_authorization: false
|
||||||
kube_webhook_authorization_url_skip_tls_verify: false
|
kube_webhook_authorization_url_skip_tls_verify: false
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ clusters:
|
|||||||
cluster:
|
cluster:
|
||||||
server: {{ kube_webhook_token_auth_url }}
|
server: {{ kube_webhook_token_auth_url }}
|
||||||
insecure-skip-tls-verify: {{ kube_webhook_token_auth_url_skip_tls_verify }}
|
insecure-skip-tls-verify: {{ kube_webhook_token_auth_url_skip_tls_verify }}
|
||||||
|
{% if kube_webhook_token_auth_ca_data is defined %}
|
||||||
|
certificate-authority-data: {{ kube_webhook_token_auth_ca_data }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# users refers to the API server's webhook configuration.
|
# users refers to the API server's webhook configuration.
|
||||||
users:
|
users:
|
||||||
|
|||||||
Reference in New Issue
Block a user