Skip to content

mathiasunneland/k8s-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

k8s-launcher

This is a project that utilizes Terraform and Ansible to automate a customized deployment of a k8s-cluster on a Proxmox host


Installation

# Clone the repository
git clone https://github.com/mathiasunneland/k8s-launcher.git
cd k8s-launcher

Prerequisites

To use this project you need these prerequisites installed locally:

And a running Proxmox host on the same network:


Before Usage

The code needs these changes for the project to work:

  1. Assign terraform values to terraformExample.tfvars and rename to terraform.tfvars
  2. Assign ansible values to secretsExample.yaml and rename to secrets.yaml

The Proxmox host needs these changes for the project to work:

  1. Your public key needs to be added to authorized_keys
# Run this on the Proxmox host shell
nano ~/.ssh/authorized_keys
# Add your own public key
ssh-ed25519 ABCDEFGHIJKLMNOPQRSTUVWXYZ [email protected]
  1. The local storage on Proxmox needs to support snippets
# Run this on the Proxmox host shell
nano /etc/pve/storage.cfg 
 # Add "snippets" on content line of local storage
dir: local
        path /var/lib/vz
        content iso,vztmpl,backup,snippets

Usage

When everything is setup for deployment:

# Run the deployment python script
python3 deploy.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published