Skip to content

Commit a475c21

Browse files
committed
Configure multiple schedulers: switch to the secure ports
Starting v1.23 the kube-scheduler no longer provides insecure serving.
1 parent 624ebf1 commit a475c21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/en/examples/admin/sched/my-scheduler.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ roleRef:
3030
name: system:volume-scheduler
3131
apiGroup: rbac.authorization.k8s.io
3232
---
33-
3433
apiVersion: v1
3534
kind: ConfigMap
3635
metadata:
@@ -44,7 +43,6 @@ data:
4443
- schedulerName: my-scheduler
4544
leaderElection:
4645
leaderElect: false
47-
4846
---
4947
apiVersion: apps/v1
5048
kind: Deployment
@@ -76,13 +74,15 @@ spec:
7674
livenessProbe:
7775
httpGet:
7876
path: /healthz
79-
port: 10251
77+
port: 10259
78+
scheme: HTTPS
8079
initialDelaySeconds: 15
8180
name: kube-second-scheduler
8281
readinessProbe:
8382
httpGet:
8483
path: /healthz
85-
port: 10251
84+
port: 10259
85+
scheme: HTTPS
8686
resources:
8787
requests:
8888
cpu: '0.1'

0 commit comments

Comments
 (0)