/salt-kube-lite

Using Saltstack Quickstart a Production-Ready Kubernetes Cluster

Primary LanguageSaltStack

SALT-KUBE-LITE Project

the lite version for cleanup salt-kube project and support new kubernetes, full binaries packages provision kubernetes cluster using saltstack.

1. Package version

  • Ubuntu 20.04
  • Saltstack 3003
  • Etcd v3.4.10
  • Containerd 1.4.4
  • Cilium v1.9.5
  • Kubernetes v1.18.6
  • CoreDNS v1.7.0

2. How to quickstart on local

  • install git and vagrant.
  • clone repo and download binaries package
  • build for env

Download binaries package

setting version on scripts/download.sh if you want, and update Makefile for version

make download

Startup local env using vagrant

if got some error, re-run make init

make init
make init

Login local env to test

vagrant ssh salt
sudo su -
kubectl get no

Other notes

  1. init cluster manual by command
vagrant up
vagrant ssh salt
# testing salt minions
salt \* test.ping
# sync all modules for salt
salt-run saltutil.sync_all saltenv=local
# setting roles for def whith salt/<env>/roles.yaml
salt-run state.orchestrate orch.setting_roles saltenv=local
# run orchstate for kubernetes install
salt-run state.orchestrate orch.kubernetes saltenv=local

pls notes setting local vm networks interfaces into Pillar files pillar/local/common/init.sls

  1. if you want add requirements packages

add it into this files:

  • pillar/local/common/packages_ubuntu.sls

3. TODO

  • Upgrade Salt to 3003
  • Upgrade kubernetes to v1.18.6
  • Upgrade Ubuntu to 20.04
  • Upgrade Cilium to 1.9.5
  • add terraform to provision cloud resources
  • ...

4. Reference

Xiangxu's github stats