Giter Site home page Giter Site logo

techtalk-k0smotron-pt2-clusterapi's Introduction

Tech Talk - k0smotron - Part 2 - ClusterAPI

This repository contains all necessary code snippets and a guide to replicate the demo shown in the Tech Talk Expanding Horizons: k0smotron's Integration with Cluster API and Beyond.

Versions

The following version will be used in this repository:

  • k0s (v1.27.4)
  • k0smotron (v0.5.1)
  • AWS Cloud Controller Manager
  • AWS EBS CSI Driver
  • AWS EBS StorageClass
  • ClusterAPI (v1.5.0)

Preperation

Like in the Tech Talk Demo we will use AWS to create the k0s Management Cluster. For preparation, get and apply your AWS credentials in the terminal, so we can use Terraform to create necessary resources.

NOTE: The k0s Management Cluster can run in any infrastructure / cloud (private/public). In this demo we will use AWS.

Management Cluster Installation

Please check the terraform.tfvars and adjust the AMI in main.tf as needed.

terraform init

terraform apply -auto-approve

terraform output -raw k0s_cluster | k0sctl apply --no-wait --debug --config -

terraform output -raw k0s_cluster | k0sctl kubeconfig --config -

et voilà, a k0s cluster with 1 controller, 1 worker, integration into AWS and k0smotron.

NOTE: If you want to create a high available cluster, please set the controller_count to 3. This will automatically create a ELB.

AWS - Create a k0s Cluster with EC2 instances as worker nodes

Please follow this guide to install the ClusterAPI Controller and the AWS Infrastructure Controller into the management cluster.

Happy testing!

Hetzner - Create a k0s Cluster with Hetzner Cloud Machines as worker nodes

Please follow this guide to install the ClusterAPI Controller and the Hetzner Infrastructure Controller into the management cluster.

Happy testing!

Notes

Configuration

This is a simple demo of k0s on AWS, k0smotron and k0s control planes in the management cluster. If you need more advanced configurations please check our documentation of k0s and k0smotron:

Day 2 Operations

We are planning a third part which will cover Day 2 Cluster Operations. Please have a look for the third part of the k0smotron series at https://www.mirantis.com/labs/ and the third repository that will be available shortly after the Tech Talk. Otherwise you can find a detailed guide on how this works here.

techtalk-k0smotron-pt2-clusterapi's People

Contributors

jlnhnng 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.