Code Monkey home page Code Monkey logo

k3s-ansible's Introduction

Build a Kubernetes cluster using k3s via Ansible.

This repository is now part of https://github.com/k3s-io/k3s-ansible official repo in contrib/ansible directory. Anyway I'll write updates in order to make PM in k3s. Be my guest and feel free to contribute.

My blog post about these bunch of playbooks

Here is my post about k3s and Ansible provisionning (in French)

K3s Ansible Playbook

Build a Kubernetes cluster using Ansible with k3s. The goal is easily install a Kubernetes cluster on machines running:

  • Debian 9
  • Ubuntu 16.04
  • CentOS 7

on processor architecture:

  • x64
  • arm64
  • armhf

System requirements:

Deployment environment must have Ansible 2.4.0+ Master and nodes must have passwordless SSH access

Usage

Add the system information gathered above into a file called hosts.ini. For example:

[master]
192.16.35.12

[node]
192.16.35.[10:11]

[kube_cluster:children]
master
node

Start provisioning of the cluster using the following command:

ansible-playbook site.yml

k3s-ansible's People

Contributors

erjanmx avatar itwars avatar s-perez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k3s-ansible's Issues

k3s with HA

@itwars great work. I am using k3s and its super fast.

I am looking around for a HA cluster k3s-ansible playbook. Yours is only with one master node, correct?

Is there a plan to make this to setup an HA cluster?

Thanks.

how to use/install this role?

hi,

i've tried to install this role with ansible-galaxy:
ansible-galaxy install git+https://github.com/itwars/k3s-ansible

and get this error:

[WARNING]: - k3s-ansible was NOT installed successfully: this role does not appear to have a meta/main.yml file.

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

Warning using dashes in group names

Hi Vincent, just a silly note.
It seems ansible 2.8.4 doesn't like the dash in the cluster name (host.ini).

[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
Not replacing invalid character(s) "{'-'}" in group name (k3s-cluster)

Thanks for your great playbook,
Piero

Download task fails on arm, still tries think is x86_64

fatal: [10.0.0.109]: FAILED! => {"msg": "The conditional check '( ansible_facts.userspace_architecture == \"x86_64\" )' failed. The error was: error while evaluating conditional (( ansible_facts.userspace_architecture == \"x86_64\" )):

How do I use this to intall on arm. I am fairly new to ansible so please forgive me if I have missed something obvious. Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.