This repository contains a Kustomize overlay for managing resource quotas in an OpenShift namespace.
- Clone this repository to your local machine:
git clone https://github.com/your_username/your_repository.git
-
Edit the
create_kustomize_overlay.yml
playbook to customize the namespace and quota limits. -
Run the playbook to generate the Kustomize overlay:
ansible-playbook configure.yml
- Apply the overlay to your OpenShift cluster using Kustomize:
kustomize build ./kustomize/{{ kustomize_vars.namespace }}/ | kubectl apply -f -
_ansible_dir
: The directory in which the existing quota files livename.funding_source
: The funding source of the quotaname.project
: The name of the organisational project (not to be confused with the OCP namespace/project)name.namespace
: The namespaces to be added to the quota (as a list)requests.pods
: The number of pods requestedrequests.cpu
: The number of CPUs requestedrequests.memory
: The amount of memory requested (in Mi/Gi)requests.storage
" The amount of storage requested (in Mi/Gi/Ti)limits.cpu
: The limit for CPUlimits.memory
: The limit for Memory (in Mi/Gi)lrange.pod.max_cpu
: The maximum CPU per podlrange.pod.max_memory
: The maximum Memory per pod (in Mi/Gi)lrange.pod.min_cpu
: The minimum CPU per podlrange.pod.max_memory
: The minimum memory per pod (in Mi/Gi)lrange.container.default_cpu
: The default CPU per containerlrange.container.defaultmemory
: The default memory per container (in Mi/Gi)lrange.container.defaultRequest_cpu
: The default request for container CPUlrange.container.defaultRequest_memory
: The default request for container memory (in Mi/Gi)
This project is licensed under the MIT License - see the LICENSE file for details.