We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 686a65d commit 92b04b3Copy full SHA for 92b04b3
2 files changed
k8s/app-chart/templates/runner_deployment.yaml
@@ -17,6 +17,15 @@ spec:
17
labels:
18
app: "runner"
19
spec:
20
+ affinity:
21
+ podAntiAffinity:
22
+ requiredDuringSchedulingIgnoredDuringExecution:
23
+ - labelSelector:
24
+ matchExpressions:
25
+ - key: app
26
+ operator: In
27
+ values: ["runner"]
28
+ topologyKey: "kubernetes.io/hostname"
29
volumes:
30
- name: users-code-path
31
hostPath:
@@ -40,9 +49,7 @@ spec:
40
49
initialDelaySeconds: 5
41
50
periodSeconds: 5
42
51
successThreshold: 1
43
- command:
44
- - bin/runner
45
- - start
52
+ command: ["bin/runner","start"]
46
53
ports:
47
54
- containerPort: 4001
48
55
volumeMounts:
k8s/app-chart/values.yaml
@@ -26,7 +26,7 @@ codebattle:
CODEBATTLE_PORT: 4000
runner:
- replicaCount: 1
+ replicaCount: 2
# Deployment or DaemonSet
type: Deployment
32
image:
0 commit comments