https://rancher.com/ logo
Title
c

cuddly-egg-57762

08/30/2022, 9:34 AM
Hello people, I'm trying to deploy the cilium helm chart via the k3s-integrated helm controller and I want to provide the spec.chartContent instead of the chart name (because I'm working on an airgapped environment). When I generate the yaml and put it under the manfest directory, the k3s service logs reports the following error:
k3s[2515485]: time="2022-08-30T09:12:03Z" level=error msg="Failed to process config: failed to process /var/lib/rancher/k3s/server/manifests/cilium.yaml: yaml: line 14: could not find expected ':'"
even if everything looks fine to me:
apiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChart
metadata:
  name: cilium
  namespace: kube-system
spec:
  bootstrap: True
  chartContent: <b64 encoded file>
  targetNamespace: kube-system
  valuesContent: |-
    operator:
      replicas: 2
      image:
        useDigest: false
    tunnel: disabled
    autoDirectNodeRoutes: true
    kubeProxyReplacement: strict
    loadBalancer:
      mode:dsr
    k8sServiceHost: 10.130.42.248
    k8sServicePort: 6443
    nativeRoutingCIDR: 10.0.0.0/16
    image: 
      useDigest: false
      pullPolicy: IfNotPresent
To generate the content of spec.chartContent I do the command "base64 cilium-x.y.z.tgz" and past the result into it. I'm I doing something wrong? Or am I missing something?
solved: I put the base64 content inside " " and it worked