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

add volume controller and volume replica node level taint toleration #106

Merged
merged 2 commits into from
Oct 11, 2017
Merged

add volume controller and volume replica node level taint toleration #106

merged 2 commits into from
Oct 11, 2017

Conversation

AmitKumarDas
Copy link

  1. Why is this change necessary ?

It has been seen that a K8s setup might dedicate some
K8s nodes for control plane while some other nodes
for storage plane. This change will be able to handle
such setup needs.

This will fix openebs/openebs#512

  1. How does this change address the issue ?
  • accepts node taint toleration for volume controller

  • accepts node taint toleration for volume replica

  • understands ENV variable for above

  • modifies buildscripts as apiserver is now under maya
    repository.

  1. How to verify this change ?
  1. What side effects does this change have ?
  • The volume controller & replica placement logic is
    impacted

  • This is an optional feature

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

1. Why is this change necessary ?

It has been seen that a K8s setup might dedicate some
K8s nodes for control plane while some other nodes
for storage plane. This change will be able to handle
such setup needs.

This will fix openebs/openebs#512

2. How does this change address the issue ?

- accepts node taint toleration for volume controller

- accepts node taint toleration for volume replica

- understands ENV variable for above

- modifies buildscripts as apiserver is now under maya
repository.

3. How to verify this change ?

- Refer Issue openebs/openebs#600

- Get a K8s 1.8 or above setup

- Taint the nodes with appropriate taint key & value

- Create volume with node taint toleration enabled for volume
Controller

- Verify if volume controller was placed in the appropriate
tainted node

- Create volume with node taint toleration enabled for
volume Replica

- Verify if volume replica was placed in the appropriate
tainted node

4. What side effects does this change have ?

- The volume controller & replica placement logic is
impacted

- This is an optional feature
@codecov
Copy link

codecov bot commented Oct 11, 2017

Codecov Report

Merging #106 into master will increase coverage by 0.27%.
The diff coverage is 53.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
+ Coverage   19.59%   19.86%   +0.27%     
==========================================
  Files          58       58              
  Lines        7360     7419      +59     
==========================================
+ Hits         1442     1474      +32     
- Misses       5818     5838      +20     
- Partials      100      107       +7
Impacted Files Coverage Δ
orchprovider/k8s/v1/k8s.go 38.94% <53.33%> (+1.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d815c1c...bc81e4b. Read the comment docs.

Copy link
Contributor

@prateekpandey14 prateekpandey14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove build binaries apiserver and maya, which got added as part of commit.

1. Why is this change necessary ?

The source code generally does not have the binaries.
Previous commit had uploaded these binaries.

2. How does this change address the issue ?

- Modified the makefile which will prevent the issue
in first place

- Removed the binaries from git

3. How to verify this change ?

- ll of buildscripts/apiserver will not show
binaries

4. What side effects does this change have ?

- None
@AmitKumarDas
Copy link
Author

@prateekpandey14 Done..

@prateekpandey14
Copy link
Contributor

lgtm

@prateekpandey14 prateekpandey14 merged commit 64d8c2a into openebs-archive:master Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maya should be able to set node level taint tolerations on OpenEBS volume controller & replicas Pods
3 participants