Coder Social home page Coder Social logo

ansible-kvm-k0s's Introduction

ansible-kvm-k0s

The goal of this project is to use open software and have Ansible create a lab that is more like a production Kube cluster as possible without using MiniKube.

I am using KVM to create VM's and cloudinit to setup small VM's to then install K0S. Also after that is complete to install Ansible AWX in kube.

There is a controller node and worker nodes in this setup. I don't have a lot of server resources so I have tweaked the AWX installer. I suggest you install Lens for Kube on the system you are using to run Ansible with this code.

https://k0sproject.io/ https://k8slens.dev/

https://github.com/ansible/awx https://github.com/ansible/awx/blob/devel/INSTALL.md#kubernetes https://www.ansible.com/

All the pods for AWX/Kube All the worker nodes Persistent Volume for AWX Persistenet Volume Claim for AWX Services in Kube

You will need to setup a NFS server for postgresql. You can see the examples in the template dir (exports and exports-permissions.txt).

You will need to create a vault file (vault.yml) have in the file 'ansible_become_password: "yourpassowrd"'. You will need to rename 'name_vars_example.yml' to 'name_vars.yml' and update the data for 'full_name:', 'passwd:' and 'pub_key:'.

note: There are some debug statements that don't really need to be display. I like to see scrolling data.

I used this link as a semi guide https://www.linuxsysadmins.com/install-ansible-awx-on-kubernetes/ and https://blog.exxactcorp.com/deploying-dynamic-nfs-provisioning-in-kubernetes/

I did this project to help others as I have been helped from people on the internet. I just asked if you use/share this code you give credit as due. Also I'm open to improvements of the code I posted.

ansible-kvm-k0s's People

Watchers

James Cloos avatar Jim McCann avatar

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.