File tree Expand file tree Collapse file tree 7 files changed +27
-8
lines changed Expand file tree Collapse file tree 7 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ sources:
16
16
17
17
type : application
18
18
19
- version : 0.5 .0
19
+ version : 0.6 .0
20
20
21
- appVersion : v0.5 .0
21
+ appVersion : v0.6 .0
Original file line number Diff line number Diff line change 29
29
- name : craned
30
30
image : " {{ .Values.craned.image.repository }}:{{ .Values.craned.image.tag | default .Chart.AppVersion }}"
31
31
imagePullPolicy : {{ .Values.craned.image.pullPolicy }}
32
+ env :
33
+ - name : TZ
34
+ value : Asia/Shanghai
35
+ - name : CRANE_SYSTEM_NAMESPACE
36
+ valueFrom :
37
+ fieldRef :
38
+ fieldPath : metadata.namespace
32
39
command :
33
40
- /craned
34
41
args :
@@ -185,7 +192,7 @@ data:
185
192
}
186
193
187
194
upstream cluster {
188
- server craned.crane-system :8082;
195
+ server craned.{{ .Release.Namespace }} :8082;
189
196
}
190
197
191
198
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
@@ -205,7 +212,7 @@ data:
205
212
try_files $uri $uri/ /index.html;
206
213
}
207
214
location /grafana {
208
- set $upstream_grafana grafana.crane-system .svc.cluster.local;
215
+ set $upstream_grafana grafana.{{ .Release.Namespace }} .svc.cluster.local;
209
216
proxy_connect_timeout 180;
210
217
proxy_send_timeout 180;
211
218
proxy_read_timeout 180;
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.1 .0
18
+ version : 0.2 .0
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : 0.1 .0
24
+ appVersion : 0.2 .0
Original file line number Diff line number Diff line change 22
22
env :
23
23
- name : TZ
24
24
value : Asia/Shanghai
25
+ - name : CRANE_SYSTEM_NAMESPACE
26
+ valueFrom :
27
+ fieldRef :
28
+ fieldPath : metadata.namespace
25
29
command :
26
30
- /controller
27
31
- --policy-config-path=/data/policy.yaml
Original file line number Diff line number Diff line change @@ -6,7 +6,11 @@ metadata:
6
6
namespace : {{ .Release.Namespace }}
7
7
data :
8
8
scheduler-config.yaml : |
9
+ {{- if ge .Capabilities.KubeVersion.Minor "22" }}
9
10
apiVersion: kubescheduler.config.k8s.io/v1beta2
11
+ {{- else }}
12
+ apiVersion: kubescheduler.config.k8s.io/v1beta1
13
+ {{- end }}
10
14
kind: KubeSchedulerConfiguration
11
15
leaderElection:
12
16
leaderElect: false
Original file line number Diff line number Diff line change 22
22
- /scheduler
23
23
- --leader-elect=false
24
24
- --config=/etc/kubernetes/kube-scheduler/scheduler-config.yaml
25
- image : " {{ .Values.scheduler.image.repository }}:{{ .Values.scheduler.image.tag | default .Chart.AppVersion }}"
25
+ { { - if ge .Capabilities.KubeVersion.Minor "22" } }
26
+ image : " {{ .Values.scheduler.image.repository }}:0.0.23"
27
+ { { - else } }
28
+ image : " {{ .Values.scheduler.image.repository }}:0.0.20"
29
+ { { - end } }
26
30
livenessProbe :
27
31
httpGet :
28
32
path : /healthz
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ scheduler:
7
7
name : crane-scheduler
8
8
image :
9
9
repository : docker.io/gocrane/crane-scheduler
10
- tag : 0.0 .23
10
+ tag : 0.1 .23
11
11
replicaCount : 1
12
12
13
13
controller :
You can’t perform that action at this time.
0 commit comments