Adding default limitsranges configuration
This commit is contained in:
parent
b3526d3c4f
commit
9ea60c64c6
2 changed files with 37 additions and 0 deletions
17
config/app/limits-ranges.yaml
Normal file
17
config/app/limits-ranges.yaml
Normal 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
20
config/ks.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue