Skip to content

Commit d7976cc

Browse files
committed
feat(#646): Started Azure migration (Found out we have to migrate to azure identities, wIP
1 parent c4b8bfa commit d7976cc

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

azure/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ The documentation below is auto-generated to give insight on what's created via
106106

107107
| Name | Version |
108108
|------|---------|
109-
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | ~> 3.45.0 |
110-
| <a name="provider_http"></a> [http](#provider\_http) | ~> 3.2.1 |
111-
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.4.3 |
109+
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 3.45.0 |
110+
| <a name="provider_http"></a> [http](#provider\_http) | 3.2.1 |
111+
| <a name="provider_random"></a> [random](#provider\_random) | 3.4.3 |
112112

113113
## Modules
114114

azure/k8s-vault-azure-start.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,19 @@ else
6666
helm install csi csi-secrets-store-provider-azure/csi-secrets-store-provider-azure --namespace kube-system
6767
fi
6868

69+
#TO BE REPLACED WITH https://azure.github.io/azure-workload-identity/docs/installation.html
6970
echo "Add Azure pod identity to repo"
7071
helm repo add aad-pod-identity https://raw.githubusercontent.com/Azure/aad-pod-identity/master/charts
7172

7273
helm list --namespace kube-system | grep 'aad-pod-identity' &>/dev/null
7374
if [ $? == 0 ]; then
7475
echo "Azure pod identity chart already installed"
7576
else
76-
helm install aad-pod-identity aad-pod-identity/aad-pod-identity
77+
helm upgrade --install aad-pod-identity aad-pod-identity/aad-pod-identity #NO LONGER WORKS BECAUSE OF OUR CONFIUGRATION (RESTRICTED IN DEFAULT)
7778
fi
7879

80+
#END TO BE REPLACED WITH https://azure.github.io/azure-workload-identity/docs/installation.html
81+
7982
echo "Generate secret manager challenge secret 2"
8083
az keyvault secret set --name wrongsecret-2 --vault-name "${AZ_KEY_VAULT_NAME}" --value "$(openssl rand -base64 16)" >/dev/null
8184

@@ -96,6 +99,8 @@ kubectl apply -f./k8s/pod-id.yml
9699
while [[ $(kubectl --namespace=default get pods -l "app.kubernetes.io/component=mic" -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True True" ]]; do echo "waiting for component=mic" && sleep 2; done
97100
while [[ $(kubectl --namespace=default get pods -l "app.kubernetes.io/component=nmi" -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "waiting for component=nmi" && sleep 2; done
98101

102+
103+
99104
source ../scripts/apply-and-portforward.sh
100105

101106
echo "Run terraform destroy to clean everything up."

azure/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ resource "azurerm_kubernetes_cluster" "cluster" {
4343

4444
kubernetes_version = var.cluster_version
4545

46-
api_server_authorized_ip_ranges = ["${data.http.ip.response_body}/32"]
46+
api_server_access_profile {
47+
authorized_ip_ranges = ["${data.http.ip.response_body}/32"]
48+
}
4749

4850
network_profile {
4951
network_plugin = "azure"

0 commit comments

Comments
 (0)