refactor(tekton): own shared CI policies in platform
This commit is contained in:
1 parent
67356b1489
commit
083eae7f8c
5 files changed
+91
-8
No files matched your search
@@ -0,0 +1,42 @@
|
||||
# Preserve the existing names so Argo CD can adopt the shared policies in place.
|
||||
# These policies apply to all services in tekton-ci, not only lolympus.
|
||||
apiVersion: v1
|
||||
kind: ResourceQuota
|
||||
metadata:
|
||||
name: lolympus-ci
|
||||
namespace: tekton-ci
|
||||
labels:
|
||||
app.kubernetes.io/name: tekton-ci
|
||||
app.kubernetes.io/part-of: tekton-ci
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
spec:
|
||||
hard:
|
||||
pods: "20"
|
||||
# Reserve room for new runs between pruning the completed history to 10 runs.
|
||||
persistentvolumeclaims: "15"
|
||||
# Tekton steps run sequentially, but quota sums their container limits.
|
||||
# Bound compute requests here; retain per-container limits in Tasks/LimitRange.
|
||||
requests.cpu: "8"
|
||||
requests.memory: 16Gi
|
||||
requests.storage: 150Gi
|
||||
count/pipelineruns.tekton.dev: "15"
|
||||
count/taskruns.tekton.dev: "150"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: LimitRange
|
||||
metadata:
|
||||
name: lolympus-ci
|
||||
namespace: tekton-ci
|
||||
labels:
|
||||
app.kubernetes.io/name: tekton-ci
|
||||
app.kubernetes.io/part-of: tekton-ci
|
||||
app.kubernetes.io/managed-by: argocd
|
||||
spec:
|
||||
limits:
|
||||
- type: Container
|
||||
defaultRequest:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
default:
|
||||
cpu: "2"
|
||||
memory: 4Gi
|
||||
@@ -4,3 +4,4 @@ resources:
|
||||
- tektonconfig.yaml
|
||||
- ingress.yaml
|
||||
- eventlistener-rbac.yaml
|
||||
- ci-resource-policy.yaml
|
||||
@@ -9,9 +9,9 @@ spec:
|
||||
readonly: false
|
||||
pruner:
|
||||
disabled: false
|
||||
schedule: "15 * * * *"
|
||||
schedule: "*/15 * * * *"
|
||||
resources:
|
||||
- taskrun
|
||||
- pipelinerun
|
||||
keep: 5
|
||||
prune-per-resource: true
|
||||
# Keep the newest completed runs across each namespace; child resources follow their owner.
|
||||
keep: 10
|
||||
prune-per-resource: false
|
||||
Reference in new issue
Block a user