Skip to content

ecoricemon/auto-kube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Kube - Install Git/CI/CD/K8s automatically

Auto Kube is a collection of Ansible playbooks that install Git/CI/CD and Kubernetes On-premise.

Overview

Tested environment

Tested target machine environment likes below.

  • CPU Archtecture: x86_64 or arm64
  • OS: Ubuntu 20.04

Installation steps

  1. Install Ansible

    Ansible is one of IT automation tools. You need to install it first to use this.

    Install Ansible

  2. Set target machine IPs & users

    You must set your target information(IP and user name) to the "ansible/inventories/vbox.yaml". You can put same IP address and user name onto different items, then those items will be installed on the same machine.

  3. Set variables

    You can skip this step, but if you want to set your variables, see "ansible/plabooks/vars.yaml". You can specify tool versions, domain names, etc.

  4. Execute "/ansible/ext.sh" to install the external part

    ext.sh creates and copies a ssh key to communicate with the target machines. And it installs DNS(CoreDNS), Proxy(Envoy), Registry(Harbor), Git(Gitea), and CI(Jenkins) onto the target machines.

  5. Execute "/ansible/init.sh" to setup environment for Kubernetes cluster

    init.sh do the jobs for ssh key and it installs basic Kubernetes tools.

  6. Execute "/ansible/cluster.sh" to install Kubernetes cluster

    cluster.sh installs Kubernetes, CNI(Cilium), LoadBalancer(MetalLB), Dashboard(Kubernetes Dashboard), and CD(Argo CD) onto the target machines.

Tutorial

  1. Tutorial using VirtualBox

About

Ansible playbooks for installation Git/CI/CD/K8s

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors