Skip to content

Commit

Permalink
Merge pull request gardener#2413 from rfranzke/feature/volume-limits
Browse files Browse the repository at this point in the history
Add support for KUBE_MAX_PD_VOLS for kube-scheduler
  • Loading branch information
rfranzke authored Jun 5, 2020
2 parents 8c22dca + 2324962 commit 6d2f8b5
Show file tree
Hide file tree
Showing 18 changed files with 1,145 additions and 964 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ spec:
- name: metrics
containerPort: {{ include "kube-scheduler.port" . }}
protocol: TCP
{{- if .Values.kubeMaxPDVols }}
env:
- name: KUBE_MAX_PD_VOLS
value: {{ .Values.kubeMaxPDVols | quote }}
{{- end }}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
{{- if .Values.resources }}
Expand Down
1 change: 1 addition & 0 deletions charts/seed-controlplane/charts/kube-scheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ resources:
limits:
cpu: 400m
memory: 512Mi
#kubeMaxPDVols: "30"
1 change: 1 addition & 0 deletions example/90-shoot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ spec:
# kubeScheduler:
# featureGates:
# SomeKubernetesFeature: true
# kubeMaxPDVols: "30" # https://kubernetes.io/docs/concepts/storage/storage-limits/#custom-limits
# kubeProxy:
# featureGates:
# SomeKubernetesFeature: true
Expand Down
15 changes: 15 additions & 0 deletions hack/api-reference/core.md
Original file line number Diff line number Diff line change
Expand Up @@ -3903,6 +3903,21 @@ KubernetesConfig
</p>
</td>
</tr>
<tr>
<td>
<code>kubeMaxPDVols</code></br>
<em>
string
</em>
</td>
<td>
<em>(Optional)</em>
<p>KubeMaxPDVols allows to configure the <code>KUBE_MAX_PD_VOLS</code> environment variable for the kube-scheduler.
Please find more information here: <a href="https://kubernetes.io/docs/concepts/storage/storage-limits/#custom-limits">https://kubernetes.io/docs/concepts/storage/storage-limits/#custom-limits</a>
Note that using this field is considered alpha-/experimental-level and is on your own risk. You should be aware
of all the side-effects and consequences when changing it.</p>
</td>
</tr>
</tbody>
</table>
<h3 id="core.gardener.cloud/v1beta1.KubeletConfig">KubeletConfig
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/core/types_shoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@ const (
// KubeSchedulerConfig contains configuration settings for the kube-scheduler.
type KubeSchedulerConfig struct {
KubernetesConfig
// KubeMaxPDVols allows to configure the `KUBE_MAX_PD_VOLS` environment variable for the kube-scheduler.
// Please find more information here: https://kubernetes.io/docs/concepts/storage/storage-limits/#custom-limits
// Note that using this field is considered alpha-/experimental-level and is on your own risk. You should be aware
// of all the side-effects and consequences when changing it.
KubeMaxPDVols *string
}

// KubeProxyConfig contains configuration settings for the kube-proxy.
Expand Down
1,024 changes: 535 additions & 489 deletions pkg/apis/core/v1alpha1/generated.pb.go

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions pkg/apis/core/v1alpha1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pkg/apis/core/v1alpha1/types_shoot.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,12 @@ const (
// KubeSchedulerConfig contains configuration settings for the kube-scheduler.
type KubeSchedulerConfig struct {
KubernetesConfig `json:",inline" protobuf:"bytes,1,opt,name=kubernetesConfig"`
// KubeMaxPDVols allows to configure the `KUBE_MAX_PD_VOLS` environment variable for the kube-scheduler.
// Please find more information here: https://kubernetes.io/docs/concepts/storage/storage-limits/#custom-limits
// Note that using this field is considered alpha-/experimental-level and is on your own risk. You should be aware
// of all the side-effects and consequences when changing it.
// +optional
KubeMaxPDVols *string `json:"kubeMaxPDVols,omitempty" protobuf:"bytes,2,opt,name=kubeMaxPDVols"`
}

// KubeProxyConfig contains configuration settings for the kube-proxy.
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/core/v1alpha1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/core/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6d2f8b5

Please sign in to comment.