Skip to content

Commit

Permalink
Introduce appstudio large tier (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeykazakov authored Nov 2, 2023
1 parent ca97f74 commit f08f06a
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 10 deletions.
35 changes: 25 additions & 10 deletions deploy/templates/nstemplatetiers/appstudio/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ objects:
spec:
quota:
hard:
count/deployments.apps: "30"
count/deploymentconfigs.apps: "30"
count/pods: "300"
count/deployments.apps: ${{DEPLOYMENT_QUOTA}}
count/deploymentconfigs.apps: ${{DEPLOYMENT_QUOTA}}
count/pods: ${{POD_QUOTA}}
selector:
annotations: null
labels:
Expand All @@ -25,8 +25,8 @@ objects:
spec:
quota:
hard:
count/replicasets.apps: "30"
count/replicationcontrollers: "30"
count/replicasets.apps: ${{REPLICASET_QUOTA}}
count/replicationcontrollers: ${{REPLICASET_QUOTA}}
selector:
annotations: null
labels:
Expand All @@ -39,8 +39,8 @@ objects:
spec:
quota:
hard:
count/ingresses.extensions: "30"
count/routes.route.openshift.io: "30"
count/ingresses.extensions: ${{ROUTE_QUOTA}}
count/routes.route.openshift.io: ${{ROUTE_QUOTA}}
selector:
annotations: null
labels:
Expand Down Expand Up @@ -69,7 +69,7 @@ objects:
spec:
quota:
hard:
count/services: "30"
count/services: ${{SERVICE_QUOTA}}
selector:
annotations: null
labels:
Expand All @@ -95,7 +95,7 @@ objects:
spec:
quota:
hard:
count/secrets: "100"
count/secrets: ${{SECRET_QUOTA}}
selector:
annotations: null
labels:
Expand All @@ -108,7 +108,7 @@ objects:
spec:
quota:
hard:
count/configmaps: "100"
count/configmaps: ${{CONFIGMAP_QUOTA}}
selector:
annotations: null
labels:
Expand All @@ -126,3 +126,18 @@ parameters:
- name: IDLER_TIMEOUT_SECONDS
# No Idling
value: "0"
# Quota
- name: REPLICASET_QUOTA
value: "30"
- name: DEPLOYMENT_QUOTA
value: "30"
- name: POD_QUOTA
value: "300"
- name: ROUTE_QUOTA
value: "30"
- name: SERVICE_QUOTA
value: "30"
- name: CONFIGMAP_QUOTA
value: "100"
- name: SECRET_QUOTA
value: "100"
14 changes: 14 additions & 0 deletions deploy/templates/nstemplatetiers/appstudiolarge/based_on_tier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from: appstudio
parameters:
- name: REPLICASET_QUOTA
value: "100"
- name: DEPLOYMENT_QUOTA
value: "100"
- name: ROUTE_QUOTA
value: "100"
- name: SERVICE_QUOTA
value: "100"
- name: CONFIGMAP_QUOTA
value: "300"
- name: SECRET_QUOTA
value: "300"
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var expectedProdTiers = map[string]bool{
"baseextendedidling": true,
"test": false,
"appstudio": false,
"appstudiolarge": true,
"appstudio-env": false,
}

Expand Down

0 comments on commit f08f06a

Please sign in to comment.