Comments on: Installing Kubernetes with Kubespray on AWS https://www.altoros.com/blog/installing-kubernetes-with-kubespray-on-aws/ Insight Thu, 03 Dec 2020 21:35:23 +0000 hourly 1 https://wordpress.org/?v=6.0.6 By: Barry Williams https://www.altoros.com/blog/installing-kubernetes-with-kubespray-on-aws/#comment-1213 Thu, 03 Dec 2020 21:35:23 +0000 https://www.altoros.com/blog/?p=51869#comment-1213 Hi Steven,
What version of Ansible are you using?

I also notice that there is some output related to Nvidia. Are you using additional playbooks or modified configuration?

]]>
By: mokpolar https://www.altoros.com/blog/installing-kubernetes-with-kubespray-on-aws/#comment-1212 Thu, 03 Dec 2020 08:10:29 +0000 https://www.altoros.com/blog/?p=51869#comment-1212 Hi
Thank you for the good post.
I’m copying this post exactly the same, and I’m looking at this error.

[WARNING]: Unhandled error in Python interpreter discovery for host bastion: Failed to connect to the host via ssh:
kex_exchange_identification: Connection closed by remote host

TASK [kubespray-defaults : Gather ansible_default_ipv4 from ip-internal] **************************
fatal: [bastion]: UNREACHABLE! => {“changed”: false, “msg”: “Data could not be sent to remote host “IP”. Make sure this host can be reached over ssh: kex_exchange_identification: Connection closed by remote hostrn”, “unreachable”: true}

PLAY RECAP ***********************************************************************************************************
bastion : ok=6 changed=0 unreachable=1 failed=0 skipped=13 rescued=0 ignored=0

and I can’t find ssh-bastion.conf

How can I solve this problem?

]]>
By: Arseniy Petrovich https://www.altoros.com/blog/installing-kubernetes-with-kubespray-on-aws/#comment-1083 Tue, 21 Apr 2020 09:47:05 +0000 https://www.altoros.com/blog/?p=51869#comment-1083 Hi, Steven. Have you used the Master branch or one of the releases? Master branch is not really “stable” from time to time.

]]>
By: Steven Faseyiku https://www.altoros.com/blog/installing-kubernetes-with-kubespray-on-aws/#comment-1080 Mon, 20 Apr 2020 21:33:35 +0000 https://www.altoros.com/blog/?p=51869#comment-1080 Hi Carlos. I have struggled a bit with this before stumbling on your post. Interesting that you did this only a month back. However, I continue to run into some errors down the line as below.
fatal: [ip-10-11-31-9.eu-west-2.compute.internal]: FAILED! => {“changed”: false, “msg”: “AnsibleError: template error while templating string: expected token ‘=’, got ‘end of statement block’. String: KUBE_LOGTOSTDERR=”–logtostderr=true”nKUBE_LOG_LEVEL=”–v={{ kube_log_level }}”nKUBELET_ADDRESS=”–node-ip={{ kubelet_address }}”n{% if kube_override_hostname|default(”) %}nKUBELET_HOSTNAME=”–hostname-override={{ kube_override_hostname }}”n{% endif %}nn{# Base kubelet args #}n{% set kubelet_args_base -%}n{# start kubeadm specific settings #}n–bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf \n–config={{ kube_config_dir }}/kubelet-config.yaml \n–kubeconfig={{ kube_config_dir }}/kubelet.conf \n{# end kubeadm specific settings #}n–pod-infra-container-image={{ pod_infra_image_repo }}:{{ pod_infra_image_tag }} \n{% if container_manager != ‘docker’ %}n–container-runtime=remote \n–container-runtime-endpoint={{ cri_socket }} \n{% endif %}n{% if dynamic_kubelet_configuration %}n–dynamic-config-dir={{ dynamic_kubelet_configuration_dir }} \n{% endif %}n–runtime-cgroups={{ kubelet_runtime_cgroups }} \n{% endset %}nn{# Kubelet node taints for gpu #}n{% if nvidia_gpu_nodes is defined and nvidia_accelerator_enabled|bool %}n{% if inventory_hostname in nvidia_gpu_nodes and node_taints is defined %}n{% set dummy = node_taints.append(‘nvidia.com/gpu=:NoSchedule’) %}n{% elif inventory_hostname in nvidia_gpu_nodes and node_taints is not defined %}n{% set node_taints = [] %}n{% set dummy = node_taints.append(‘nvidia.com/gpu=:NoSchedule’) %}n{% endif %}n{% endif %}nnKUBELET_ARGS=”{{ kubelet_args_base }} {% if node_taints|default([]) %}–register-with-taints={{ node_taints | join(‘,’) }} {% endif %} {% if kube_feature_gates %} –feature-gates={{ kube_feature_gates|join(‘,’) }} {% endif %} {% if kubelet_custom_flags is string %} {{kubelet_custom_flags}} {% else %}{% for flag in kubelet_custom_flags %} {{flag}} {% endfor %}{% endif %}{% if inventory_hostname in groups[‘kube-node’] %}{% if kubelet_node_custom_flags is string %} {{kubelet_node_custom_flags}} {% else %}{% for flag in kubelet_node_custom_flags %} {{flag}} {% endfor %}{% endif %}{% endif %}”n{% if kubelet_flexvolumes_plugins_dir is defined %}nKUBELET_VOLUME_PLUGIN=”–volume-plugin-dir={{ kubelet_flexvolumes_plugins_dir }}”n{% endif %}n{% if kube_network_plugin is defined and kube_network_plugin in [“calico”, “canal”, “cni”, “flannel”, “weave”, “contiv”, “cilium”, “kube-ovn”, “kube-router”, “macvlan”] %}nKUBELET_NETWORK_PLUGIN=”–network-plugin=cni –cni-conf-dir=/etc/cni/net.d –cni-bin-dir=/opt/cni/bin”n{% elif kube_network_plugin is defined and kube_network_plugin == “cloud” %}nKUBELET_NETWORK_PLUGIN=”–hairpin-mode=promiscuous-bridge –network-plugin=kubenet”n{% endif %}n{% if cloud_provider is defined and cloud_provider in [“openstack”, “azure”, “vsphere”, “aws”] %}nKUBELET_CLOUDPROVIDER=”–cloud-provider={{ cloud_provider }} –cloud-config={{ kube_config_dir }}/cloud_config”n{% elif cloud_provider is defined and cloud_provider in [“external”] %}nKUBELET_CLOUDPROVIDER=”–cloud-provider=external –cloud-config={{ kube_config_dir }}/cloud_config”n{% else %}nKUBELET_CLOUDPROVIDER=””n{% endif %}nnPATH={{ bin_dir }}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binn”}

Did you make any changes to any of the YML files or any sort of changes to any file.
Thanks for your help.

]]>