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

[Bug]: When specifing custom namespace for ingress (traefik) controller, hanging waiting for deployment #1146

Closed
childotg opened this issue Jan 3, 2024 · 1 comment · Fixed by #1156
Labels
bug Something isn't working

Comments

@childotg
Copy link

childotg commented Jan 3, 2024

Description

Hi there, first of all thank you for this amazing project and support.
In short, if you specify this:
ingress_target_namespace = "something"
The resources are created correctly BUT, during the terraform provisioning, this step fails:

 Error: remote-exec provisioner error
│
│   with module.kube-hetzner.null_resource.kustomization,
│   on .terraform/modules/kube-hetzner/init.tf line 288, in resource "null_resource" "kustomization":
│  288:   provisioner "remote-exec" {
│
│ error executing "/tmp/terraform_1183884130.sh": Process exited with status 124

Because this part of the script:

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

Is doing this:
kubectl get -n traefik service/traefik
which has the classic "traefik" namespace hardcoded.
Unfortunately I'm not familiar with this custom terraform templates, so excuse me if I don't provide a PR for this.
Rregards
Rob

Kube.tf file

ingress_controller = "traefik"
ingress_target_namespace = "infra"

Screenshots

No response

Platform

WSL

@childotg childotg added the bug Something isn't working label Jan 3, 2024
@mysticaltech
Copy link
Collaborator

@childotg Really appreciate you finding this sneaky bug, it was fixed in v2.11.5. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants