Code Monkey home page Code Monkey logo

ansible-ocp_quotas's Introduction

Kustomize Overlay for OpenShift Namespace Quotas

This repository contains a Kustomize overlay for managing resource quotas in an OpenShift namespace.

Usage

  1. Clone this repository to your local machine:
git clone https://github.com/your_username/your_repository.git
  1. Edit the create_kustomize_overlay.yml playbook to customize the namespace and quota limits.

  2. Run the playbook to generate the Kustomize overlay:

ansible-playbook configure.yml
  1. Apply the overlay to your OpenShift cluster using Kustomize:
kustomize build ./kustomize/{{ kustomize_vars.namespace }}/ | kubectl apply -f -

Variables

  • _ansible_dir: The directory in which the existing quota files live
  • name.funding_source: The funding source of the quota
  • name.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 requested
  • requests.cpu: The number of CPUs requested
  • requests.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 CPU
  • limits.memory: The limit for Memory (in Mi/Gi)
  • lrange.pod.max_cpu: The maximum CPU per pod
  • lrange.pod.max_memory: The maximum Memory per pod (in Mi/Gi)
  • lrange.pod.min_cpu: The minimum CPU per pod
  • lrange.pod.max_memory: The minimum memory per pod (in Mi/Gi)
  • lrange.container.default_cpu: The default CPU per container
  • lrange.container.defaultmemory: The default memory per container (in Mi/Gi)
  • lrange.container.defaultRequest_cpu: The default request for container CPU
  • lrange.container.defaultRequest_memory: The default request for container memory (in Mi/Gi)

License

This project is licensed under the MIT License - see the LICENSE file for details.

ansible-ocp_quotas's People

Contributors

thegreatatheismo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.