CNF135000: Kubernetes cluster unreachable: the server has asked for the client to provide credentials
2.3, 3.0
Kubeconfig is not synchronized and needs to be manually synchronized
Note: All (upgraded and non-upgraded) Clusters require the kubeconfig to be synchronized.
The steps 1 through 4 should only be applied to TCA-M and not TCA-CP.
Generate an authentication token
curl -D - --location --insecure --request POST 'https://tca-m-url/hybridity/api/sessions' --header 'Accept: application/json' --header 'Content-Type: text/plain' --data-raw '{"username": "username","password": "plain_text_password"}'
Note: Replace tca-m-url and username and plain_text_password with the actual values in the command provided.
curl --location --insecure --request POST 'https://tca-m-fqdn/telco/api/caas/v2/clusters/cluster_name/syncKubeconfig' --header 'Accept: application/json' --header 'Content-Type: application/json' --header 'x-hm-authorization: auth-token'
Note: Replace tca-m-fqdn and cluster_name and auth-token with the actual values in the command provided.
Note: The operation can take several minutes.
curl --location --insecure --request GET 'https://tca-m-fqdn/hybridity/api/jobs/job_id_from_above_response' --header 'Accept: application/json' --header 'x-hm-authorization: auth-token'
Note: Replace tca-m-fqdn, auth-token and job_id_from_above_response with the actual values in the command provided.
Note: Take note of the isDone and didFail flags in the json. The isDone flag should return true and the didFail flag should return false.
ssh admin@tca-cp
su -
Note: tca-cp where the cluster is configured
systemctl restart app-engine
systemctl restart web-engine
Note: In case of multiple TCA-CPs (i.e one for Mgmt cluster & one for Workload cluster) the app & web services should be started from both.
If synchronizing kubeconfig does not resolve this issue, please review Manually renew cluster certificates to address additional certificate issues.