csi-driver-host-path icon indicating copy to clipboard operation
csi-driver-host-path copied to clipboard

Prevent csi pod moving to another node?

Open rahmataw opened this issue 2 years ago • 5 comments

Hi, I deployed CSI hostpath on top kubernetes with 2 worker node. Righ now, my pod snapshot-controller-0 and csi-hostpathplugin-0 deployed on worker2. I need to reboot this server. How to prevent this pod from moving to worker1? I want to avoid data loss due to this pod moving to worker1.

Note: I checked my node label and there is a label topology.hostpath.csi/node=worker-2 but when I check on snapshot-controller-0 and csi-hostpathplugin-0 there are no nodeSelectore defined.

rahmataw avatar Mar 24 '22 08:03 rahmataw

That sounds like you are using csi-host-path-driver for some real production workloads. Please don't do that, it is strictly for testing and demo purposes.

pohly avatar Mar 24 '22 12:03 pohly

That sounds like you are using csi-host-path-driver for some real production workloads. Please don't do that, it is strictly for testing and demo purposes.

Actually it is staging env and it is ok if the data lost, just curious for the posibility.

rahmataw avatar Mar 24 '22 12:03 rahmataw

You can always mangle the default deployment files to select a specific node.

pohly avatar Mar 24 '22 16:03 pohly

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jun 22 '22 16:06 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Jul 22 '22 17:07 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-triage-robot avatar Aug 21 '22 18:08 k8s-triage-robot

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Aug 21 '22 18:08 k8s-ci-robot