I have a cluster that was on k8s version 1.21 and I have upgraded it to version 1.22. When I redeployed the environment it is not able to create out Nginx Load Balancer FrontendConfig.
As per the requirements, I have updated the networking.k8s.io API to v1 from v1beta1
The left side used to work on API v1.21 but after upgrading and running the left side I get the following error:
│ Error: Failed to determine GroupVersionResource for manifest
│
│ with kubernetes_manifest.nginx_frontend_config,
│ on nginx.tf line 83, in resource “kubernetes_manifest” “nginx_frontend_config”:
│ 83: resource “kubernetes_manifest” “nginx_frontend_config” {
│
│ cannot select exact GV from REST mapper
I have searched everywhere and this error is barely mentioned and there aren’t any helpful results. What does that mean and what do I need to look at to fix it?
Yes, I did notice that too and I have reverted it, which gives me the following error:
│ Warning: Helm release “ingress-nginx” was created but has a failed status. Use the helm command to investigate the error, correct it, then run Terraform again.
│
│ with helm_release.nginx_ingress,
│ on nginx.tf line 101, in resource “helm_release” “nginx_ingress”:
│ 101: resource “helm_release” “nginx_ingress” {
│
│ Error: failed post-install: timed out waiting for the condition
│
│ with helm_release.nginx_ingress,
│ on nginx.tf line 101, in resource “helm_release” “nginx_ingress”:
│ 101: resource “helm_release” “nginx_ingress” {
│
│ Error: Failed to create Ingress ‘ingress-nginx/nginx-ingress’ because: Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”: failed to call webhook: Post “https://ingress-nginx-controller-admissio
n.ingress-nginx.svc:443/networking/v1beta1/ingresses?timeout=10s”: x509: certificate signed by unknown authority
│
│ with kubernetes_ingress_v1.nginx-ingress,
│ on nginx.tf line 199, in resource “kubernetes_ingress_v1” “nginx-ingress”:
│ 199: resource “kubernetes_ingress_v1” “nginx-ingress” {
│
│ Error: Failed to create Ingress ‘kube-system/nginx-healthz’ because: Internal error occurred: failed calling webhook “validate.nginx.ingress.kubernetes.io”: failed to call webhook: Post “https://ingress-nginx-controller-admission.
ingress-nginx.svc:443/networking/v1beta1/ingresses?timeout=10s”: x509: certificate signed by unknown authority
│
│ with kubernetes_ingress_v1.nginx_healthz,
│ on nginx.tf line 242, in resource “kubernetes_ingress_v1” “nginx_healthz”:
│ 242: resource “kubernetes_ingress_v1” “nginx_healthz” {
│
That sounds like a problem with your Kubernetes cluster internals, rather than Terraform, to me. A GKE, rather than Terraform, focussed forum is more likely to have suitable expertise in understanding that.