feat: add quoats
This commit is contained in:
parent
e7d20864a9
commit
4f0927c6bf
6 changed files with 86 additions and 0 deletions
18
_apps/kissj-production-quotas.yml
Normal file
18
_apps/kissj-production-quotas.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: kissj-production-quotas
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: kissj-production
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: kissj
|
||||||
|
source:
|
||||||
|
path: quotas/production
|
||||||
|
repoURL: https://gitlab.mareshq.com/gitops/skautdevs/kissj.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
18
_apps/kissj-staging-quotas.yml
Normal file
18
_apps/kissj-staging-quotas.yml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: kissj-staging-quotas
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: kissj-staging
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: kissj
|
||||||
|
source:
|
||||||
|
path: quotas/staging
|
||||||
|
repoURL: https://gitlab.mareshq.com/gitops/skautdevs/kissj.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
10
quotas/production/compute-resources.yml
Normal file
10
quotas/production/compute-resources.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: compute-resources
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
requests.cpu: 6000m
|
||||||
|
requests.memory: 16384Mi
|
||||||
|
limits.cpu: 8000m
|
||||||
|
limits.memory: 20480Mi
|
||||||
15
quotas/production/kube-objects.yml
Normal file
15
quotas/production/kube-objects.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: kube-objects
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
services.loadbalancers: "0"
|
||||||
|
|
||||||
|
count/deployments.apps: "5"
|
||||||
|
count/statefulsets.apps: "0"
|
||||||
|
count/cronjobs.batch: "0"
|
||||||
|
count/jobs.batch: "5"
|
||||||
|
count/pods: "50"
|
||||||
|
|
||||||
|
count/persistentvolumeclaims: "1"
|
||||||
10
quotas/staging/compute-resources.yml
Normal file
10
quotas/staging/compute-resources.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: compute-resources
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
requests.cpu: 800m
|
||||||
|
requests.memory: 1536Mi
|
||||||
|
limits.cpu: 1200m
|
||||||
|
limits.memory: 2048Mi
|
||||||
15
quotas/staging/kube-objects.yml
Normal file
15
quotas/staging/kube-objects.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ResourceQuota
|
||||||
|
metadata:
|
||||||
|
name: kube-objects
|
||||||
|
spec:
|
||||||
|
hard:
|
||||||
|
services.loadbalancers: "0"
|
||||||
|
|
||||||
|
count/deployments.apps: "5"
|
||||||
|
count/statefulsets.apps: "0"
|
||||||
|
count/cronjobs.batch: "0"
|
||||||
|
count/jobs.batch: "5"
|
||||||
|
count/pods: "20"
|
||||||
|
|
||||||
|
count/persistentvolumeclaims: "1"
|
||||||
Reference in a new issue