mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Upgrade cilium role (#7521)
* Upgrade cilium roles * Del old test result * Add hubble ui examples * Refactor hubble metrics * Markdown fix pipeline errors * yamllint check and fix * refactor install from https://github.com/kubernetes-sigs/kubespray/pull/7520 * Docs syntax change (fix) * Cilium set default 1.8.9 * Update cilium version in Readme
This commit is contained in:
@@ -11,3 +11,53 @@ Hence, in this configuration in Kubespray, Cilium will always contact
|
||||
the external loadbalancer (even from a node in the control plane)
|
||||
and if there is no external load balancer It will ignore any local load
|
||||
balancer deployed by Kubespray and **only contacts the first master**.
|
||||
|
||||
## Choose Cilium version
|
||||
|
||||
```yml
|
||||
cilium_version: v1.8.9 ## or v1.9.6
|
||||
```
|
||||
|
||||
## Add variable to config
|
||||
|
||||
Use following variables:
|
||||
|
||||
Example:
|
||||
|
||||
```yml
|
||||
cilium_config_extra_vars:
|
||||
enable-endpoint-routes: true
|
||||
```
|
||||
|
||||
## Install Cilium Hubble
|
||||
|
||||
k8s-net-cilium.yml:
|
||||
|
||||
```yml
|
||||
cilium_enable_hubble: true ## enable support hubble in cilium
|
||||
cilium_hubble_install: true ## install hubble-relay, hubble-ui
|
||||
cilium_hubble_tls_generate: true ## install hubble-certgen and generate certificates
|
||||
```
|
||||
|
||||
To validate that Hubble UI is properly configured, set up a port forwarding for hubble-ui service:
|
||||
|
||||
```shell script
|
||||
kubectl port-forward -n kube-system svc/hubble-ui 12000:80
|
||||
```
|
||||
|
||||
and then open [http://localhost:12000/](http://localhost:12000/).
|
||||
|
||||
## Hubble metrics
|
||||
|
||||
```yml
|
||||
cilium_enable_hubble_metrics: true
|
||||
cilium_hubble_metrics:
|
||||
- dns
|
||||
- drop
|
||||
- tcp
|
||||
- flow
|
||||
- icmp
|
||||
- http
|
||||
```
|
||||
|
||||
[More](https://docs.cilium.io/en/v1.9/operations/metrics/#hubble-exported-metrics)
|
||||
|
||||
Reference in New Issue
Block a user