Skip to content

Zebradil/myks-homelab

Repository files navigation

Myks homelab

This repository stores myks configuration and is source of truth for my homelab based on k3s.

Setup

ArgoCD

ArgoCD is used to deploy and manage applications on the cluster. It is needed to be manually installed on a fresh cluster.

#!/bin/zsh

cd rendered/envs/alpha/argocd

# First, create the CRDs, then the rest.
CRDs=customresourcedefinition-*
find      -name $CRDs -exec kubectl create -f {} \;
find -not -name $CRDs -exec kubectl create -f {} \;

Give it a few minutes to start up.

ArgoCD Vault Plugin is configured as a Content Management Plugin. It uses sops to decrypt secrets, if there are any.

To finish its setup, the private key needs to be set in the cluster.

# Patch the secret to set age private key.
# ArgoCD will use it to decrypt sops secrets.
kubectl patch secret sops-age-key \
  -n argocd \
  -p '{"stringData": {"key": "'$(systemd-ask-password -n)'"}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages