posts/k3s-etcd-ansible/ #199
Replies: 13 comments 11 replies
-
Hi Tim, big thanks for the videos and documentation! I have a number of RADXA 5B SBC's that I want to run a docker cluster on. I'm sure I'll need some help on my way! |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, what's the best way to add more master nodes to the cluster? I started with three but want to add two more. Thanks for the video. |
Beta Was this translation helpful? Give feedback.
-
Hi Tim, I tried to deploy your adapted 3ks cluster on small lab on a laptop 32Gb. 2Gb RAM per Vm and 60GB HDD deployed with multipass from canonical. The issue I am facing is this one after deploying 3 masters ansible playbook get stuck at nodes and not moving over...I tried it multiple times with no success. And its not a limitation of resources I think since if I try to deploy 5 masters it works fine... Will get back with more findings... Looks like it can not pull vip images...still investigating will et back to you with findings. |
Beta Was this translation helpful? Give feedback.
-
OK I managed to fix it by pooling/pushing images to doker hub then changed image names and yaml url in ansible tasks. |
Beta Was this translation helpful? Give feedback.
-
idk why, but: apiserver_endpoint is virtual ip-address which will be configured on each masterapiserver_endpoint: "192.168.xxx.xxx" i have it only in one master instead of each master. |
Beta Was this translation helpful? Give feedback.
-
TASK [k3s_server : Init cluster inside the transient k3s-init service] ********************************************************************************************* Geting this error every type on clean machines... :( |
Beta Was this translation helpful? Give feedback.
-
Same problem every time :( So frustrated :( fatal: [172.16.30.20]: FAILED! => {"msg": "An unhandled exception occurred while templating '{% if groups[group_name_master | default('master')] | length > 1 %}\n {% if ansible_hostname == hostvars[groups[group_name_master | default('master')][0]]['ansible_hostname'] %}\n --cluster-init\n {% else %}\n --server https://{{ hostvars[groups[group_name_master | default('master')][0]].k3s_node_ip | split(",") | first | ansible.utils.ipwrap }}:6443\n {% endif %}\n --token {{ k3s_token }}\n{% endif %} {{ extra_server_args | default('') }}'. Error was a <class 'jinja2.exceptions.TemplateRuntimeError'>, original message: No filter named 'split' found."} Even when i add another Master node it will get stuck... |
Beta Was this translation helpful? Give feedback.
-
OK so multiple problems... I dont know what is wrong at my first coment. But second coment had Python3 something Netadd - apt install --no-install-recommends python-netaddr -- This fixed everithing... Newer mentioned in tutorial of previsions ansible or this... And Updated ansible to latest version... |
Beta Was this translation helpful? Give feedback.
-
I was able to following the process and things seemed to work very well. I'm discovering that I don't seem to get consistent DNS resolution between pods in the same namespace. Has anyone else seen this or maybe have a resolution? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the guide ! getting the below error? fatal: [k3smaster.home]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'k3s_version' is undefined. 'k3s_version' is undefined\n\nThe error appears to be in '/root/playbooks/k3s-ansible/roles/download/tasks/main.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Download k3s binary x64\n ^ here\n"} |
Beta Was this translation helpful? Give feedback.
-
How to use this role to install a standalone k3s ? Just install server? |
Beta Was this translation helpful? Give feedback.
-
what am I doing wrong?? |
Beta Was this translation helpful? Give feedback.
-
Thanks Tim for your contribution. FAILED! => {"argument_errors": ["missing required arguments: k3s_version"], "argument_spec_data": {"k3s_version": {"description": "The desired version of K3S", "required": true}}, "changed": false, "msg": "Validation of arguments failed:\nmissing required arguments: k3s_version", "validate_args_context": {"argument_spec_name": "main", "name": "download", "path" |
Beta Was this translation helpful? Give feedback.
-
posts/k3s-etcd-ansible/
Documentation for Techno Tim YouTube videos for all your copy pasta needs!
https://technotim.live/posts/k3s-etcd-ansible/
Beta Was this translation helpful? Give feedback.
All reactions