mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #97742 from benhxy/apiserver-cipher
Configure --tls-cipher-suites on kube-apiserver
This commit is contained in:
commit
8b5aeeedb4
@ -559,3 +559,7 @@ export ETCD_PROGRESS_NOTIFY_INTERVAL="${ETCD_PROGRESS_NOTIFY_INTERVAL:-10m}"
|
||||
# It improves container image pull performance since most time is spent
|
||||
# unzipping the image layers to disk.
|
||||
export WINDOWS_ENABLE_PIGZ="${WINDOWS_ENABLE_PIGZ:-true}"
|
||||
|
||||
# TLS_CIPHER_SUITES defines cipher suites allowed to be used by kube-apiserver.
|
||||
# If this variable is unset or empty, kube-apiserver will allow its default set of cipher suites.
|
||||
export TLS_CIPHER_SUITES=""
|
||||
|
@ -595,3 +595,7 @@ export ETCD_PROGRESS_NOTIFY_INTERVAL="${ETCD_PROGRESS_NOTIFY_INTERVAL:-10m}"
|
||||
# It improves container image pull performance since most time is spent
|
||||
# unzipping the image layers to disk.
|
||||
export WINDOWS_ENABLE_PIGZ="${WINDOWS_ENABLE_PIGZ:-true}"
|
||||
|
||||
# TLS_CIPHER_SUITES defines cipher suites allowed to be used by kube-apiserver.
|
||||
# If this variable is unset or empty, kube-apiserver will allow its default set of cipher suites.
|
||||
export TLS_CIPHER_SUITES=""
|
||||
|
@ -92,6 +92,9 @@ function start-kube-apiserver {
|
||||
fi
|
||||
params+=" --tls-sni-cert-key=${OLD_MASTER_CERT_PATH},${OLD_MASTER_KEY_PATH}:${old_ips}"
|
||||
fi
|
||||
if [[ -n "${TLS_CIPHER_SUITES:-}" ]]; then
|
||||
params+=" --tls-cipher-suites=${TLS_CIPHER_SUITES}"
|
||||
fi
|
||||
params+=" --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname"
|
||||
if [[ -s "${REQUESTHEADER_CA_CERT_PATH:-}" ]]; then
|
||||
params+=" --requestheader-client-ca-file=${REQUESTHEADER_CA_CERT_PATH}"
|
||||
|
Loading…
Reference in New Issue
Block a user