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

Error when deployment #2

Open
sudhakars1304 opened this issue May 3, 2023 · 1 comment
Open

Error when deployment #2

sudhakars1304 opened this issue May 3, 2023 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@sudhakars1304
Copy link

we are facing issue when deploying the nsxv3-exporter.yaml and below are the errors :

kubectl logs nsxv3-exporter-7c79b454b-cnx5g -n monitoring
Traceback (most recent call last):
File "/app/collector.py", line 46, in
print(f"HTTP server started correctly on port {port}")
^^^^
NameError: name 'port' is not defined

Below are the steps we followed to breakdown docker-composer.yaml to kubernetes.

we downloaded kompose and used it to convert the your docker-compose file to Kubernetes and we got the three files
1.nsxt-default-networkpolicy.yaml
2. nsxv3-exporter-deployment.yaml
3. nsxv3-exporter-service.yaml

we are able to deploy the network and service but when deploying the deployment, we got that error.

Kindly assist.

@arthur-ehrle arthur-ehrle self-assigned this May 4, 2023
@arthur-ehrle arthur-ehrle added the help wanted Extra attention is needed label May 4, 2023
@arthur-ehrle
Copy link
Owner

arthur-ehrle commented May 4, 2023

I don't have a lot of knowledges in K8S, I usually use docker. But it seems that the container can't access its config file.

*I think that you will just have to mount a volume with the config file
*Check that you have a valid config file
*Check that the config file is accessible from the container
*You can open a shell into the container and check if you see the config file in /app/config/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants