Skip to content

Commit 5b07ed7

Browse files
authored
Merge pull request #902 from IABTechLab/kcc-UID2-4751-fix-kubernetes-version
UID2-5741 Add notes about --kubernetes-version
2 parents afe0ea2 + 1a74985 commit 5b07ed7

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

docs/guides/operator-guide-aks-enclave.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ az aks create \
276276
--resource-group ${RESOURCE_GROUP} \
277277
--name ${AKS_CLUSTER_NAME} \
278278
--location ${LOCATION} \
279-
--kubernetes-version 1.29.13 \
279+
--kubernetes-version 1.33 \
280280
--network-plugin azure \
281281
--network-policy calico \
282282
--vnet-subnet-id ${AKS_SUBNET_ID} \
@@ -292,6 +292,9 @@ az aks create \
292292
--nodepool-name oprnodepool \
293293
--os-sku Ubuntu
294294
```
295+
:::note
296+
Be sure to use the latest supported Kubernetes version, using the `--kubernetes-version` flag. If you use an earlier version, you must enable Long-Term Support (LTS). For details, see [Long-term support for Azure Kubernetes Service (AKS) versions](https://learn.microsoft.com/en-us/azure/aks/long-term-support) in the Microsoft documentation.
297+
:::
295298

296299
#### Get the Principal ID of the Managed Identity
297300

@@ -376,23 +379,43 @@ After completing the previous steps, follow these steps to update placeholder va
376379
1. Get the managed identity ID by running the following:
377380

378381
```
379-
MANAGED_IDENTITY_ID=$("az identity show --name "${MANAGED_IDENTITY}" --resource-group "${RESOURCE_GROUP}" --query id --output tsv")
382+
MANAGED_IDENTITY_ID=$(az identity show --name "${MANAGED_IDENTITY}" --resource-group "${RESOURCE_GROUP}" --query id --output tsv)
380383
```
381384

382385
2. In the `operator.yaml` file, update `microsoft.containerinstance.virtualnode.identity` with the managed identity ID that was returned:
383386

387+
- For Linux, run:
388+
384389
```
385390
sed -i "s#IDENTITY_PLACEHOLDER#$MANAGED_IDENTITY_ID#g" "operator.yaml"
386391
```
387392

393+
- For MacOS, run:
394+
395+
```
396+
sed -i '' "s#IDENTITY_PLACEHOLDER#$MANAGED_IDENTITY_ID#g" "operator.yaml"
397+
```
398+
388399
3. Update the Vault Key and Secret names with the environment variables:
389400

401+
- For Linux, run:
402+
403+
390404
```
391405
sed -i "s#VAULT_NAME_PLACEHOLDER#$KEYVAULT_NAME#g" "operator.yaml"
392406
sed -i "s#OPERATOR_KEY_SECRET_NAME_PLACEHOLDER#$KEYVAULT_SECRET_NAME#g" "operator.yaml"
393407
sed -i "s#DEPLOYMENT_ENVIRONMENT_PLACEHOLDER#$DEPLOYMENT_ENV#g" "operator.yaml"
394408
```
395409

410+
- For MacOS, run:
411+
412+
```
413+
sed -i '' "s#VAULT_NAME_PLACEHOLDER#$KEYVAULT_NAME#g" "operator.yaml"
414+
sed -i '' "s#OPERATOR_KEY_SECRET_NAME_PLACEHOLDER#$KEYVAULT_SECRET_NAME#g" "operator.yaml"
415+
sed -i '' "s#DEPLOYMENT_ENVIRONMENT_PLACEHOLDER#$DEPLOYMENT_ENV#g" "operator.yaml"
416+
```
417+
418+
396419
#### Deploy Operator
397420

398421
Follow these steps to deploy the Private Operator:

0 commit comments

Comments
 (0)