Skip to content

Commit

Permalink
Make kops-controller use the local api server
Browse files Browse the repository at this point in the history
If the cluster is under pressure, especially the new api server nodes, kops-controller go into crash loops because kubernetes.default doesn't respond.
By using the local api server, it has a higher likelyhood of being able to connect.
  • Loading branch information
Ole Markus With committed Apr 23, 2021
1 parent df2f66e commit 88585fb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ spec:
name: kops-controller-config
- mountPath: /etc/kubernetes/kops-controller/pki/
name: kops-controller-pki
env:
- name: KUBERNETES_SERVICE_HOST
value: "127.0.0.1"
dnsPolicy: Default
hostNetwork: true
nodeSelector:
Expand Down

0 comments on commit 88585fb

Please sign in to comment.