File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- include make-compose.mk
1+ ROOT_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
2+ include $(ROOT_DIR ) make-compose.mk
23
34BUILDX_OUTPUT ?= --load
45
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ kb-get-services:
1818helm-init : helm-install-app
1919
2020helm-upgrade-app :
21- helm upgrade --install app $(PWD ) /app-chart -f $(PWD ) /envs/common/values.yaml -f $(PWD ) /envs/simple/values.yaml
21+ helm upgrade --install app --reset-values $(PWD ) /app-chart -f $(PWD ) /envs/common/values.yaml -f $(PWD ) /envs/simple/values.yaml
2222
2323helm-rollback-app :
2424 helm rollback app 108
Original file line number Diff line number Diff line change @@ -19,13 +19,25 @@ spec:
1919 spec :
2020 affinity :
2121 podAntiAffinity :
22+ {{- if .Values.runner.antiAffinity.required }}
2223 requiredDuringSchedulingIgnoredDuringExecution :
2324 - labelSelector :
2425 matchExpressions :
2526 - key : app
2627 operator : In
2728 values : ["runner"]
2829 topologyKey : " kubernetes.io/hostname"
30+ {{- else }}
31+ preferredDuringSchedulingIgnoredDuringExecution :
32+ - weight : 100
33+ podAffinityTerm :
34+ labelSelector :
35+ matchExpressions :
36+ - key : app
37+ operator : In
38+ values : ["runner"]
39+ topologyKey : " kubernetes.io/hostname"
40+ {{- end }}
2941 volumes :
3042 - name : users-code-path
3143 hostPath :
Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ spec:
3939 matchLabels :
4040 app : " runner-{{ .name }}"
4141 {{- end }}
42- {{- if or $.Values.zigRunners.avoidCodebattleNode $.Values.zigRunners.affinity }}
42+ {{- if or $.Values.zigRunners.affinity (and $.Values.zigRunners. avoidCodebattleNode (ne $.Values.zigRunners.strategy "simple")) }}
4343 affinity :
4444 {{- with $.Values.zigRunners.affinity }}
4545 {{- toYaml . | nindent 8 }}
4646 {{- end }}
47- {{- if $.Values.zigRunners.avoidCodebattleNode }}
47+ {{- if and $.Values.zigRunners.avoidCodebattleNode (ne $.Values.zigRunners.strategy "simple") }}
4848 podAntiAffinity :
4949 requiredDuringSchedulingIgnoredDuringExecution :
5050 - labelSelector :
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ codebattle:
5252runner :
5353 enabled : true
5454 replicaCount : 1
55+ antiAffinity :
56+ required : true
5557 # Deployment or DaemonSet
5658 type : Deployment
5759 image :
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ codebattle:
1818runner :
1919 enabled : true
2020 replicaCount : 1
21+ antiAffinity :
22+ required : false
2123
2224zigRunners :
2325 strategy : simple
You can’t perform that action at this time.
0 commit comments