Skip to content

Commit

Permalink
added vsrisbles
Browse files Browse the repository at this point in the history
  • Loading branch information
Tope Emmanuel committed Jan 30, 2024
1 parent ed53305 commit 784a818
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ bin/terrafile: ## Install terrafile to manage terraform modules
bin/yaq:
mkdir -p bin | curl -sL https://github.com/uk-devops/yaq/releases/download/v0.0.3/yaq_linux_amd64_v0.0.3.zip -o yaq.zip && unzip -o yaq.zip -d ./bin/ && rm yaq.zip

development_aks:
development_aks: test-cluster
$(eval include global_config/development_aks.sh)

test_aks:
test_aks: test-cluster
$(eval include global_config/test_aks.sh)

production_aks:
production_aks: production-cluster
$(eval include global_config/production_aks.sh)

local_aks:
Expand Down Expand Up @@ -104,6 +104,14 @@ deploy-arm-resources: arm-deployment

validate-arm-resources: set-what-if arm-deployment

test-cluster:
$(eval CLUSTER_RESOURCE_GROUP_NAME=s189t01-tsc-ts-rg)
$(eval CLUSTER_NAME=s189t01-tsc-test-aks)

production-cluster:
$(eval CLUSTER_RESOURCE_GROUP_NAME=s189p01-tsc-pd-rg)
$(eval CLUSTER_NAME=s189p01-tsc-production-aks)

get-cluster-credentials: set-azure-account
az aks get-credentials --overwrite-existing -g ${CLUSTER_RESOURCE_GROUP_NAME} -n ${CLUSTER_NAME}
kubelogin convert-kubeconfig -l $(if ${GITHUB_ACTIONS},spn,azurecli)
107 changes: 107 additions & 0 deletions terraform/aks/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 784a818

Please sign in to comment.