Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
fix flanneld on controller nodes
Browse files Browse the repository at this point in the history
It was somehow trying to contact k8s apiserver via service ip. That's a chicken-and-egg problem!
  • Loading branch information
mumoshu committed Sep 28, 2018
1 parent 0347789 commit a9b1ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/controlplane/config/templates/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,7 @@ write_files:
# for allocating subnets.
- name: flannel
image: {{ .Kubernetes.Networking.SelfHosting.FlannelImage.RepoWithTag }}
command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr" ]
command: [ "/opt/bin/flanneld", "--ip-masq", "--kube-subnet-mgr", "--kube-api-url", "http://127.0.0.1:8080" ]
securityContext:
privileged: true
env:
Expand Down

0 comments on commit a9b1ba9

Please sign in to comment.