Files

43 lines
1.2 KiB
YAML

# 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