1
0
Fork 0

feat: add quoats

This commit is contained in:
Vojtěch Mareš 2022-09-05 21:27:08 +02:00
parent e7d20864a9
commit 4f0927c6bf
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
6 changed files with 86 additions and 0 deletions

View 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

View 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

View 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

View 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"

View 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

View 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"