Skip to content
This repository has been archived by the owner on Apr 10, 2020. It is now read-only.

feat(757): Add disk label as a configurable option #97

Merged
merged 1 commit into from
Sep 14, 2018
Merged

feat(757): Add disk label as a configurable option #97

merged 1 commit into from
Sep 14, 2018

Conversation

Filbird
Copy link
Member

@Filbird Filbird commented Sep 12, 2018

Context

executor-k8s-vm will consume the value of options.kubernetes.resources.disk.high and use it to set the toleration/node affinity of pods that require a high disk resource.

Objective

Add options.kubernetes.resources.disk.high as a configurable option.

References

screwdriver-cd/executor-k8s-vm#42
screwdriver-cd/screwdriver#757

@@ -53,6 +53,8 @@ executor:
# k8s node selectors for approprate pod scheduling
nodeSelectors: {}
preferredNodeSelectors: {}
labels:
disk: 'screwdriver.cd/disk'
Copy link
Member

@minzcmu minzcmu Sep 12, 2018

Choose a reason for hiding this comment

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

Let's don't set the default, if we set the default and ppl with other cluster didn't configure their k8s cluster correctly. Then the pod will be pending forever if user specify a disk high annotation. We can leave it as empty and do a check in executor to do nothing if label is not configured here.

@@ -91,6 +91,8 @@ executor:
preferredNodeSelectors:
__name: K8S_VM_PREFERRED_NODE_SELECTORS
__format: json
labels:
disk: K8S_DISK_LABEL
Copy link
Member

Choose a reason for hiding this comment

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

Can we add disk under resources?
something like

resources:
    disk: 
        high: K8S_DISK_LABEL

@minzcmu minzcmu merged commit c68ea5c into master Sep 14, 2018
@minzcmu minzcmu deleted the disk branch September 14, 2018 18:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants