apiVersion: v1
kind: ResourceQuota
metadata:
  name: default
spec:
  hard:
    # 100m - web-frontend
    # 100m - microservice-c
    # 200m - Allow for x2 horizontal growth on above
    # 100m - Rolling updates
    requests.cpu: 500m

    # 200Mi - web-frontend
    # 200Mi - microservice-c
    # 400Mi - Allow for x2 horizontal growth on above
    # 200Mi - Rolling updates
    requests.memory: 1Gi
    requests.storage: "0"

    # 400m - web-frontend
    # 400m - microservice-c
    # 800m - Allow for x2 horizontal growth on above
    # 400m - Rolling updates
    limits.cpu: 2000m

    # 800Mi - web-frontend
    # 800Mi - microservice-c
    # 1600Mi - Allow for x2 horizontal growth on above
    # 800Mi - Rolling updates
    limits.memory: 4Gi
    count/persistentvolumeclaims: "0"
    count/services.loadbalancers: "0"
    count/services.nodeports: "0"

    # 1 - web-frontend
    # 1 - microservice-c
    count/deployments.apps: "2"
    count/daemonset.apps: "0"

    # 1 - web-frontend
    # 1 - microservice-c
    count/services: "2"

    # 2 - web-frontend
    # 2 - microservice-c
    # 4 - Allow for x2 horizontal growth on above
    # 2 - Rolling updates
    count/pods: "10"