Skip to content

Commit eca849b

Browse files
committed
Turn on metrics in cilium
1 parent ff2637e commit eca849b

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,22 @@ Install-GitHubRelease cilium hubble
7474
And installing it into the AKS cluster is just this, using the same `"rg-$name"` value as the resource group deployment:
7575

7676
```PowerShell
77-
cilium install --version 1.15.3 --set azure.resourceGroup="rg-$name"
77+
cilium install --version 1.15.3 --set azure.resourceGroup="rg-$name" --set kubeProxyReplacement=true --set gatewayAPI.enabled=true
7878
```
7979

8080
If you want to complete the deployment in a single pass, you have to `Import-AzAksCredential` as soon as the cluster shows up in Azure, and then once `kubectl get nodes` shows all your nodes (they won't come up ready, because they won't have a network), you can run the `cilium install` while Azure is showing the Flux deployment is still running (it won't complete successfully until after cilium is installed, so if you don't run the install, it will fail after the time-out, and you'll have to re-run the deployment).
8181

82-
I haven't even tried to automate this, because I'm honestly not sure I'll leave the cilium gateway, and I hope the AKS team will expose settings for this option...
82+
Currently, I'm running it with prometheus enabled, which is more like:
83+
84+
```PowerShell
85+
cilium upgrade --version 1.15.3 --set azure.resourceGroup="rg-$name" `
86+
--set kubeProxyReplacement=true `
87+
--set gatewayAPI.enabled=true `
88+
--set hubble.enabled=true `
89+
--set prometheus.enabled=true `
90+
--set operator.prometheus.enabled=true `
91+
--set hubble.metrics.enableOpenMetrics=true `
92+
--set hubble.metrics.enabled="{dns,drop,tcp,flow,port-distribution,icmp,httpV2:exemplars=true;labelsContext=source_ip\,source_namespace\,source_workload\,destination_ip\,destination_namespace\,destination_workload\,traffic_direction}"
93+
```
94+
95+
I haven't even tried to automate this, because I'm honestly not sure I'll keep using cilium gateway, and I still hope the AKS team will expose settings for this option.

0 commit comments

Comments
 (0)