Skip to content

Commit 05157ec

Browse files
fix(capi-cluster/hetzner) : explicitly specifying the routing device to Cilium, only in case of HCloud control-plane
Signed-off-by: Archisman <archisman@obmondo.com>
1 parent 74c8eb0 commit 05157ec

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

argocd-helm-charts/capi-cluster/charts/hetzner/templates/KubeadmControlPlane.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)