{"id":22089441,"url":"https://github.com/prodyna/whatthehack039","last_synced_at":"2026-05-01T01:32:21.657Z","repository":{"id":200442385,"uuid":"702463579","full_name":"PRODYNA/WhatTheHack039","owner":"PRODYNA","description":"Hackathon for Enterprise Kubernete","archived":false,"fork":false,"pushed_at":"2023-10-19T16:39:23.000Z","size":676,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-03T09:59:41.980Z","etag":null,"topics":["enterprise","hackathon","kubernetes","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/PRODYNA.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-10-09T11:15:19.000Z","updated_at":"2023-11-07T09:54:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"b88f59b6-f3a3-48d6-825b-190588027e1d","html_url":"https://github.com/PRODYNA/WhatTheHack039","commit_stats":null,"previous_names":["oteichmann/whatthehack039","prodyna/whatthehack039"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PRODYNA/WhatTheHack039","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRODYNA%2FWhatTheHack039","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRODYNA%2FWhatTheHack039/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRODYNA%2FWhatTheHack039/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRODYNA%2FWhatTheHack039/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PRODYNA","download_url":"https://codeload.github.com/PRODYNA/WhatTheHack039/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRODYNA%2FWhatTheHack039/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["enterprise","hackathon","kubernetes","terraform"],"created_at":"2024-12-01T02:12:53.841Z","updated_at":"2026-05-01T01:32:21.624Z","avatar_url":"https://github.com/PRODYNA.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WhatTheHack039\n\nThis project contains the reference solutin.\n\n## Requirements\n\n* Azure subscription\n* Contributor permissions on this subscription\n* The following tools\n  * az (Azure CLI)\n  * terraform\n  * kubectl\n  * helm\n  * kubelogin\n\n## Installation\n\nThe infrastructure is defined in Terraform, a descriptive Infrastructure-as-Code technology. The infrastructure is provisioned in two stages\n\n* Azure\n* Kubernetes\n\nAzure contains the whole Azure parts and includes a Azure Kubernetes Service (AKS). The second stage provisions resources in the AKS.\n\n### Install the Azure part\n\nGo to the Azure directory. Login to Azure, either\n\n```shell\naz login\n```\n\nfor human login or\n\n```shell\naz login --service-principal -u \u003cusername\u003e -p \u003cpassword\u003e\n```\n\nin case you have a service principal. Switch to the right subscription using\n\n```shell\naz account set --subscription \u003csubscription-id\u003e\n```\n\nAnd then run\n\n```shell\nterraform init\n```\n\nto install all Terraform providers and modules. After that create the infrastructure running\n\n```shell\nterraform apply\n```\n\nTerraform will create a plan that you can confirm by typing \"yes\" upon question. You will find the following resource groups in the subscription\n\n* hack\u003crandom\u003eXXXX\n* hackXXXX-aks-resources\n\n![image.png](assets/resourcegroups.png)\n\nIn the subscription hackXXX you will find the following:\n\n![image.png](assets/image.png?t=1697444619538)\n\nTerraform automatically loads the credentials to your local kubectl environment. So this command should work:\n\n```\n$ kubectl version                                                                                        ✔  hack8661 ⎈ \nClient Version: v1.28.2\nKustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3\nServer Version: v1.27.3\n```\n\nand\n\n```bash\n$ kubectl get nodes                                                                                         ✔  hack8661 ⎈ \nNAME                                 STATUS   ROLES   AGE     VERSION\naks-exnodepool-29187889-vmss000000   Ready    agent   2d17h   v1.27.3\n```\n\n### Install the Kubernetes part\n\nGo to the Kubernetes directory. We need to define the value for the variable email_adress like so\n\n```bash\necho email_address=\u003cyour-email-address\u003e \u003eterraform.auto.tfvars\n```\n\nThis file is picked automatically and is ignored by git. Run\n\n```shell\nterraform init\n```\n\nand then\n\n```shell\nterraform apply\n```\n\nagain, confirm with \"yes\" when asked.\n\n### Verify the result\n\nYou should be able to see the following\n\n* ingress-nginx is installed\n  * The ingress-nginx has a public IP address\n* cert-manager is installed\n  * Clusterissuer \"letsencrypt-prod\" (with your email address)\n* kube-prometheus-stack installed\n* Namespace \"hack\"\n  * Deployment \"api\"\n    * Reading the secrets for SQL_SERVER_PASSWORD from the KeyVault\n    * Horizonal Pod Autoscaler\n    * Persitent Volume Claim of type RWX which uses a file share on a storage account\n    * Ingress using traefik.me\n    * Certificate issued by Let's Encrypt\n  * Deployment \"web\"\n    * Horizional Pod Autoscaler\n    * Ingress using traefik.me\n    * Certificate issued by Let's Encrypt\n\n### Tearing down\n\nRun the command\n\n```shell\nterraform destroy\n```\n\nfirst in the Kubernetes, then Azure parts (reverse order)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodyna%2Fwhatthehack039","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprodyna%2Fwhatthehack039","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodyna%2Fwhatthehack039/lists"}