🌐
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.
🌐
GitHub
github.com › kairen › kubeadm-ansible
GitHub - kairen/kubeadm-ansible: Build a Kubernetes cluster using kubeadm via Ansible.
By default, kubeadm-ansible uses eth1. Your default interface may be eth0. After going through the setup, run the site.yaml playbook: $ ansible-playbook site.yaml ... ==> master1: TASK [addon : Create Kubernetes dashboard deployment] ************************** ==> master1: changed: [192.16.35.12 -> 192.16.35.12] ==> master1: ==> master1: PLAY RECAP ********************************************************************* ==> master1: 192.16.35.10 : ok=18 changed=14 unreachable=0 failed=0 ==> master1: 192.16.35.11 : ok=18 changed=14 unreachable=0 failed=0 ==> master1: 192.16.35.12 : ok=34 changed=29 unreachable=0 failed=0
Starred by 741 users
Forked by 381 users
Languages   Jinja 99.4% | Shell 0.6% | Jinja 99.4% | Shell 0.6%
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
k3s install on raspberry pi cluster using ansible -k3s-node service error
Did you try journalctl -xe? What did it say? Did you try systemctl status k3s-node.service? What did it say? More on reddit.com
🌐 r/kubernetes
3
1
September 23, 2020
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 or helm charts?
After much reading, failure and ... and Kubernetes. I've also been using Longhorn for persistent storage. I'm now looking into how I can deploy my apps and how best to manage them. It seems that helm charts are all the rage these days. Also, are there charts for Sonarr, Radarr, calibre etc.? Another option I have come across is to use Ansible and write ... More on reddit.com
🌐 r/HomeServer
4
13
February 11, 2019
🌐
Spacelift
spacelift.io › blog › ansible-kubernetes
How to Manage Kubernetes with Ansible [Tutorial]
October 10, 2025 - However, the same should work for any other Linux distribution. On your Ansible Control node, run the following to install Kubernetes Collection (this includes the module and plugins):
🌐
buildVirtual
buildvirtual.net › home › devops › deploy a kubernetes cluster using ansible
Deploy a Kubernetes Cluster using Ansible - buildVirtual
July 12, 2021 - How to Deploy a Kubernetes Cluster using Ansible Playbooks. Learn how to install Kubernetes, initialise a new Kubernetes cluster and configure worker nodes
🌐
Ansible
docs.ansible.com › projects › ansible › latest › collections › kubernetes › core › docsite › kubernetes_scenarios › k8s_intro.html
Introduction to Ansible for Kubernetes — Ansible Community Documentation
Kubernetes Python client installed on the host that will execute the modules. The Kubernetes modules are part of the Ansible Kubernetes collection. ... By default the Kubernetes Rest Client will look for ~/.kube/config, and if found, connect using the active context. You can override the location of the file using the kubeconfig parameter, and the context, using the context parameter. Basic authentication is also supported using the username ...
🌐
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 - You should see this in /etc/apt/sources.list.d/ as kubernetes.list. Once the repository has been added to apt and it appears as an apt source, you can now install the Kubernetes packages. You can do this with the following Ansible stanza:
🌐
Linux sysadmins
linuxsysadmins.com › install-kubernetes-cluster-with-ansible
Install Kubernetes Cluster with Ansible on Ubuntu in 5 minutes
March 7, 2022 - That’s it, we are good with setting up the Kubernetes cluster. If you are interested to put all the plays in a single playbook you can do the same similar to below. This guide was updated on 11th December 2020 with Containerd by replacing Docker. To install and configure with Containerd instead of Docker. --- - hosts: "masters, workers" remote_user: ansible become: yes become_method: sudo become_user: root gather_facts: yes connection: ssh tasks: - name: Make the Swap inactive command: swapoff -a - name: Remove Swap entry from /etc/fstab.
🌐
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.
Find elsewhere
🌐
GitHub
gist.github.com › allanger › 84db2647578316f8e721f7219052788f
Deploy Kubernetes with Ansible · GitHub
# -------------------------------------- # -- Inventory file example # -- This is gonna be two-nodes cluster # -------------------------------------- --- k8s_master: hosts: ${MASTER_NODE_ADDRESS} vars: node_type: "master" ansible_user: ${REMOTE_USER_NAME} key_path: /PATH/TO/YOUR/SSH/KEY, k8s_node: hosts: ${WORKER_NODE_ADDRES} vars: node_type: "worker" ansible_user: ${REMOTE_USER)NAME} key_path: /PATH/TO/YOUR/SSH/KEY, Now run · $ ansible-playbook ./playbook.yaml -i hosts.yaml --tags=init · And see how Kubernetes is being installed on your nodes.
🌐
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 › 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
🌐
Reddit
reddit.com › r/homelab › installing your kubernetes homelab cluster in minutes with ansible
r/homelab on Reddit: Installing your Kubernetes homelab cluster in minutes with Ansible
December 12, 2022 -

For anyone looking to get Kubernetes going in their homelab, I created a guide at Installing your Kubernetes homelab cluster in minutes with Ansible.

I tried to take a different approach them other guides out there by focusing more on using config as code practices and automating much of the install using ansible and terraform.

The previous parts of the series focus on installing vmware vsphere 8 and using terraform to create all the virtual machines that kubernetes gets installed on.

I have been using this process over the last year or two for my own homelab cluster so figured I'd clean up my notes, create a blog, and see if anyone else finds it helpful.

Let me know what you think so I can try to make the content better.

🌐
Ansible
docs.ansible.com › ansible › latest › collections › kubernetes › core › k8s_module.html
kubernetes.core.k8s module – Manage Kubernetes (K8s) objects — Ansible Community Documentation
This module is part of the ... To check whether it is installed, run ansible-galaxy collection list. To install it, use: ansible-galaxy collection install kubernetes.core....
🌐
OneUptime
oneuptime.com › home › blog › how to use ansible to install kubernetes packages
How to Use Ansible to Install Kubernetes Packages
February 21, 2026 - Step-by-step guide to installing kubeadm, kubelet, and kubectl on Ubuntu and RHEL systems using Ansible, including prerequisite configuration and cluster bootstrapping.
🌐
Kubeclusters
kubeclusters.com › docs › How-to-Deploy-a-Single-Master-Kubernetes-Cluster-with-Ansible
How to Deploy a single master Kubernetes cluster with Ansible | Kube Clusters Documentation
$ apt-get install git python-pip -y $ pip install pip --upgrade $ pip install --no-cache-dir ansible ... 5.Modify the Ansible inventory file/etc/ansible/hosts to fit your environment. Usually you need to replace server’s IP addresses and its interface name.
🌐
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.
🌐
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, ...
🌐
HOSTAFRICA
hostafrica.com › home › automate kubernetes cluster deployment with ansible on centos stream 8
Automate Kubernetes with Ansible - HOSTAFRICA
January 21, 2026 - It’s automation software that allows users to provision hosts, configure environments, install packages, deploy applications, and perform many other administrative and management tasks. In this article, we use Ansible playbooks to set up a Kubernetes cluster on CentOS Stream 8, with one master ...
🌐
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.
🌐
GitHub
github.com › geerlingguy › ansible-role-kubernetes
GitHub - geerlingguy/ansible-role-kubernetes: Ansible Role - Kubernetes · GitHub
An Ansible Role that installs Kubernetes on Linux.
Starred by 621 users
Forked by 284 users
Languages   Jinja