🌐
Kubernetes
kubernetes.io › blog › 2019 › 03 › 15 › kubernetes-setup-using-ansible-and-vagrant
Kubernetes Setup Using Ansible and Vagrant | Kubernetes
January 3, 2026 - Refer to the Ansible installation guide for platform specific installation. We will be setting up a Kubernetes cluster that will consist of one master and two worker nodes. All the nodes will run Ubuntu Xenial 64-bit OS and Ansible playbooks will be used for provisioning.
Discussions

Installing your Kubernetes homelab cluster in minutes with Ansible
What is the advantage compare to kubespray? More on reddit.com
🌐 r/homelab
13
65
December 12, 2022
Ansible playbook to deploy Rancher k3s kubernetes cluster

This is a nice complete play, and I love that you went with k3s, which IMO is the best distro Ive seen.

Would have liked to see the repo separate the roles from the play … but that's just me nitpicking … Ill be playing with your work :)

More on reddit.com
🌐 r/devops
5
64
March 18, 2019
Ansible playbook for Elastic Stack 7.x including Filebeat on CentOS 7
What do you mean by isn't setup right? are the ansible tasks failing? Also have you checked ansible galaxy to see if there are roles for this already? What is the actual issue you are seeing? More on reddit.com
🌐 r/devops
9
11
May 13, 2019
ansible playbook to install kubernetes for devbox on ubuntu
The playbook uses kubeadm, so it is really simple. It's basically following the steps in the guide , but with one notable difference: it doesn't enable CNI. This playbook is meant to setup your own Ubuntu desktop as environment for testing Kubernetes apps, as an alternative to minikube. In a devbox I think it is better to not have CNI because: You don't need it anyway for single node (and some people even deploy to production with multi-node without using CNI); You don't need to install flannel, weave net, etc. in this setup, so simpler install and less overhead; Actually CNI has one big disadvantage: it doesn't allow using hostPort, which is needed if you need to deploy something like the nginx ingress controller. among other uses. It also prompts you to provide a configuration for kube-dns, since by default it copies Ubuntu's 127.0.0.35 entry in /etc/resolv.conf, which makes kube-dns not work (according to me, at least). I hope this playbook saves someone else a day or two of trying to install kubernetes. More on reddit.com
🌐 r/kubernetes
4
6
May 17, 2017
🌐
Infotechys
infotechys.com › home › install kubernetes using ansible on ubuntu 24.04
Install Kubernetes Using Ansible on Ubuntu 24.04 - Infotechys.com
April 27, 2025 - Learn how to install Kubernetes using Ansible on Ubuntu 24.04. This comprehensive guide covers prerequisites, setup, and configuration, ...
🌐
GitHub
github.com › kairen › kubeadm-ansible
GitHub - kairen/kubeadm-ansible: Build a Kubernetes cluster using kubeadm via Ansible.
Build a Kubernetes cluster using Ansible with kubeadm. The goal is easily install a Kubernetes cluster on machines running: Ubuntu 16.04 · CentOS 7 · Debian 9 · System requirements: Deployment environment must have Ansible 2.4.0+ Master and nodes must have passwordless SSH access ·
Starred by 741 users
Forked by 381 users
Languages   Jinja 99.4% | Shell 0.6% | Jinja 99.4% | Shell 0.6%
🌐
GitHub
github.com › torgeirl › kubernetes-playbooks
GitHub - torgeirl/kubernetes-playbooks: Ansible playbooks for setting up a Kubernetes cluster · GitHub
Ansible playbooks that creates a Kubernetes 1.29 cluster of Openstack instances running Ubuntu 22.04 LTS. Ansible and Python3 installed on the local machine (# yum install ansible).
Starred by 107 users
Forked by 66 users
Languages   HCL
🌐
Linux sysadmins
linuxsysadmins.com › install-kubernetes-cluster-with-ansible
Install Kubernetes Cluster with Ansible on Ubuntu in 5 minutes
March 7, 2022 - TASK [Configure kubectl command auto completion.] **************************************************************** changed: [master] PLAY RECAP ******************************************************************************************************* master : ok=28 changed=15 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 worker1 : ok=17 changed=10 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 worker2 : ok=17 changed=10 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 [ansible@gateway ~]$ In case, if the installation fails at any stage, run the below command on all three nodes and re-run the playbook. $ sudo kubeadm reset --ignore-preflight-errors=all · That’s it, we have successfully completed the installing Kubernetes cluster with ansible.
🌐
GitHub
github.com › nnellans › ansible-k8s
GitHub - nnellans/ansible-k8s: Install a Kubernetes cluster on Ubuntu Server using Ansible · GitHub
Install a Kubernetes cluster on Ubuntu Server using Ansible - nnellans/ansible-k8s
Starred by 15 users
Forked by 4 users
🌐
buildVirtual
buildvirtual.net › home › devops › deploy a kubernetes cluster using ansible
Deploy a Kubernetes Cluster using Ansible - buildVirtual
July 12, 2021 - In this article we will take a look at how to deploy a Kubernetes cluster on Ubuntu 18.04 using Ansible Playbooks.
Find elsewhere
🌐
Spacelift
spacelift.io › blog › ansible-kubernetes
How to Manage Kubernetes with Ansible [Tutorial]
October 10, 2025 - ansible-galaxy collection install ... ansible-galaxy collection install cloud.common sudo apt install python3-pip pip install kubernetes mkdir -pv ~/ansible/playbook ~/ansible/inventory · On the proxy machine, we will install kubernetes ...
🌐
Medium
medium.com › @martin.hodges › installing-kubernetes-from-the-new-k8s-io-repository-using-ansible-8e7319fa97fd
Installing Kubernetes from the new k8s.io repository using Ansible | by Martin Hodges | Medium
March 10, 2024 - Using ansible, the public key can be installed with: - name: Get Kubernetes package key shell: curl -fsSL {{ k8s_url_apt_key }} | gpg --dearmor -o {{ k8s_gpgpath }} args: creates: "{{ k8s_gpgpath }}"
🌐
Digital Varys
digitalvarys.com › home › how to install and configure kubernetes cluster with kubeadm and ansible on ubuntu 16.04
how to install and Configure Kubernetes Cluster with Kubeadm and Ansible
August 12, 2020 - This article is about how to install and Configure Kubernetes Cluster with Kubeadm and Ansible on ubuntu 16.04 with a sample application deployment.
🌐
GitHub
gist.github.com › allanger › 84db2647578316f8e721f7219052788f
Deploy Kubernetes with Ansible · GitHub
Save allanger/84db2647578316f8e721f7219052788f to your computer and use it in GitHub Desktop. ... We will need at least two nodes, Ansible, and a kubectl. That's enough to begin. My ansible role: https://github.com/allanger/kubeadm-ansible-role · I am using Ubuntu 21.04 on all my servers so my Ansible role is written for Debian-based distros.
🌐
TecAdmin
tecadmin.net › setup-kubernetes-cluster-using-ansible
A Guide to Setup a Kubernetes (K8s) Cluster Using Ansible
April 26, 2025 - We assume that all nodes in the Kubernetes cluster are running Ubuntu Linux. Before we start the setup process, make sure you have the following: Ansible: Install Ansible on your control machine.
🌐
TauCeti
tauceti.blog › posts › kubernetes-the-not-so-hard-way-with-ansible-the-basics
Kubernetes the not so hard way with Ansible - The basics - (K8s v1.28) - TauCeti blog
January 1, 2024 - But in general you should be able to use the Ansible roles mentioned here with minor or no modifications for other ISP e.g. Scaleway or Digital Ocean. I’ll only test this with Ubuntu 20.04 and 22.04. But with no/minimal modifications it should work with all systemd based Linux operating systems. I used Kelsey Hightower’s wonderful guide Kubernetes the hard way as starting point. My goal is to install a Kubernetes cluster with Ansible which could be used in production and is maintainable.
🌐
OneUptime
oneuptime.com › home › blog › how to use ansible to install kubernetes packages
How to Use Ansible to Install Kubernetes Packages
February 21, 2026 - --- # playbook: install-k8s-ubuntu.yml # Install Kubernetes packages on Ubuntu - hosts: k8s_nodes become: true vars: k8s_version: "1.29" k8s_package_version: "1.29.2-1.1" tasks: - name: Install prerequisite packages ansible.builtin.apt: name: - apt-transport-https - ca-certificates - curl - gpg state: present update_cache: true - name: Create keyrings directory ansible.builtin.file: path: /etc/apt/keyrings state: directory mode: '0755' - name: Download Kubernetes GPG key ansible.builtin.get_url: url: "https://pkgs.k8s.io/core:/stable:/v{{ k8s_version }}/deb/Release.key" dest: /tmp/kubernetes-r
🌐
Lorenzo Garuti
garutilorenzo.github.io › ansible-role-kubernetes-cluster
Install and configure a high available Kubernetes cluster with Ansible
August 17, 2022 - This ansible role will install and configure a high available Kubernetes cluster. This repo automate the installation process of Kubernetes using kubeadm. This is only a example on how to use Ansible automation to install and configure a Kubernetes cluster…
🌐
Medium
medium.com › @mucahitkumlay › kubernetes-install-with-ansible-7dbd958584e5
Kubernetes install with Ansible. What is the Ansible ? | by Mücahit Kumlay | Medium
November 2, 2021 - vim kubernetes.yml ## Add this- name: kubernetes installation hosts: masters,workers remote_user: root become: yes become_method: sudo become_user: root tasks: #kubernetes add repo, kubectl,kubeadm,kubelet install and kubelet start - name: Copy kubernetes repo copy: src: kubernetes.repo dest: /etc/yum.repos.d/kubernetes.repo - name: Install kubelet kubeadm kubectl shell: | sudo yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes - name: Start and enable service: name: kubelet state: started enabled: yes - name: reboot reboot: reboot_timeout: 2600 ... ansible-playbook -i hosts master.yml && ansible-playbook -i hosts worker.yml && ansible-playbook -i hosts docker.yml && ansible-playbook -i hosts kubernetes.yml
🌐
Medium
medium.com › @venkataramarao.n › kubernetes-setup-using-ansible-script-8dd6607745f6
Kubernetes setup using Ansible script | by Venkata RamaRao Nibhanupudi | Medium
May 2, 2024 - 1. Create an Ansible playbook: Create an Ansible playbook (e.g., kubernetes-cluster.yml) that defines the tasks to set up your Kubernetes cluster. Here's a basic playbook: --- - hosts: master become: yes tasks: - name: Install Docker apt: name: ...
🌐
GitHub
github.com › npflan › k8s-ansible
GitHub - npflan/k8s-ansible: Ansible for deploying Kubernetes with KubeAdm · GitHub
Based on this guide https://www.arubacloud.com/tutorial/how-to-create-kubernetes-cluster-with-kubeadm-and-ansible-ubuntu-20-04.aspx · Basic ansible to deploy a cluster with a single master (prepared for HA) ... For CNI we use kube-router.
Starred by 8 users
Forked by 3 users
🌐
Medium
tjtharrison.medium.com › installing-a-bare-metal-kubernetes-cluster-with-ansible-59d20bf77c4c
Installing a bare-metal Kubernetes cluster with Ansible
September 4, 2023 - In this article, I’m going to be explaining in greater detail the process for installing Kubernetes with a few additional packages for better redundancy and easier accessibility from your network. The Ansible project I used for deploying Kubernetes onto my new machines can be found here: ... As there were only 3 machines to set up, I thought it would be overkill to do any disk cloning tool solutions (eg CloneZilla which I have used for larger projects in the past) so simply decided to download the latest LTS iso of Ubuntu from their download website and burn this onto a USB drive and complete the install manually on the servers.