{"id":18778276,"url":"https://github.com/ajsalemo/container-apps-elx-cpu-and-memory-deployments","last_synced_at":"2026-03-19T06:20:41.424Z","repository":{"id":200540595,"uuid":"703562775","full_name":"Ajsalemo/container-apps-elx-cpu-and-memory-deployments","owner":"Ajsalemo","description":"Various ways to define CPU limits for containers - locally, and on Container Apps","archived":false,"fork":false,"pushed_at":"2023-10-16T15:23:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-04T00:30:14.360Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Ajsalemo.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}},"created_at":"2023-10-11T13:27:57.000Z","updated_at":"2023-10-16T15:20:54.000Z","dependencies_parsed_at":"2023-10-17T07:10:38.868Z","dependency_job_id":null,"html_url":"https://github.com/Ajsalemo/container-apps-elx-cpu-and-memory-deployments","commit_stats":null,"previous_names":["ajsalemo/container-apps-elx-cpu-and-memory-deployments"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ajsalemo/container-apps-elx-cpu-and-memory-deployments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajsalemo","download_url":"https://codeload.github.com/Ajsalemo/container-apps-elx-cpu-and-memory-deployments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29487397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"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":[],"created_at":"2024-11-07T20:15:47.495Z","updated_at":"2026-02-15T19:03:47.419Z","avatar_url":"https://github.com/Ajsalemo.png","language":"Bicep","funding_links":[],"categories":[],"sub_categories":[],"readme":"# container-apps-elx-cpu-and-memory-deployments\nVarious ways to define CPU and memorylimits for containers - locally, and on Container Apps\n\n\n## Local usage\nThe `local` folder is intended to be used with a local Kubernetes cluster enabled through Docker Desktop. \n\n**Prerequisites - enable Docker Desktop - Kubernetes**:\n- Follow steps 1 - 4 listed [here](https://docs.docker.com/desktop/kubernetes/#turn-on-kubernetes)\n- If you want to add the `kubectl` command to path, follow the steps [here](https://docs.docker.com/desktop/kubernetes/#use-the-kubectl-command). Otherwise you would need to type the full path to the command - eg., `\"C:\\Program Files\\Docker\\Docker\\Resources\\bin\\kubectl.exe\"` if using Bash.\n------\n\n1. After enabling the prerequisite above, run the following command:\n\n    ```\n    kubectl apply -f local/nginx.yaml\n    ```\n\n    You'll see the below in your terminal:\n\n    ```\n    service/nginx-service unchanged\n    deployment.apps/nginx-deployment configured\n    ```\n\n    If `kubectl`, is **not** on `$PATH`, run the following:\n    ```\n    \"C:\\Program Files\\Docker\\Docker\\Resources\\bin\\kubectl.exe\" apply -f local/nginx.yaml\n    ```\n\n2. Review the `.yaml` file to understand where and how to set CPU and memory request and limits.\n\n## Azure deployment\nThe `azure` folder is used for deploying through various means to Azure Container Apps.\n\nThe `arm` and `bicep` folders will create a Container App Environment and a Container App.\n\nSteps to follow:\n1. Use the commands under each respective folders to deploy and/or change CPU values. This is within the `deploy.sh` file\n    - Make sure to replace the values in the deployment command with your own (eg., resource group, location)\n2. Change the CPU values in the `deploy.json`, `dpeloy.bicep`, or Azure CLI commands to test changing CPU","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fcontainer-apps-elx-cpu-and-memory-deployments/lists"}