GithubHelp home page GithubHelp logo

cluster_config's Introduction

[ARCHIVED] Newer version: https://github.com/openlab-red/openshift-management

OpenShift Cluster config

Playbooks
openshift-quota/config.yml

OpenShift Quota

Quota Tiers

Profile Project CPU Project Memory Per Pod CPU Per Pod Memory
X-Small 1 core (burstable to 2) 2Gi (burstable to 4) 10m - 1000m; default request/limit: 50m/250m 128 Mi - 1Gi; default request/limit: 256Mi/256Mi
Small (default) 2 core (burstable to 4) 4Gi (burstable to 8) 10m - 1000m; default request/limit: 50m/500m 128 Mi - 2Gi; default request/limit: 256Mi/512Mi
Medium 4 core (burstable to 6) 8Gi (burstable to 12) 20m - 2000m; default request/limit: 50m/1000m 128 Mi - 4Gi; default request/limit: 256Mi/1Gi
Large 6 core (burstable to 8) 12Gi (burstable to 16) 20m - 2000m; default request/limit: 100m/2000m 256 Mi - 6Gi; default request/limit: 512Mi/2Gi
X-Large 12 core (burstable to 16) 32Gi (burstable to 66) 20m - 6000m; default request/limit: 100m/4000m 256 Mi - 16Gi; default request/limit: 512Mi/8Gi
  • Ansible openshift_quota_tier possible values:
    • xsmall
    • small
    • medium
    • large
    • xlarge

Default tier quota is small openshift_quota_tier=small

  1. Apply Quota for multiple project

      ansible-playbook playbooks/openshift-quota/config.yml -e '{"openshift_quota_projects": ["myproject", "myproject-2"]}'
    

    Use a different tier:

      ansible-playbook playbooks/openshift-quota/config.yml -e '{"openshift_quota_projects": ["myproject", "myproject-2"]}' -e openshift_quota_tier=medium
    
  2. Apply Quota for all projects

      ansible-playbook playbooks/openshift-quota/config.yml -e openshift_quota_all_projects=true
    

    openshift_quota_all_projects excludes the infrastructure projects:

    • default
    • kube-system
    • openshift-infra
    • openshift-metrics
    • openshift-grafana
    • grafana
    • openshift-service-catalog
    • openshift-glusterfs
    • glusterfs
    • storage
    • openshift-web-console
    • kube-service-catalog
    • kube-public
    • logging
    • management-infra
    • openshift-node
    • openshift-template-service-broker
    • openshift-ansible-service-broker
    • openshift-management
    • openshift

    To exclude additional projects use openshift_quota_projects_excluder as extra var

    ansible-playbook -i playbooks/openshift-quota/config.yml -e openshift_quota_all_projects=true -e '{"openshift_quota_projects_excluder": ["customer-infra", "customer-broker"]}'
    
  3. View Current quota

     oc get quota,limitrange --all-namespaces --show-labels
    

OpenShift Default Project Template

TBD

cluster_config's People

Contributors

eye0fra avatar

Watchers

 avatar  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.