File tree Expand file tree Collapse file tree
argocd-helm-charts/capi-cluster/charts/hetzner/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -339,14 +339,25 @@ spec:
339339 - API_SERVER_URL=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
340340 - API_SERVER_HOST=$(echo "$API_SERVER_URL" | awk -F[/:] '{print $4}')
341341 - API_SERVER_PORT=$(echo "$API_SERVER_URL" | awk -F[/:] '{print $5}')
342+ {{- if or (eq .Values.mode "hcloud") (eq .Values.mode "hybrid") }}
343+ {{/* Cilium isn't able to detect the routing device atomatically, in HCloud :(. */}}
342344 - |
343345 helm template kubeaid/argocd-helm-charts/cilium \
344346 --values kubeaid/argocd-helm-charts/cilium/values.yaml \
345347 --set cilium.kubeProxyReplacement=true \
346348 --set cilium.k8sServiceHost=${API_SERVER_HOST} \
347349 --set cilium.k8sServicePort=${API_SERVER_PORT} \
348- --set cilium.extraArgs[0]="--devices=eth0,enp9s0 " \
350+ --set cilium.extraArgs[0]="--devices=eth0" \
349351 --namespace cilium | kubectl apply -f -
352+ {{- else }}
353+ - |
354+ helm template kubeaid/argocd-helm-charts/cilium \
355+ --values kubeaid/argocd-helm-charts/cilium/values.yaml \
356+ --set cilium.kubeProxyReplacement=true \
357+ --set cilium.k8sServiceHost=${API_SERVER_HOST} \
358+ --set cilium.k8sServicePort=${API_SERVER_PORT} \
359+ --namespace cilium | kubectl apply -f -
360+ {{- end }}
350361
351362 {{- if or (eq .Values.mode "hcloud") (eq .Values.mode "hybrid") }}
352363 # Install HCloud Cloud Controller Manager.
You can’t perform that action at this time.
0 commit comments