mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
add ability to enable kubelet structured logging in CI
This commit is contained in:
@@ -90,6 +90,8 @@ build() {
|
||||
|
||||
# up a cluster with kind
|
||||
create_cluster() {
|
||||
# set KUBELET_LOG_FORMAT=structured to enable structured logging in kubelet
|
||||
KUBELET_LOG_FORMAT="${KUBELET_LOG_FORMAT:-text}"
|
||||
|
||||
# JSON map injected into featureGates config
|
||||
feature_gates="{}"
|
||||
@@ -165,11 +167,13 @@ kubeadmConfigPatches:
|
||||
nodeRegistration:
|
||||
kubeletExtraArgs:
|
||||
"v": "${KIND_CLUSTER_LOG_LEVEL}"
|
||||
"logging-format": "${KUBELET_LOG_FORMAT}"
|
||||
---
|
||||
kind: JoinConfiguration
|
||||
nodeRegistration:
|
||||
kubeletExtraArgs:
|
||||
"v": "${KIND_CLUSTER_LOG_LEVEL}"
|
||||
"logging-format": "${KUBELET_LOG_FORMAT}"
|
||||
EOF
|
||||
# NOTE: must match the number of workers above
|
||||
NUM_NODES=2
|
||||
|
||||
Reference in New Issue
Block a user