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

Docker CLI example in README to run ct install returns error #394

Closed
prashant-shahi opened this issue Feb 16, 2022 · 0 comments · Fixed by #395
Closed

Docker CLI example in README to run ct install returns error #394

prashant-shahi opened this issue Feb 16, 2022 · 0 comments · Fixed by #395

Comments

@prashant-shahi
Copy link
Contributor

prashant-shahi commented Feb 16, 2022

Is this a request for help?: No.


Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug Report

Version of Helm and Kubernetes:

What happened:

From README, the following command returns error.

docker run -it --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro --volume $(pwd):/data quay.io/helmpack/chart-testing:v3.5.0 ct install
Creating namespace 'redacted-6k0bp8t5zl'...
>>> kubectl create namespace redacted-6k0bp8t5zl
The connection to the server 127.0.0.1:42511 was refused - did you specify the right host or port?
========================================================================================================================
........................................................................................................................
==> Events of namespace redacted-6k0bp8t5zl
........................................................................................................................
>>> kubectl get events --output wide --namespace redacted-6k0bp8t5zl
The connection to the server 127.0.0.1:42511 was refused - did you specify the right host or port?
Error printing details: Error waiting for process: exit status 1
>>> kubectl get pods --no-headers --namespace redacted-6k0bp8t5zl --selector  --output jsonpath={.items[*].metadata.name}
Error printing logs: Error running process: exit status 1
Deleting release 'redacted-6k0bp8t5zl'...

kubectl in the docker container is not able to communicate to kind cluster.

What you expected to happen:

It is expected to run ct install in docker container with k8s cluster on the host machine.

How to reproduce it:

  • kind create cluster
  • checkout to the charts repo with ct.yaml
  • docker run -it --workdir=/data --volume ~/.kube/config:/root/.kube/config:ro --volume $(pwd):/data quay.io/helmpack/chart-testing:v3.5.0 ct install
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

Successfully merging a pull request may close this issue.

1 participant