Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
/ k3s-gitops Public archive

Flux2/GitOps managed k3s cluster running on Raspberry Pis

License

Notifications You must be signed in to change notification settings

SVendittelli/k3s-gitops

Repository files navigation

k3s GitOps

Commitizen friendly Conventional Commits pre-commit Renovate enabled

This project is no longer used or maintained.

Configuration for my personal k3s cluster. Deployed and managed using flux.

☑️ To Do List

  • Host personal website
  • Add traefik dashboard
  • Serve aoeii redirector page
  • Host aoeii discord bot
  • Replace cluster-admin user with IDP and auth (keycloak)
  • Configure cert-manager for TLS on ingresses

⚠️ pre-commit

It is advisable to install pre-commit and the pre-commit hooks that come with this repository. sops-pre-commit will check to make sure you are not by accident committing your secrets un-encrypted.

After pre-commit is installed on your machine run:

pre-commit install -t pre-commit -t commit-msg --install-hooks

🔐 Flux SOPS integration

GPG encrypted secrets using SOPS can be committed directly as they will be decrypted when deployed by flux. Use the following command to encrypt plain text secrets. The public key is included for encrypting new secrets. Git diffs can be shown in plain text by configuring git correctly.

sops --encrypt --in-place ./cluster/<SECRET_NAME>.sops.yaml

💨 Kubernetes Dashboard

The kubernetes dashboard is deployed via a helm repo.

The dashboard by:

kubectl proxy

The dashboard can then be accessed at http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:https/proxy/

A login token can be obtained by:

kubectl -n kubernetes-dashboard describe secret admin-user-token | grep '^token'

About

Flux2/GitOps managed k3s cluster running on Raspberry Pis

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •