Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bkupidura/home-k8s
https://github.com/bkupidura/home-k8s
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bkupidura/home-k8s
- Owner: bkupidura
- License: mit
- Created: 2021-07-25T12:39:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T22:10:23.000Z (about 2 months ago)
- Last Synced: 2024-10-30T00:39:59.255Z (about 2 months ago)
- Language: Jsonnet
- Size: 1.79 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 {}"
```