Skip to content

Commit 4d4b28d

Browse files
committed
initial changes for aks prior to first test run
1 parent c1ceca9 commit 4d4b28d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

azure/README.md

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Please note that this setup relies on bash scripts that have been tested in MacO
2121

2222
## Installation
2323

24-
**Note-I**: We create resources in `east us` by default. You can set the region by editing `terraform.tfvars`.
24+
**Note-I**: We create resources in `east us` by default. You can set the region by editing [`terraform.tfvars`](./terraform.tfvars).
2525

2626
**Note-II**: The cluster you create has its access bound to the public IP of the creator. In other words: the cluster you create with this code has its access bound to your public IP-address if you apply it locally. If you switched to a different network, you'll need to run `terraform apply` again to update the firewall rules.
2727

@@ -43,7 +43,7 @@ terraform init
4343
terraform apply
4444
```
4545

46-
The storage account name should be in the output. Please use that to configure the Terraform backend in `main.tf` by uncommenting the part on the `backend "azurerm"` inside the `terraform` block. Assign the `storage_account_name` to the one from the output.
46+
The storage account name should be in the output. Please use that to configure the Terraform backend in [`main.tf`](./main.tf) by uncommenting the part on the `backend "azurerm"` inside the `terraform` block. Assign the `storage_account_name` to the one from the output.
4747

4848
**Note**: You'll need to follow the description [below](#wrongsecrets-ctf-party) in step 1 for the "existing resource group" i.e., use the `azurerm_resource_group.default` resource.
4949

@@ -58,19 +58,7 @@ The storage account name should be in the output. Please use that to configure t
5858
4. Run `terraform init` (if required, use `tfenv` to select TF 0.14.0 or higher )
5959
5. Run `terraform plan` to see what will be created (optional).
6060
6. Run `terraform apply`. Note: the apply will take 5 to 20 minutes depending on the speed of the Azure backplane.
61-
7. Go to the values of the helm chart and replace the wrongsecrets.config with this:
62-
63-
```yaml
64-
K8S_ENV: "azure"
65-
```
66-
67-
and replace the value of wrongsecrets.env having the name 'K8S_ENV' with this:
68-
69-
```yaml
70-
value: "azure"
71-
```
72-
73-
8. Run `./build-and-deploy-azure.sh`. Your kubeconfig file will automatically be updated.
61+
7. Run `./build-and-deploy-azure.sh`. Your kubeconfig file will automatically be updated.
7462

7563
Your AKS cluster should be visible in your resource group. Want a different region? You can modify `terraform.tfvars` or input it directly using the `region` variable in plan/apply.
7664

azure/build-and-deploy-azure.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ echo "You can find the app password in password.txt"
152152

153153
helm upgrade --install wrongsecrets ../helm/wrongsecrets-ctf-party \
154154
--set="balancer.env.K8S_ENV=azure" \
155+
--set="balancer.tag=1.9.0alpha5-cloud" \
155156
--set="balancer.env.REACT_APP_AZ_BLOB_URL=https://${AZ_STORAGE_ACCOUNT}.blob.core.windows.net/tfstate" \
156157
--set="balancer.env.REACT_APP_ACCESS_PASSWORD=${APP_PASSWORD}" \
157158
--set="balancer.env.REACT_APP_CREATE_TEAM_HMAC_KEY=${CREATE_TEAM_HMAC}" \

0 commit comments

Comments
 (0)