Provision 3k_hybrid example failing at Ansible step - TASK [gitlab-charts : Gather all Node Pool Info]
Using the example GCP 3k_hybrid I get the following during the Ansible run
TASK [gitlab-charts : Gather all Node Pool Info] *******************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => changed=false
msg: 'Failed to get client due to HTTPConnectionPool(host=''localhost'', port=80): Max retries exceeded with url: /version (Caused by NewConnectionError(''<urllib3.connection.HTTPConnection object at 0x10e3920a
0>: Failed to establish a new connection: [Errno 61] Connection refused''))'
Looking at ansible/roles/gitlab-charts/tasks/main.yml#L50 the next step is to get some cluster node information.
I am able to run kubectl get nodes
successfully from the terminal where ansible was running after following 3. Setting up authentication for the provisioned Kubernetes Cluster
Why is localhost used being used? Do I somehow need to add kubectl config in GET configuration?
My config has
# General Settings
prefix: "###"
external_url: "https://###" ## note sure about https, I think so
#external_url: "###"
external_ip: "###"
gitlab_license_file: "###"
cloud_native_hybrid_environment: true
kubeconfig_setup: true