{"id":20605230,"url":"https://github.com/arnab-developer/aksdemo","last_synced_at":"2025-09-04T02:37:52.985Z","repository":{"id":42338593,"uuid":"426123204","full_name":"Arnab-Developer/AksDemo","owner":"Arnab-Developer","description":"Deploy ASP.NET web api to AKS","archived":false,"fork":false,"pushed_at":"2022-05-13T03:59:31.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T02:24:21.748Z","etag":null,"topics":["aks-kubernetes-cluster","aspnet-web-api"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Arnab-Developer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-09T06:56:48.000Z","updated_at":"2021-12-20T09:39:17.000Z","dependencies_parsed_at":"2022-09-15T01:53:40.749Z","dependency_job_id":null,"html_url":"https://github.com/Arnab-Developer/AksDemo","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAksDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAksDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAksDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Arnab-Developer%2FAksDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Arnab-Developer","download_url":"https://codeload.github.com/Arnab-Developer/AksDemo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242250932,"owners_count":20096895,"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-kubernetes-cluster","aspnet-web-api"],"created_at":"2024-11-16T09:27:13.780Z","updated_at":"2025-03-06T16:54:59.201Z","avatar_url":"https://github.com/Arnab-Developer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AKS demo\n\nThis is a demo to show how we can deploy ASP.NET web api into AKS.\n\nCreating docker image and push to dockerhub has been done with GitHub action, then pull the image\nfrom dockerhub and deploy to AKS has been done manually. I was getting some issues related to Azure \nlogin from GitHub action, so I manually deployed the containers to AKS.\n\nSteps to manually deploy to AKS with dockerhub image:\n\n- Create a new AKS resource in Azure\n- Login to Azure PowerShell from your local computer or use CloudShell\n- Install `kubectl` in your local machine if not already. If you are using CloudShell then `kubectl` is already\ninstalled\n- Import AKS credentials\n\n```\nImport-AzAksCredential -ResourceGroupName \u003cresource group name\u003e -Name \u003caks name\u003e\n```\n\n- Deploy to AKS (`aks-deploy.yml` is in the root of the repo)\n\n```\nkubectl apply -f aks-deploy.yml\n```\n\n- Check the nodes and pods\n\n```\nkubectl get nodes\n\nkubectl get pods\n```\n\n- Get the external ips of the services (you can also get the external ips from Azure Portal)\n\n```\nkubectl get service api1\n\nkubectl get service api2\n```\n\n- Open web browser and navigate to the url and you should be able to see the output\n\n```\nhttp://\u003capi 1 external ip\u003e/HelloApi?name=Jon\n\nhttp://\u003capi 2 external ip\u003e/HelloApi?name=Jon\n```\n\nFull tutorial\n[here](https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-prepare-app).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Faksdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnab-developer%2Faksdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnab-developer%2Faksdemo/lists"}