You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

  1. # Cilium
  2. ## Kube-proxy replacement with Cilium
  3. Cilium can run without kube-proxy by setting `cilium_kube_proxy_replacement`
  4. to `strict`.
  5. Without kube-proxy, cilium needs to know the address of the kube-apiserver
  6. and this must be set globally for all cilium components (agents and operators).
  7. Hence, in this configuration in Kubespray, Cilium will always contact
  8. the external loadbalancer (even from a node in the control plane)
  9. and if there is no external load balancer It will ignore any local load
  10. balancer deployed by Kubespray and **only contacts the first master**.
  11. ## Choose Cilium version
  12. ```yml
  13. cilium_version: v1.8.9 ## or v1.9.6
  14. ```
  15. ## Add variable to config
  16. Use following variables:
  17. Example:
  18. ```yml
  19. cilium_config_extra_vars:
  20. enable-endpoint-routes: true
  21. ```
  22. ## Install Cilium Hubble
  23. k8s-net-cilium.yml:
  24. ```yml
  25. cilium_enable_hubble: true ## enable support hubble in cilium
  26. cilium_hubble_install: true ## install hubble-relay, hubble-ui
  27. cilium_hubble_tls_generate: true ## install hubble-certgen and generate certificates
  28. ```
  29. To validate that Hubble UI is properly configured, set up a port forwarding for hubble-ui service:
  30. ```shell script
  31. kubectl port-forward -n kube-system svc/hubble-ui 12000:80
  32. ```
  33. and then open [http://localhost:12000/](http://localhost:12000/).
  34. ## Hubble metrics
  35. ```yml
  36. cilium_enable_hubble_metrics: true
  37. cilium_hubble_metrics:
  38. - dns
  39. - drop
  40. - tcp
  41. - flow
  42. - icmp
  43. - http
  44. ```
  45. [More](https://docs.cilium.io/en/v1.9/operations/metrics/#hubble-exported-metrics)