I have some trouble with this challenge. I’m trying to apply al the code with the command terrafom apply, but I receive this message:
kubernetes_deployment.frontend: Creating…
╷
│ Error: Failed to create deployment: Post “http://localhost/apis/apps/v1/namespaces/default/deployments”: dial tcp 127.0.0.1:80: connect: connection refused
│
│ with kubernetes_deployment.frontend,
│ on frontend.tf line 1, in resource “kubernetes_deployment” “frontend”:
│ 1: resource “kubernetes_deployment” “frontend” {
│
╵
Any idea about what could be the issue?
Whay I could do to solved it?
I have been trying to solve the terraform challenge 1 but it seems there is some issue with the portal.
I have created provider.tf, deployment.tf and webapp-service.tf. When I click on check button it always say “task not completed”.
Attaching my terraform files below for reference: -
webapp-service.tf
resource "kubernetes_service" "webapp-service"{
metadata {
name = "webapp-service"
}
spec {
selector = {
name = frontend
}
port {
port = 8080
target_port = 8080
node_port = 30080
}
type = node_port
}
}
~
~
~
Deployment.tf
resource “kubernetes_deployment” “frontend” {
metadata {
name = “frontend”
labels = {
name = “frontend”
}
}
Hello KodeKloud team,
Curious if you all are still maintaining this challenge?
frontend and webapp-service steps are not getting validated it seems., I even tried copying the files from https://github.com/kodekloudhub/terraform-challenges/tree/master/challenge-1/resources
There is no error, but its not passing the ‘check’… as of 12:50 PM ET on 9/30/23
controlplane and kubernetes-provider stages are working though…