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] - Deployment fails on Kubernetes 1.24.0 #1334

Closed
aktech opened this issue Jun 19, 2022 · 1 comment · Fixed by #1336
Closed

[BUG] - Deployment fails on Kubernetes 1.24.0 #1334

aktech opened this issue Jun 19, 2022 · 1 comment · Fixed by #1336
Labels
type: bug 🐛 Something isn't working

Comments

@aktech
Copy link
Member

aktech commented Jun 19, 2022

OS system and architecture in which you are running QHub

MacOS

Expected behavior

Deployment works on Kubernetes 1.24.0

Actual behavior

Deployment fails on Kubernetes 1.24.0

How to Reproduce the problem?

Deploy QHub of Kubernetes 1.24.0 (I tested on Azure and it failed)

Command output

2022-06-17T08:22:36.5875836Z [terraform]: �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mWaiting for default secret of "dev/qhub-traefik-ingress" to appear�[0m
2022-06-17T08:22:36.5876236Z [terraform]: �[31m│�[0m �[0m
2022-06-17T08:22:36.5876687Z [terraform]: �[31m│�[0m �[0m�[0m  with module.kubernetes-ingress.kubernetes_service_account.main,
2022-06-17T08:22:36.5877271Z [terraform]: �[31m│�[0m �[0m  on modules/kubernetes/ingress/main.tf line 1, in resource "kubernetes_service_account" "main":
2022-06-17T08:22:36.5877781Z [terraform]: �[31m│�[0m �[0m   1: resource "kubernetes_service_account" "main" �[4m{�[0m�[0m
2022-06-17T08:22:36.5878155Z [terraform]: �[31m│�[0m �[0m
2022-06-17T08:22:36.5878437Z [terraform]: �[31m╵�[0m�[0m

Versions and dependencies used.

Kubernetes Version: 1.24.0
QHub: ed81f6128e4da8c67535112bbfaa84f082d3c648

Compute environment

Azure

Integrations

No response

Anything else?

The deployment fails for Kubernetes 1.24.0 due to a recent change in Kubernetes API: Default secret no longer being generated for service accounts, See hashicorp/terraform-provider-kubernetes#1724

The LegacyServiceAccountTokenNoAutoGeneration feature gate is beta, and enabled by default. When enabled, Secret API objects containing service account tokens are no longer auto-generated for every ServiceAccount. Use the TokenRequest API to acquire service account tokens, or if a non-expiring token is required, create a Secret API object for the token controller to populate with a service account token by following this guide. (kubernetes/kubernetes#108309, @zshihang)

Source: K8s 1.24.0 release notes

@aktech aktech added the type: bug 🐛 Something isn't working label Jun 19, 2022
@aktech aktech changed the title [BUG] - The [BUG] - Deployment fails on Kubernetes 1.24.0 Jun 19, 2022
@aktech
Copy link
Member Author

aktech commented Jun 19, 2022

Related #1329

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

Successfully merging a pull request may close this issue.

1 participant