Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use the cilium-cli version/cilium-cli hubble enable #5490

Closed
suppergriff opened this issue Feb 20, 2024 · 5 comments
Closed

Cannot use the cilium-cli version/cilium-cli hubble enable #5490

suppergriff opened this issue Feb 20, 2024 · 5 comments

Comments

@suppergriff
Copy link

Environmental Info:
RKE2 Version: v1.27.10 +rke2r1

Node(s) CPU architecture, OS, and Version: Linux rke2-100-31 4.18.0-513.11.1.el8_9.0.1.x86_64 #1 SMP Sun Feb 11 10:42:18 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Cluster Configuration:3 server 2 agents

Describe the bug:

Cannot use the cilium-cli version/cilium-cli hubble enable
Steps To Reproduce:

  • Installed RKE2: by rancher ui create rke2 cluster and cni is cilium

Expected behavior:

use the cilium-cli version, and cilium-cli enable hubble

Actual behavior:

image image **Additional context / logs:**
@brandond
Copy link
Member

brandond commented Feb 21, 2024

@suppergriff
Copy link
Author

maybe I want to use cilium-cli other feature, such as bgp,such as hubble service monitor, it is extremely complex to use helmchart 'rke2-cilium'

@brandond
Copy link
Member

brandond commented Feb 21, 2024

You're welcome to deploy RKE2 with cni: none and then install Cilium on your own, but if you deploy it using our helm chart, you should use our helm chart to configure it.

There's not much more to it other than providing values in HelmChartConfig, it should be quite easy to do declaratively.

@suppergriff
Copy link
Author

There's not much more to it other than providing values in HelmChartConfig, it should be quite easy to do declaratively.

Got it, thank you

@rbrtbnfgl
Copy link
Contributor

You could use the cilium-cli with our deployed cilium if you patch the https://github.com/cilium/cilium-cli code with this

diff --git a/defaults/defaults.go b/defaults/defaults.go
index de8d1005..ae76e7f3 100644
--- a/defaults/defaults.go
+++ b/defaults/defaults.go
@@ -126,7 +126,7 @@ const (
        IngressSecretsNamespace = "cilium-secrets"
 
        // HelmReleaseName is the default Helm release name for Cilium.
-       HelmReleaseName               = "cilium"
+       HelmReleaseName               = "rke2-cilium"
        HelmValuesSecretName          = "cilium-cli-helm-values"
        HelmValuesSecretKeyName       = "io.cilium.cilium-cli"
        HelmChartVersionSecretKeyName = "io.cilium.chart-version"

Cilium with rke2 starts with hubble disabled by default so even if you try cilium hubble enable you'll get an error. To enable hubble you have to configure the cilium chart with

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-cilium
  namespace: kube-system
spec:
  valuesContent: |-
    hubble:
      enabled: true

Hubble will be enabled but it will not start until you use cilium hubble enable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants