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

Issue on running the script itself #26

Open
thisiskazem opened this issue Oct 15, 2024 · 0 comments
Open

Issue on running the script itself #26

thisiskazem opened this issue Oct 15, 2024 · 0 comments

Comments

@thisiskazem
Copy link
Contributor

Hello everyone

I'm trying to run the script using:
sudo ./edge-pc-local-setup.sh
and I have also exported the KUBECONFIG variable before running it but all the playbook are not running and I get some errors from some tasks like this:

TASK [nginx_installation : Installation of nginx Ingress Controller] *************************************************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["kubectl", "apply", "-f", "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.1/deploy/static/provider/baremetal/deploy.yaml"], "delta": "0:00:00.293590", "end": "2024-10-15 15:41:28.011298", "msg": "non-zero return code", "rc": 1, "start": "2024-10-15 15:41:27.717708", "stderr": "error: error validating "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.1/deploy/static/provider/baremetal/deploy.yaml\": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s\": dial tcp 127.0.0.1:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false", "stderr_lines": ["error: error validating "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.1.1/deploy/static/provider/baremetal/deploy.yaml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false"], "stdout": "", "stdout_lines": []}

TASK [Check Kubernetes Dashboard] ************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["kubectl", "get", "svc", "kubernetes-dashboard", "-n", "kubernetes-dashboard"], "delta": "0:00:00.049938", "end": "2024-10-15 15:41:29.965719", "msg": "non-zero return code", "rc": 1, "start": "2024-10-15 15:41:29.915781", "stderr": "E1015 15:41:29.956517 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"\nE1015 15:41:29.957965 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"\nE1015 15:41:29.959300 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"\nE1015 15:41:29.960630 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"\nE1015 15:41:29.962793 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?", "stderr_lines": ["E1015 15:41:29.956517 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"", "E1015 15:41:29.957965 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"", "E1015 15:41:29.959300 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"", "E1015 15:41:29.960630 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"", "E1015 15:41:29.962793 10763 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"http://localhost:8080/api?timeout=32s\\\": dial tcp 127.0.0.1:8080: connect: connection refused"", "The connection to the server localhost:8080 was refused - did you specify the right host or port?"], "stdout": "", "stdout_lines": []}
...ignoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant