Skip to content
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

Should support anti afinity policy settings on pvc #381

Closed
lidajia opened this issue Jan 13, 2024 · 2 comments
Closed

Should support anti afinity policy settings on pvc #381

lidajia opened this issue Jan 13, 2024 · 2 comments
Labels

Comments

@lidajia
Copy link

lidajia commented Jan 13, 2024

Scenario:
The stateful set uses the storage class provided by the local path provider to define the pvctemplate. At the same time, the podTemplate uses the hostport. When there are multiple stateful sets using the same hostport or the same stateful set adjusts the number of replicas during the rolling upgrade process, after the pod is rescheduled, the following results may be generated: the podA has previously bound pv1 (on node node-1), and the new pod pod is also scheduled to node-1, And PV2 was allocated. After the creation of podA, due to its binding relationship with PV1, it needs to be scheduled to node-1. At this point, podB has already been scheduled to node-1, and there is a host port conflict between podA and podB, so podA will be in a pending state.

Appeal:

When storageclass dynamically creates PVs, it should be able to avoid creating anti affinity PVs on the same node based on the anti affinity policy set on the PVC.

This is not the same as the anti affinity strategy of pod, because due to the retention strategy of pv, pv exists, but pod may not necessarily exist

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label May 31, 2024
Copy link

github-actions bot commented Jun 5, 2024

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant