Skip to content

[Bug] Containers fail to start in default namespace #225

@tthvo

Description

@tthvo

Current Behavior

When installing the chart with some report sidecar replicas, the sidecar pods failed to start with the container throwing permission denied error.

When getting pod status:

$ kubectl get pods
NAME                                            READY   STATUS             RESTARTS     AGE
release1-cryostat-v4-59565cf4fd-hwlbb           4/4     Running            0            2m25s
release1-cryostat-v4-db-75dd7f5c4c-l4wd5        1/1     Running            0            2m25s
release1-cryostat-v4-reports-69dfd7cf94-sf6n7   1/2     CrashLoopBackOff   4 (7s ago)   2m25s
release1-cryostat-v4-storage-7494ccb454-rhv8b   1/1     Running            0            2m25s

When extracting the oauth2-proxy container log:

$ kubectl logs -f pods/release1-cryostat-v4-reports-69dfd7cf94-sf6n7 -c cryostat-reports-authproxy
[2024/12/02 22:44:28] [main.go:59] ERROR: Failed to initialise OAuth2 Proxy: could not validate htpasswd: could not load htpasswd file: could not open htpasswd file: open /etc/oauth2_proxy/basicauth/htpasswd: permission denied
[2024/12/02 22:44:28] [oauthproxy.go:128] using htpasswd file: /etc/oauth2_proxy/basicauth/htpasswd

Expected Behavior

The report sidecar pods start successfully.

Steps To Reproduce

  1. Have an existing k8s cluster, for example, minikube (i.e. minikube start --cni calico --cpus=8 --driver=kvm2)

  2. With latest main commit, install the chart:

    helm install release1 charts/cryostat/ --set reports.replicas=1
  3. Observe other components are healthy except the report pod.

Environment

- OS: Fedora 40
- Environment: Kubernetes v1.30.0
- Version: Latest chart snapshot on `main`

Anything else?

I haven't yet tested on OpenShift but it seems to fails on kubenetes with oauth2-proxy. I tried kinD and minikube.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions