File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1593,6 +1593,10 @@ function start-kube-apiserver {
1593
1593
params+=" --etcd-servers-overrides=${ETCD_SERVERS_OVERRIDES:- } "
1594
1594
fi
1595
1595
params+=" --secure-port=443"
1596
+ if [[ " ${ENABLE_APISERVER_INSECURE_PORT:- true} " != " true" ]]; then
1597
+ # Default is :8080
1598
+ params+=" --insecure-port=0"
1599
+ fi
1596
1600
params+=" --tls-cert-file=${APISERVER_SERVER_CERT_PATH} "
1597
1601
params+=" --tls-private-key-file=${APISERVER_SERVER_KEY_PATH} "
1598
1602
params+=" --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname"
@@ -1878,7 +1882,6 @@ function start-kube-apiserver {
1878
1882
sed -i -e " s@{{pillar\['allow_privileged'\]}}@true@g" " ${src_file} "
1879
1883
sed -i -e " s@{{liveness_probe_initial_delay}}@${KUBE_APISERVER_LIVENESS_PROBE_INITIAL_DELAY_SEC:- 15} @g" " ${src_file} "
1880
1884
sed -i -e " s@{{secure_port}}@443@g" " ${src_file} "
1881
- sed -i -e " s@{{secure_port}}@8080@g" " ${src_file} "
1882
1885
sed -i -e " s@{{additional_cloud_config_mount}}@@g" " ${src_file} "
1883
1886
sed -i -e " s@{{additional_cloud_config_volume}}@@g" " ${src_file} "
1884
1887
sed -i -e " s@{{webhook_authn_config_mount}}@${webhook_authn_config_mount} @g" " ${src_file} "
Original file line number Diff line number Diff line change 32
32
{{container_env}}
33
33
"livenessProbe": {
34
34
"httpGet": {
35
+ "scheme": "HTTPS",
35
36
"host": "127.0.0.1",
36
- "port": 8080 ,
37
+ "port": {{secure_port}} ,
37
38
"path": "/healthz?exclude=etcd"
38
39
},
39
40
"initialDelaySeconds": {{liveness_probe_initial_delay}},
40
41
"timeoutSeconds": 15
41
42
},
42
43
"readinessProbe": {
43
44
"httpGet": {
45
+ "scheme": "HTTPS",
44
46
"host": "127.0.0.1",
45
- "port": 8080 ,
47
+ "port": {{secure_port}} ,
46
48
"path": "/healthz"
47
49
},
48
50
"periodSeconds": 1,
You can’t perform that action at this time.
0 commit comments