1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

chore: add kind config with kubelet and apiserver tracing (#8105)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-08-24 11:10:02 +02:00 committed by GitHub
parent 780f1c1e09
commit 967536db7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,56 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
kubeadmConfigPatches:
- |-
kind: ClusterConfiguration
apiServer:
extraVolumes:
- name: tracing-configuration
hostPath: /opt/kube-apiserver/tracing-configuration.yaml
mountPath: /opt/kube-apiserver/tracing-configuration.yaml
readOnly: true
pathType: File
extraArgs:
tracing-config-file: /opt/kube-apiserver/tracing-configuration.yaml
controllerManager:
extraArgs:
bind-address: 0.0.0.0
etcd:
local:
extraArgs:
listen-metrics-urls: http://0.0.0.0:2382
scheduler:
extraArgs:
bind-address: 0.0.0.0
- |-
kind: KubeProxyConfiguration
metricsBindAddress: 0.0.0.0
- |-
kind: KubeletConfiguration
featureGates:
KubeletTracing: true
tracing:
endpoint: localhost:4317
samplingRatePerMillion: 1000000
nodes:
- role: control-plane
kubeadmConfigPatches:
- |-
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraMounts:
- hostPath: ./scripts/config/kube-apiserver/tracing-configuration.yaml
containerPath: /opt/kube-apiserver/tracing-configuration.yaml
readOnly: true
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
- role: worker
- role: worker
- role: worker

View file

@ -0,0 +1,4 @@
apiVersion: apiserver.config.k8s.io/v1beta1
kind: TracingConfiguration
endpoint: localhost:4317
samplingRatePerMillion: 1000000