-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Modified influxdb petset to provision persistent volume. #28840
Conversation
@bprashanth
Do you know what could go wrong? |
serviceName: monitoring-influxdb | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: influxdb-persistent-storage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will show up as a really long pv name influxdb-persistent-storage-monitoring-influxdb-grafana-v3-0
, maybe we can shorten it?
Aren't there some GA features that depend on influx? are you sure you want it to depend on an alpha feature (it should be ok, but it sounds like priority inversion) |
AFAIK we don't have GA features depending on influx. I think it is fine to move it to pet set for 1.4 branch. |
Whatever I do (provisioning of volumes by me or by pet set), I'm hitting the problem with lack of claim in my pod: the pod is hanging in container creating state because the volume is not mount. |
The name on your volume mount needs to match the name on the volume claim. Checkout this working example: https://github.com/kubernetes/kubernetes/blob/master/test/e2e/testing-manifests/petset/zookeeper/petset.yaml#L86 |
@bprashanth |
This PR should fix #27470. |
serviceName: monitoring-influxdb | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: influxdb-ps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fyi, this will give you a pv with a reall long name. Something like influxdb-ps-monitoring-influxdb-grafana-v3-{index}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fine.
Modified influxdb petset to provision pv.
acb74d9
to
f7167d1
Compare
@bprashanth |
GCE e2e build/test passed for commit f7167d1. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit f7167d1. |
Automatic merge from submit-queue |
This is leaking resources in gce e2e. |
It's probably the dynamically provisioned pvs that are not torn down on kube-down. The petset e2es cleanup after themselves for this reason. I don't see an easy way to do this unless we have an ordered shutdown of the cluster (#16337). |
@bprashanth Yeah I don't have any suggestions on how to fix this. But it can't get merged without a fix :) |
Without fixing this, |
[WIP] Modified influxdb petset to create claim.