feat(talos): add metrics docs
This commit is contained in:
parent
b8988dcd65
commit
bff338c515
1 changed files with 44 additions and 0 deletions
44
docs/talos/enable_metrics.md
Normal file
44
docs/talos/enable_metrics.md
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
# Enable Kubernetes Metrics API
|
||||||
|
|
||||||
|
By default the metrics API is not available on Talos Linux. This needs to be configured and installed.
|
||||||
|
|
||||||
|
## Control Plane
|
||||||
|
|
||||||
|
Create a patch for control plane nodes.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
machine:
|
||||||
|
kubelet:
|
||||||
|
extraArgs:
|
||||||
|
rotate-server-certificates: true
|
||||||
|
|
||||||
|
files:
|
||||||
|
- content: |
|
||||||
|
[metrics]
|
||||||
|
address = "0.0.0.0:11234"
|
||||||
|
path: /var/cri/conf.d/metrics.toml
|
||||||
|
op: create
|
||||||
|
|
||||||
|
cluster:
|
||||||
|
extraManifests:
|
||||||
|
- https://raw.githubusercontent.com/alex1989hu/kubelet-serving-cert-approver/main/deploy/standalone-install.yaml
|
||||||
|
- https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
## Workers
|
||||||
|
|
||||||
|
Create a patch for worker nodes.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
machine:
|
||||||
|
kubelet:
|
||||||
|
extraArgs:
|
||||||
|
rotate-server-certificates: true
|
||||||
|
|
||||||
|
files:
|
||||||
|
- content: |
|
||||||
|
[metrics]
|
||||||
|
address = "0.0.0.0:11234"
|
||||||
|
path: /var/cri/conf.d/metrics.toml
|
||||||
|
op: create
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue