mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 21:52:02 +08:00
This adds loadtesting automation and k8s yamls to deploy teleport to a k8s cluster. The grafana health dashboard is also included and can be consumed by end users to better monitor their teleport clusters.
29 lines
584 B
Makefile
29 lines
584 B
Makefile
# preview cluster configuration
|
|
.PHONY: plan
|
|
plan:
|
|
terraform plan
|
|
|
|
# apply cluster configuration
|
|
.PHONY: apply
|
|
apply:
|
|
terraform apply
|
|
|
|
# authorize kubectl to manage the cluster
|
|
.PHONY: get-creds
|
|
get-creds:
|
|
gcloud container clusters get-credentials $(shell make get-cluster-name) --zone us-central1 --project teleport-loadtest
|
|
|
|
# destroy the cluster
|
|
.PHONY: destroy
|
|
destroy:
|
|
terraform destroy
|
|
|
|
# print cluster name
|
|
.PHONY: get-cluster-name
|
|
get-cluster-name:
|
|
@terraform output -raw cluster_name
|
|
|
|
# print project name
|
|
.PHONY: get-project
|
|
get-project:
|
|
@terraform output -raw project
|