-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
set volumeBindingMode as WaitForFirstConsumer #8416
Conversation
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cpanato The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @cpanato! If you run |
@rifelpet got this
any ideas? |
Ah apologies, we really need to get that script into a make target with dependencies...
|
@rifelpet still getting the same error 😓 |
how about just a |
@rifelpet AH! i need to be in the |
Please also bump this version to
|
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
it is failing locally as well when i run
UPDATE: |
now are green, thanks |
/lgtm |
|
/lgtm cancel |
@olemarkus thanks for your review, I did not know that apply again when it is in the upgrade process. |
I am not aware of that. but I would really like for this to be added in as well. but someone more senior than me need to weigh in here. |
I've added this topic to the agenda for our call this Friday and I'll post any updates here 👍 |
@rifelpet thank you! made a comment, I'm not able to attend this meeting :/ |
I suspect we may need to remove the (I hate these inexplicably immutable fields. If deleting and recreating the resource has no repercussions, the field might as well be mutable.) |
Yeah that is what I have done in my post cluster steps by deleting and re-creating with some changes. |
I have also deleted and re-creating storageclass resources. New PVs won't be created in the tiny interval that the SC is gone, but besides that the operation should be safe. Maybe this would be an opportunity to fix the thing where we have a storageclass called default and a storageclass called gp2 where the gp2 SC is the actual default one 😃 |
Since the field is immutable, we will now have three storage classes. |
@cpanato the result of the discussion today was that we should create a new StorageClass instead of updating the existing one. Its name and whether it becomes the new default storage class will be up for discussion here :) |
|
I am thinking it may be a good idea to namespace the name with kops. I can easily see gp2-wait existing already |
@rifelpet ok thanks! i will work on that! |
I went down this rabbit hole as well so sorry for the duplication, although I modified a few other pieces. Happy to discuss/merge if needed: #8582 |
In some clusters we have which are very small, 5 worker node and one in each AWS AZ.
we notice that when deploying apps that have a PVC it was creating the PV in on worker node that was at full capacity and then the Pod never starts because the node does not accept more pods but the PV was already attached.
Doing some research we discovered this: https://kubernetes.io/docs/concepts/storage/storage-classes/#volume-binding-mode and then changed the
storageClass
calledgp2
that Kops deploys and added thevolumeBindingMode: WaitForFirstConsumer
Doing that we did not get more failures when scheduling a POD that needs a PV/PVC
So though this is a good fix here. However, don't know if that is the correct file to change.