Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bkupidura/home-k8s


https://github.com/bkupidura/home-k8s

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

## Install cli

```
brew install git
brew install python3
brew install kubernetes-cli
brew install tanka
brew install jsonnet-bundler
brew install esolitos/ipa/sshpass
brew install sops
pip3 install ansible mitogen
```

## Cluster deployment from scratch

##### Deploy Ubuntu server on all nodes

##### Update ansible/inventory

##### Run ansible

```
./scripts/run_ansible.sh -r configure_nodes.yaml
./scripts/run_ansible.sh -r install_k8s.yaml -e operation=deploy
```

##### Source kube-config

`export KUBECONFIG=kube-config.yaml`

## Deploy k8s workload

```
jb install github.com/jsonnet-libs/k8s-libsonnet/1.28@main
./scripts/tanka apply tanka/environments/prod/
```

## Show ansible variables

`./scripts/run_ansible.sh -s all`

## Show ansible facts

`./scripts/run_ansible.sh -f all`

## Validate all manifests

```
python3 -mvenv scripts/validate/venv
source scripts/validate/venv/bin/activate
pip3 install -r scripts/validate/requirements.txt
sops exec-file scripts/validate/config.yaml "kubectl get deployment,daemonset,service,cronjob,ingressroute,statefulset,pod -A -o yaml | python3 scripts/validate/validate.py -c {}"
```