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 in installing metric-server #230

Closed
lorenzk1213 opened this issue May 31, 2022 · 4 comments
Closed

Issue in installing metric-server #230

lorenzk1213 opened this issue May 31, 2022 · 4 comments

Comments

@lorenzk1213
Copy link

Hi, When installing the baseline components prereqs, the execution stopped with the following error:

"msg": "Failure when executing Helm command. Exited 1.\nstdout: Release "metrics-server" does not exist. Installing it now.\n\nstderr: Error: timed out waiting for the condition\n",
"stderr": "Error: timed out waiting for the condition\n",
"stderr_lines": [
"Error: timed out waiting for the condition"
],
"stdout": "Release "metrics-server" does not exist. Installing it now.\n",
"stdout_lines": [
"Release "metrics-server" does not exist. Installing it now."
]
}

Any ideas?

Command used:

docker run --rm --group-add root --user $(id -u):$(id -g) --volume $BASEDIR:/data --volume $HOME/.kube/config:/.kube/kubeconfig --volume $DEPLOYDIR/dev-ans-vars.v1.0.1.yaml:/config/config --volume $TFSTATE/terraform.tfstate:/config/tfstate --volume $HOME/.ssh/id_rsa:/config/jump_svr_private_key viya4-deployment --tags "baseline,install" -vvv

Attaching full log.
baseline.log

Please advise,
Thanks

@thpang
Copy link
Member

thpang commented May 31, 2022

Looks like a network issues. The log seems to indicate you can talk with your cluster. Did you try again?

@lorenzk1213
Copy link
Author

@thpang,

Have perform deletion prior to rerunning the install by running following commands:
kubectl delete deploy metrics-server -n kube-system
kubectl delete svc metrics-server -n kube-system

Have tried to rerun, after execution, it was observed that fail=0 but seems it did not install the metrics-server.

image

Below is the log.

baseline_prereq_install_after_delete_metrics-server.txt

Anything we have missed to delete or something?

Thank you.

@thpang
Copy link
Member

thpang commented Jun 1, 2022

It did not reinstall as it found evidence of the metrics server. It is showing that the metrics-server's service is still there. So yes it will simply skip the install metrics-server step and not re-install. You'll need to either clean up ALL of the metrics-server items by hand or run the baseline,uninstall command to clean up the baseline and then run baseline,install to re-install it cleanly.

@lorenzk1213
Copy link
Author

@thpang.

Seems this is ok now. Thanks..
metrics-server pod is now running.

@thpang thpang closed this as completed Jun 2, 2022
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

2 participants