Skip to content

Commit

Permalink
fix: kube-apiserver on master node can't be access by pod on worker node
Browse files Browse the repository at this point in the history
Signed-off-by: wangdepeng <[email protected]>
  • Loading branch information
village-way committed May 14, 2024
1 parent c965dee commit 6229481
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ spec:
- name: kube-apiserver
image: {{ .ImageRepository }}/kube-apiserver:{{ .Version }}
imagePullPolicy: IfNotPresent
env:
- name: PODIP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
command:
- kube-apiserver
- --allow-privileged=true
Expand Down Expand Up @@ -82,6 +88,7 @@ spec:
- --max-requests-inflight=1500
- --max-mutating-requests-inflight=500
- --v=4
- --advertise-address=$(PODIP)
livenessProbe:
failureThreshold: 8
httpGet:
Expand Down

0 comments on commit 6229481

Please sign in to comment.