{"id":16151653,"url":"https://github.com/timoknapp/az-aks-demo","last_synced_at":"2025-04-06T22:45:57.516Z","repository":{"id":183394623,"uuid":"653021256","full_name":"timoknapp/az-aks-demo","owner":"timoknapp","description":"Demo of AKS in combination with App Gateway","archived":false,"fork":false,"pushed_at":"2023-08-03T09:38:28.000Z","size":603,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T05:17:10.133Z","etag":null,"topics":["aks","application-gateway","azure"],"latest_commit_sha":null,"homepage":"","language":"Bicep","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timoknapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-13T09:00:56.000Z","updated_at":"2023-07-27T10:16:40.000Z","dependencies_parsed_at":"2024-11-02T00:40:48.141Z","dependency_job_id":"c7e233fc-30af-48ef-9200-76529362a1bc","html_url":"https://github.com/timoknapp/az-aks-demo","commit_stats":null,"previous_names":["timoknapp/az-aks-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoknapp%2Faz-aks-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoknapp%2Faz-aks-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoknapp%2Faz-aks-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoknapp%2Faz-aks-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timoknapp","download_url":"https://codeload.github.com/timoknapp/az-aks-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247563922,"owners_count":20958971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aks","application-gateway","azure"],"created_at":"2024-10-10T00:58:21.853Z","updated_at":"2025-04-06T22:45:57.492Z","avatar_url":"https://github.com/timoknapp.png","language":"Bicep","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure AKS Demo\n\n![architecture](architecture.png)\n\n## Prerequisites\n\n* Azure CLI version 2.47.0 or later\n* kubectl\n\n## Getting started\n\n### Create parameters.json\n\n```bash\ncat \u003c\u003cEOF \u003e parameters.json\n{\n    \"postgresServerAdminPassword\": { \"value\": \"A$(openssl rand -hex 6)#\" }\n}\nEOF\n```\n\n### Enable / disable private AKS cluster\n\n[Link to documentation](https://learn.microsoft.com/en-US/azure/aks/api-server-vnet-integration#enable-or-disable-private-cluster-mode-on-an-existing-cluster-with-api-server-vnet-integration)\n\n```bash\n# Install the aks-preview extension\naz extension add --name aks-preview\n\n# Update the extension to make sure you have the latest version installed\naz extension update --name aks-preview\n\n# Register the EnableAPIServerVnetIntegrationPreview feature flag using the az feature register command.\naz feature register --namespace \"Microsoft.ContainerService\" --name \"EnableAPIServerVnetIntegrationPreview\"\n# Verify the registration status using the az feature show command - this may take some time\naz feature show --namespace \"Microsoft.ContainerService\" --name \"EnableAPIServerVnetIntegrationPreview\"\n# Re-register the provider\naz provider register --namespace \"Microsoft.ContainerService\"\n```\n\n### Deploy Resources to Azure\n\n```bash\nresourceGroupName=\"rg-aks-demo-001\"\nlocation=\"northeurope\"\ndeploymentName=\"aks-demo-001\"\n\n# create a resource group\naz group create -n $resourceGroupName -l $location\n\n# modify the template as needed\naz deployment group create \\\n        -g $resourceGroupName \\\n        -n $deploymentName \\\n        --template-file main.bicep \\\n        --parameters parameters.json\n\n# Enable private cluster mode\naz aks update -n \u003ccluster-name\u003e \\\n    -g \u003cresource-group\u003e \\\n    --enable-private-cluster\n```\n\n### Adding a node pool to the cluster\n\n```bash\n# Update these values so that they match the actual deployed resources\nresourceGroupName=\"rg-aks-demo-001\"\nclusterName=\"aksdemo1234-cluster\"\nnodePoolName=\"nodepool2\"\n\ndeploymentName=\"aks-demo-$nodePoolName-001\"\n\naz deployment group create \\\n  --name $deploymentName \\\n  --resource-group $resourceGroupName \\\n  --template-file ./modules/nodepool.bicep \\\n  --parameters clusterName=\"$clusterName\" nodePoolName=\"$nodePoolName\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoknapp%2Faz-aks-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoknapp%2Faz-aks-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoknapp%2Faz-aks-demo/lists"}