Adding default limitsranges configuration

This commit is contained in:
Baptiste Bonnot 2025-04-29 09:58:28 +02:00
parent b3526d3c4f
commit 9ea60c64c6
Signed by: baptiste.bonnot
GPG key ID: 2681291F9206E471
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,17 @@
apiVersion: v1
kind: LimitRange
metadata:
name: cpu-memory-resource-constraint
spec:
limits:
- default: # this section defines default limits
cpu: 500m
memory: 600Mi
defaultRequest: # this section defines default requests
cpu: 500m
memory: 600Mi
# max: # max and min define the limit range
# cpu: "1"
# min:
# cpu: 100m
type: Container

20
config/ks.yaml Normal file
View file

@ -0,0 +1,20 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app tenant-config
namespace: ${TENANT_NAMESPACE}
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./config/app
prune: true
sourceRef:
kind: GitRepository
name: tenant-repos
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m