mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 15:44:34 +07:00
9f0d389abc
Installed using Ansible instead of ArgoCD because Cilium replaces the default CNI, so ArgoCD pod cannot be scheduled before Cilium is installed.
24 lines
394 B
Makefile
24 lines
394 B
Makefile
.POSIX:
|
|
|
|
env ?= prod
|
|
export KUBECONFIG = $(shell pwd)/kubeconfig.yaml
|
|
|
|
default: boot cluster
|
|
|
|
~/.ssh/id_ed25519:
|
|
ssh-keygen -t ed25519 -P '' -f "$@"
|
|
|
|
boot: ~/.ssh/id_ed25519
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.yml \
|
|
boot.yml
|
|
|
|
cluster:
|
|
ansible-playbook \
|
|
--inventory inventories/${env}.yml \
|
|
cluster.yml
|
|
|
|
console:
|
|
ansible-console \
|
|
--inventory inventories/${env}.yml
|