opencost: Opencost quick setup does not work
Describe the bug I am using the quick setup instructions: https://www.opencost.io/docs/installation/install
It was working last week. It is not working today. The opencost-ui pod is in crashloop.
running with BASE_URL=/model
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/09/01 14:19:18 [emerg] 1#1: bind() to 0.0.0.0:80 failed (13: Permission denied)
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
https://raw.githubusercontent.com/opencost/opencost/develop/kubernetes/opencost.yaml
Needs a > 1024 port for opencost-ui.
To Reproduce Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Which version of OpenCost are you using? This may be the Kubecost release.
Additional context Add any other context about the problem here. Kubernetes versions and which public clouds you are working with are especially important.
About this issue
- Original URL
- State: closed
- Created 10 months ago
- Reactions: 1
- Comments: 16 (1 by maintainers)
I faced the same issue using
latest
tag foropencost-ui
container. The container runs under uid 1001If I use
quay.io/kubecost1/opencost-ui:1.106.0-rc.14
(tag from 30th of Aug) the container runs under root and it works.@tamalsaha you can use
quay.io/kubecost1/opencost-ui:1.106.0-rc.14
image as a workaround till this fixedI am running it in a freshly created KIND 1.27.3 cluster.