mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
51 lines
3.9 KiB
Markdown
51 lines
3.9 KiB
Markdown
# README.md
|
|
|
|
<img align="left" width="144px" height="144px" src="https://camo.githubusercontent.com/5b298bf6b0596795602bd771c5bddbb963e83e0f/68747470733a2f2f692e696d6775722e636f6d2f7031527a586a512e706e67"/>
|
|
|
|
## My home Kubernetes cluster :sailboat:
|
|
|
|
... managed with Flux and Renovate :robot:
|
|
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
|
|
[](https://discord.gg/AvJxRMRf6H)
|
|
[](https://k3s.io/)
|
|
[](https://github.com/pre-commit/pre-commit)
|
|
[](https://github.com/renovatebot/renovate)
|
|
|
|
## Bootstrap Flux
|
|
|
|
```bash
|
|
flux bootstrap github \
|
|
--version=latest \
|
|
--owner=auricom \
|
|
--repository=home-ops \
|
|
--path=cluster/base \
|
|
--personal \
|
|
--network-policy=false
|
|
```
|
|
|
|
## SOPS secret from age key
|
|
|
|
```bash
|
|
age-keygen -o $HOME/sops/age/keys.txt
|
|
cat $HOME/sops/age/keys.txt |
|
|
kubectl create secret generic sops-age \
|
|
--namespace=flux-system \
|
|
--from-file=$HOME/sops/age/keys.txt=/dev/stdin
|
|
```
|
|
|
|
## Encrypt kubernetes resources with sops binary
|
|
|
|
```bash
|
|
sops --encrypt --in-place <FILE_PATH>
|
|
```
|
|
|
|
## Install pre-commit hooks
|
|
|
|
```bash
|
|
pre-commit install
|
|
```
|