2024-07-21 10:27:40 +00:00
|
|
|
# Always use devbox environment to run commands.
|
|
|
|
set shell := ["devbox", "run"]
|
|
|
|
# Load dotenv
|
|
|
|
set dotenv-load
|
|
|
|
|
2024-07-25 15:42:08 +00:00
|
|
|
lint:
|
|
|
|
@tofu fmt -check -recursive .
|
|
|
|
@tflint --recursive
|
|
|
|
|
2024-07-21 10:27:40 +00:00
|
|
|
GATEWAY_API_VERSION := "v1.1.0"
|
|
|
|
METRICS_SERVER_VERSION := "v0.7.1"
|
|
|
|
|
|
|
|
modules-cluster-manifests:
|
|
|
|
@rm -rf modules/cluster/manifests
|
|
|
|
@mkdir -p modules/cluster/manifests
|
|
|
|
@curl -L -o modules/cluster/manifests/gateway-api.crds.yaml \
|
|
|
|
"https://github.com/kubernetes-sigs/gateway-api/releases/download/{{GATEWAY_API_VERSION}}/experimental-install.yaml"
|
|
|
|
@curl -L -o modules/cluster/manifests/metrics-server.yaml \
|
|
|
|
"https://github.com/kubernetes-sigs/metrics-server/releases/download/{{METRICS_SERVER_VERSION}}/components.yaml"
|
|
|
|
|
|
|
|
k8s-apply: modules-cluster-manifests
|
|
|
|
tofu -chdir={{justfile_directory()}}/k8s.tjo.cloud init
|
|
|
|
tofu -chdir={{justfile_directory()}}/k8s.tjo.cloud apply -target module.cluster
|
2024-07-23 18:42:22 +00:00
|
|
|
tofu -chdir={{justfile_directory()}}/k8s.tjo.cloud apply -target module.cluster-core
|
2024-07-21 10:27:40 +00:00
|
|
|
tofu -chdir={{justfile_directory()}}/k8s.tjo.cloud apply
|