Bom dia.
Fiz aqui as instalações solicitadas no vídeo e algumas configurações até mesmo de variaveis de ambiente KUBECONFIG apontando para .kube/config e mesmo assim não funcionou. O erro apontado é o seguinte:
andre-pinheiro@N1004845:~/Projetos/car-service/src/main/kotlin/br/com/car/k8s/mysql$ kubectl get pods
E0129 10:13:09.834202  466946 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:13:41.836750  466946 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:14:13.838062  466946 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:14:45.840213  466946 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:15:17.841349  466946 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
error: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
andre-pinheiro@N1004845:~/Projetos/car-service/src/main/kotlin/br/com/car/k8s/mysql$ kubectl get pods
E0129 10:25:27.092231  468138 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:25:59.093136  468138 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:26:31.094240  468138 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:27:03.095652  468138 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
E0129 10:27:35.096252  468138 memcache.go:265] couldn't get current server API group list: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
error: Get "https://0.0.0.0:43065/api?timeout=32s": context deadline exceeded - error from a previous attempt: EOF
andre-pinheiro@N1004845:~/Projetos/car-service/src/main/kotlin/br/com/car/k8s/mysql$ kubectl apply -f .
error validating "deployment.yaml": error validating data: failed to download openapi: Get "https://0.0.0.0:43065/openapi/v2?timeout=32s": context deadline exceeded - error from a previous attempt: EOF; if you choose to ignore these errors, turn validation off with --validate=false
error validating "k3d-default.yaml": error validating data: failed to download openapi: Get "https://0.0.0.0:43065/openapi/v2?timeout=32s": context deadline exceeded - error from a previous attempt: EOF; if you choose to ignore these errors, turn validation off with --validate=false
error validating "service.yaml": error validating data: failed to download openapi: Get "https://0.0.0.0:43065/openapi/v2?timeout=32s": context deadline exceeded - error from a previous attempt: EOF; if you choose to ignore these errors, turn validation off with --validate=false
A impressão que tenho é que tenho que instalar o kubernetes, porém eu tinha entendido que o k2d fazia a vez dele.
Consigo criar o cluster, mas não consigo acessar pods utilizando o kubectl.
Os containers estão rodando:
CONTAINER ID   IMAGE                            COMMAND                  CREATED          STATUS          PORTS                                                  NAMES
87825586c844   ghcr.io/k3d-io/k3d-proxy:5.6.0   "/bin/sh -c nginx-pr…"   27 minutes ago   Up 27 minutes   80/tcp, 0.0.0.0:43065->6443/tcp                        k3d-k3s-default-serverlb
e7f318abba99   rancher/k3s:v1.27.4-k3s1         "/bin/k3s server --t…"   27 minutes ago   Up 27 minutes                                                          k3d-k3s-default-server-0
Conseguem ajudar no que devo fazer para funcionar?