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

EKS kubeconfig context missing #32

Open
sdpoueme opened this issue Jan 15, 2025 · 0 comments · May be fixed by #33
Open

EKS kubeconfig context missing #32

sdpoueme opened this issue Jan 15, 2025 · 0 comments · May be fixed by #33
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@sdpoueme
Copy link
Contributor

Describe the bug
In some specific scenarios, the kubeconfig is missing when operators are ready to run the intra cluster step. This leads to the installation failing in the local provisioner step in terraform.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the solution guidance
  2. Run the steps to create the clusters
  3. Run the intra-cluster creation step
  4. See error
null_resource.generate_agones_certs: Provisioning with 'local-exec'...
null_resource.generate_agones_certs (local-exec): Executing: ["/bin/sh" "-c" "nohup /Users/pouemes/Projects/guidance-for-game-server-hosting-using-agones-and-open-match-on-amazon-eks/scripts/generate-agones-certs.sh agones-gameservers-1 /Users/pouemes/Projects/guidance-for-game-server-hosting-using-agones-and-open-match-on-amazon-eks &"]
null_resource.generate_agones_certs (local-exec): + echo '#####'
null_resource.generate_agones_certs (local-exec): #####
null_resource.generate_agones_certs (local-exec): + CLUSTER_NAME=agones-gameservers-1
null_resource.generate_agones_certs (local-exec): + ROOT_PATH=/Users/pouemes/Projects/guidance-for-game-server-hosting-using-agones-and-open-match-on-amazon-eks
null_resource.generate_agones_certs (local-exec): ++ kubectl config get-contexts -o=name
null_resource.generate_agones_certs (local-exec): ++ grep agones-gameservers-1
null_resource.generate_agones_certs (local-exec): + kubectl config use-context
null_resource.generate_agones_certs (local-exec): Set the current-context in a kubeconfig file.

null_resource.generate_agones_certs (local-exec): Aliases:
null_resource.generate_agones_certs (local-exec): use-context, use

null_resource.generate_agones_certs (local-exec): Examples:
null_resource.generate_agones_certs (local-exec):   # Use the context for the minikube cluster
null_resource.generate_agones_certs (local-exec):   kubectl config use-context minikube

null_resource.generate_agones_certs (local-exec): Usage:
null_resource.generate_agones_certs (local-exec):   kubectl config use-context CONTEXT_NAME [options]

null_resource.generate_agones_certs (local-exec): Use "kubectl options" for a list of global command-line options (applies to all commands).
null_resource.generate_agones_certs (local-exec): error: Unexpected args: []
null_resource.generate_agones_certs (local-exec): + echo '- Verify that the cert-manager pods are running -'
null_resource.generate_agones_certs (local-exec): - Verify that the cert-manager pods are running -
null_resource.generate_agones_certs (local-exec): + kubectl get pods -n cert-manager -o wide
null_resource.generate_agones_certs (local-exec): E0115 17:18:20.235382   92207 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
null_resource.generate_agones_certs (local-exec): E0115 17:18:20.238508   92207 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
null_resource.generate_agones_certs (local-exec): E0115 17:18:20.240012   92207 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
null_resource.generate_agones_certs (local-exec): E0115 17:18:20.241511   92207 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"
null_resource.generate_agones_certs (local-exec): E0115 17:18:20.243808   92207 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\": dial tcp [::1]:8080: connect: connection refused"

Expected behavior
The intra-cluster creation should be successful.

Screenshots
Not required.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@sdpoueme sdpoueme self-assigned this Jan 15, 2025
@sdpoueme sdpoueme added bug Something isn't working documentation Improvements or additions to documentation labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
1 participant