-
Notifications
You must be signed in to change notification settings - Fork 22
Install socat on hosts #69
Conversation
The lack of `socat` was preventing Helm from running in the GCS Vagrant environment. This patch installs socat on the atomic hosts. It also fetches the kubectl config into the local directory once installation is complete, making it possible to use kubectl on the local machine to access the cluster: `$ kubectl --kubeconfig=kubeconfig get nodes` Signed-off-by: John Strunk <jstrunk@redhat.com>
deploy/deploy-k8s.yml
Outdated
| docker_mount_flags: "shared" | ||
| kube_network_plugin: "flannel" | ||
| kube_version: "v1.12.1" | ||
| kubeconfig_localhost: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable makes kubespray sync a copy of the kubeconfig to {artifacts_dir}/admin.conf. artifacts_dir defaults to '/artifacts, which is .vagrant/provisioners/ansible/inventory/artifactswith the Vagrant deployment. Setting anartifacts_dir` variable here to "./" should have Kubespray copy the config into the current dir.
Or you could just drop this variable all together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting artifacts_dir: './' causes the artifacts to be dumped in the kubespray directory, so lets just remove kubeconfig_localhost.
| command: "rpm-ostree install {{ item }}" | ||
| with_items: | ||
| # socat is needed for Helm | ||
| - socat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a thought. It may be a good idea to get this change in to Kubespray itself. Kubespray supports deploying helm on the kubernetes clusters it creates, so it should do this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubernetes-sigs/kubespray#2879 is already opened for this and you've already found it. So this is okay till that gets fixed.
The lack of
socatwas preventing Helm from running in the GCS Vagrantenvironment. This patch installs socat on the atomic hosts. It also
fetches the kubectl config into the local directory once installation is
complete, making it possible to use kubectl on the local machine to
access the cluster:
$ kubectl --kubeconfig=kubeconfig get nodesRelated to #14