forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm (tiller) requires socat to run. CoreOS doesnt supply socat with their OS (See coreos/bugs#1114) hence we have to add it to the system during Kubernetes Deployment. While there is a solution for this issue when running Kubernetes on CoreOS with Rkt (Kubelet Wrapper https://coreos.com/kubernetes/docs/latest/kubelet-wrapper.html) there is no when running Kubernetes on CoreOS with Docker. For this reason we compiled a static socat binary we copy to /opt/bin or another directory and add the PATH to the Kubelet Docker Container to run Helm (tiller) on the Kubernetes Cluster.
- Loading branch information
Showing
5 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
socat_mode: 0700 | ||
socat_owner: kube | ||
socat_dest: {{ bin_dir }} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
--- | ||
- debug: | ||
msg: "No helm charts" | ||
- name: "Helm | Copy socat binary to {{ kube_binaries_dir }}" | ||
copy: | ||
src: "{{ role_path }}/files/socat" | ||
dest: "{{ socat_dest }}" | ||
owner: {{ socat_owner }} | ||
mode: {{ socat_mode }} | ||
when: ansible_os_family == "Container Linux by CoreOS" and | ||
kubelet_deployment_type == "docker" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters