Hi folks, I am not sure if this bug. I tried all options, changed versions, destroy several times but nothing helps. I lost a lot of time and I need to seek help. In this configuration I am using 1 CAX11 (control plane) and 3 CX32 (agents).
I got this error:
module.kube-hetzner.null_resource.kustomization (remote-exec): error: timed out waiting for the condition on deployments/system-upgrade-controller
╷
│ Error: remote-exec provisioner error
│
│ with module.kube-hetzner.null_resource.kustomization,
│ on .terraform/modules/kube-hetzner/init.tf line 291, in resource "null_resource" "kustomization":
│ 291: provisioner "remote-exec" {
│
│ error executing "/tmp/terraform_1230953466.sh": Process exited with status 1
Control plane and agents works fine.
~ # kubectl get pods -n system-upgrade
NAME READY STATUS RESTARTS AGE
system-upgrade-controller-bb8dd57b4-4rp5t 0/1 Pending 0 18m
~ # kubectl logs -n system-upgrade system-upgrade-controller-bb8dd57b4-4rp5t
set -ex
sed -i 's/^- |[0-9]+$/- |/g' /var/post_install/kustomization.yaml
timeout 360 bash <<EOF
until [[ "\$(kubectl get --raw='/readyz' 2> /dev/null)" == "ok" ]]; do
echo "Waiting for the cluster to become ready..."
sleep 2
done
EOF
kubectl apply -k /var/post_install
echo 'Waiting for the system-upgrade-controller deployment to become available...'
kubectl -n system-upgrade wait --for=condition=available --timeout=360s deployment/system-upgrade-controller
sleep 7
kubectl -n system-upgrade apply -f /var/post_install/plans.yaml
timeout 360 bash <<EOF
until [ -n "\$(kubectl get -n traefik service/traefik --output=jsonpath='{.status.loadBalancer.ingress[0].ip}' 2> /dev/null)" ]; do
echo "Waiting for load-balancer to get an IP..."
sleep 2
done
EOF
@lazarivkovic two things, try commenting out firewall_kube_api_source and try again. Also if that does not work, destroy, terraform init -upgrade and try gain.
Description
Hi folks, I am not sure if this bug. I tried all options, changed versions, destroy several times but nothing helps. I lost a lot of time and I need to seek help. In this configuration I am using 1 CAX11 (control plane) and 3 CX32 (agents).
I got this error:
Control plane and agents works fine.
(there aren't logs)
Kube.tf file
Screenshots
/tmp/terraform_1230953466.sh
!/bin/sh
set -ex sed -i 's/^- |[0-9]+$/- |/g' /var/post_install/kustomization.yaml timeout 360 bash <<EOF until [[ "\$(kubectl get --raw='/readyz' 2> /dev/null)" == "ok" ]]; do echo "Waiting for the cluster to become ready..." sleep 2 done EOF
kubectl apply -k /var/post_install echo 'Waiting for the system-upgrade-controller deployment to become available...' kubectl -n system-upgrade wait --for=condition=available --timeout=360s deployment/system-upgrade-controller sleep 7 kubectl -n system-upgrade apply -f /var/post_install/plans.yaml timeout 360 bash <<EOF until [ -n "\$(kubectl get -n traefik service/traefik --output=jsonpath='{.status.loadBalancer.ingress[0].ip}' 2> /dev/null)" ]; do echo "Waiting for load-balancer to get an IP..." sleep 2 done EOF
Platform
Mac