jdxlabs / k3s-multi-master

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

k3s-multi-master

Set the infrastructure for deploy K3S multi-master

Requirements

  • Docker
  • A ssh key created for the project

Deployment

Setup

For Terraform deployments, you have to copy mygroup folder in configs and rename it with your groupe name, same with env folder with the name of your environment (for exemple dev)

For Ansible deployments, you have to rename all.template.yml to all.yml and add your own values

Create and launch the workstation (docker container)

./workstation/launch.sh

Go into workdir

cd workdir/

Init project

./infra-bootstrap.sh --provider aws --account <group>-<env>

Deploy the layers

./infra-builder-terraform.sh --account <group>-<env> --layer <layer_name> [--plan]

Generate inventory

./infra-make-inventory.sh

Provision the infrastructure

./infra-provisioning.sh

SSH connections

ssh -F ssh.cfg admin@<bastion_public_ip>
ssh -F ./ssh.cfg -o ProxyCommand="ssh -W %h:%p -F ./ssh.cfg <bastion_public_ip>" admin@<host_private_ip>

About

License:GNU General Public License v3.0


Languages

Language:HCL 69.0%Language:Shell 28.0%Language:Dockerfile 3.1%