Skip to content

Commit

Permalink
Merge pull request #555 from village-way/main-podip
Browse files Browse the repository at this point in the history
fix: kube-apiserver on master node can't be access by pod on worker node
  • Loading branch information
duanmengkk committed May 15, 2024
2 parents 99245b7 + 6229481 commit 1c6a053
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 1c6a053

Please sign in to comment.