-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/prometheus-operator] PVC name must be no more than 63 characters #13170
Comments
Adding
Will generate a shorter name:
|
This is redicilous! I ended up with a persistance volume claim name like this: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions. |
This issue is being automatically closed due to inactivity. |
Anyone have an idea how to solve that issue? I'm running helm 5.10.0, and prometheus-operator 0.29.0. When adding medatata.name key the operator fails |
My workaround was to select a shorter name on metadata.name at values.yaml, like I wrote on previous sample. For example I named it "data":
|
@sdelrio when I'm trying your workaround, the operator doesn't deploy the prometheus pod. |
Hope this helps you @rdxmaor
|
The names for these objects arise out of helm practices for naming components interacting with prometheus-operator naming conventions. Almost all charts in this repository provide a |
Tried to setup the metadata in the values.yaml, still no luck, volume claims are created by prometheus-operator with these long names, deploying failed (version 0.35.0):
|
The above workaround is working fine for me.. My changes are below.
Added In AlertManager PVC spec.
In above snippet, added below entries
In Prometheus PVC spec.
In above snippet, added below entries
After executing with above modification, able to provision both pods. Output
PVC:
SVC:
The above entries will help to restrict number of characters for Pods and PVCs. |
Is this a request for help?: Yes
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
Version of Helm and Kubernetes: Helm v2.13.1, Kubernetes v1.13.5
Which chart: stable/prometheus-operator
What happened: Attemt to run helm install stable/prometheus-operator with prometheus.storageSpec (without storage same way of deployment works). When I deploy the PVC stays on pending because the generated name is too long
Invalid value: "prometheus-monitoring-prometheus-oper-prometheus-db-prometheus-monitoring-prometheus-oper-prometheus-0": must be no more than 63 characters
What you expected to happen:
Get the PVC created and status Bound, for example:
How to reproduce it (as minimally and precisely as possible):
Define
storageSpec
for the helm char:Anything else we need to know:
The text was updated successfully, but these errors were encountered: