Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system-charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
system-charts
Commits
41775563
You need to sign in or sign up before continuing.
Commit
41775563
authored
Aug 27, 2019
by
michelia feng
Committed by
Craig Jellick
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve linux node selector and tolerations
Problem: New add charts operator-init lack of linux node selector and tolerations Solution: Improve node selector and tolerations
parent
72af4960
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
8 deletions
+19
-8
alertmanager.yaml
...ng/v0.0.4/charts/alertmanager/templates/alertmanager.yaml
+1
-1
deployment.yaml
....0.4/charts/exporter-kube-state/templates/deployment.yaml
+1
-1
daemonset.yaml
...ring/v0.0.4/charts/exporter-node/templates/daemonset.yaml
+1
-1
deployment.yaml
...onitoring/v0.0.4/charts/grafana/templates/deployment.yaml
+1
-1
job-install-crds.yaml
....0.4/charts/operator-init/templates/job-install-crds.yaml
+4
-0
deployment.yaml
...nitoring/v0.0.4/charts/operator/templates/deployment.yaml
+1
-1
prometheus.yaml
...toring/v0.0.4/charts/prometheus/templates/prometheus.yaml
+1
-1
_helpers.tpl
charts/rancher-monitoring/v0.0.4/templates/_helpers.tpl
+9
-2
No files found.
charts/rancher-monitoring/v0.0.4/charts/alertmanager/templates/alertmanager.yaml
View file @
41775563
...
@@ -19,7 +19,7 @@ spec:
...
@@ -19,7 +19,7 @@ spec:
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
baseImage
:
{{
template "system_default_registry" .
}}{{
.Values.image.repository
}}
baseImage
:
{{
template "system_default_registry" .
}}{{
.Values.image.repository
}}
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/os
:
linux
{{
- include "linux-node-selector" . | nindent 4
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- if eq 2 (len $pair)
}}
{{
- if eq 2 (len $pair)
}}
...
...
charts/rancher-monitoring/v0.0.4/charts/exporter-kube-state/templates/deployment.yaml
View file @
41775563
...
@@ -56,7 +56,7 @@ spec:
...
@@ -56,7 +56,7 @@ spec:
{{
toYaml .Values.tolerations | indent 8
}}
{{
toYaml .Values.tolerations | indent 8
}}
{{
- end
}}
{{
- end
}}
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/os
:
linux
{{
- include "linux-node-selector" . | nindent 8
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- if eq 2 (len $pair)
}}
{{
- if eq 2 (len $pair)
}}
...
...
charts/rancher-monitoring/v0.0.4/charts/exporter-node/templates/daemonset.yaml
View file @
41775563
...
@@ -73,7 +73,7 @@ spec:
...
@@ -73,7 +73,7 @@ spec:
tolerations
:
tolerations
:
-
operator
:
Exists
-
operator
:
Exists
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/os
:
linux
{{
- include "linux-node-selector" . | nindent 8
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- if eq 2 (len $pair)
}}
{{
- if eq 2 (len $pair)
}}
...
...
charts/rancher-monitoring/v0.0.4/charts/grafana/templates/deployment.yaml
View file @
41775563
...
@@ -111,7 +111,7 @@ spec:
...
@@ -111,7 +111,7 @@ spec:
{{
toYaml .Values.resources.proxy | indent 10
}}
{{
toYaml .Values.resources.proxy | indent 10
}}
{{
- end
}}
{{
- end
}}
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/os
:
linux
{{
- include "linux-node-selector" . | nindent 8
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- if eq 2 (len $pair)
}}
{{
- if eq 2 (len $pair)
}}
...
...
charts/rancher-monitoring/v0.0.4/charts/operator-init/templates/job-install-crds.yaml
View file @
41775563
...
@@ -11,6 +11,10 @@ spec:
...
@@ -11,6 +11,10 @@ spec:
backoffLimit
:
3
backoffLimit
:
3
template
:
template
:
spec
:
spec
:
nodeSelector
:
{{
- include "linux-node-selector" . | nindent 8
}}
tolerations
:
{{
- include "linux-node-tolerations" . | nindent 8
}}
serviceAccountName
:
{{
template "app.fullname" .
}}
serviceAccountName
:
{{
template "app.fullname" .
}}
containers
:
containers
:
-
name
:
operator-init-crds
-
name
:
operator-init-crds
...
...
charts/rancher-monitoring/v0.0.4/charts/operator/templates/deployment.yaml
View file @
41775563
...
@@ -57,7 +57,7 @@ spec:
...
@@ -57,7 +57,7 @@ spec:
resources
:
resources
:
{{
toYaml .Values.resources | indent 12
}}
{{
toYaml .Values.resources | indent 12
}}
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/os
:
linux
{{
- include "linux-node-selector" . | nindent 8
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- if eq 2 (len $pair)
}}
{{
- if eq 2 (len $pair)
}}
...
...
charts/rancher-monitoring/v0.0.4/charts/prometheus/templates/prometheus.yaml
View file @
41775563
...
@@ -109,7 +109,7 @@ spec:
...
@@ -109,7 +109,7 @@ spec:
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
nodeSelector
:
nodeSelector
:
beta.kubernetes.io/os
:
linux
{{
- include "linux-node-selector" . | nindent 4
}}
{{
- range .Values.nodeSelectors
}}
{{
- range .Values.nodeSelectors
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- $pair
:
= regexSplit "=" . 2
}}
{{
- if eq 2 (len $pair)
}}
{{
- if eq 2 (len $pair)
}}
...
...
charts/rancher-monitoring/v0.0.4/templates/_helpers.tpl
View file @
41775563
...
@@ -136,4 +136,12 @@ add below linux tolerations to workloads could be scheduled to those linux nodes
...
@@ -136,4 +136,12 @@ add below linux tolerations to workloads could be scheduled to those linux nodes
value: "linux"
value: "linux"
effect: "NoSchedule"
effect: "NoSchedule"
operator: "Equal"
operator: "Equal"
{{- end -}}
{{- end -}}
\ No newline at end of file
{{- define "linux-node-selector" -}}
{{- if semverCompare "
<1
.
14-0
"
.
Capabilities
.
KubeVersion
.
GitVersion
-
}}
beta
.
kubernetes
.
io
/
os:
linux
{{
-
else
-
}}
kubernetes
.
io
/
os:
linux
{{
-
end
-
}}
{{
-
end
-
}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment