Solufit Cloud Infrastructure

infrastructure information

View the Project on GitHub solufit/infrastructure

Kubernetes

This page contains how to use Kubernetes in this project.

Index

Install FluxCD and GitRepository

We use FluxCD and GitRepository to manage Kubernetes manifests.

This git repository was generated from This template.

Install Fluxcd and kubectl

Kubectl

This code from Kubernetes Docs

# Download Kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"

# Install kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

# Completion
echo 'source <(kubectl completion bash)' >>~/.bashrc

Flux CLI

curl -s https://fluxcd.io/install.sh | sudo bash

# add completion
echo '. <(flux completion bash)' >>~/.bashrc

BootStrap FluxCD

Prepare

Bootstrap FluxCD

flux bootstrap github \
  --components-extra=image-reflector-controller,image-automation-controller \
  --token-auth \
  --owner=solufit \
  --repository=infrastructure \
  --branch=main \
  --path=clusters/production \

Using Secrets