1
0
Fork 0

ajust limits and requests

This commit is contained in:
Massaki Archambault 2021-12-26 01:58:38 -05:00
parent 908899b2cd
commit 7b83a3009b
9 changed files with 24 additions and 34 deletions

View File

@ -38,11 +38,11 @@ spec:
containerPort: 3000 containerPort: 3000
resources: resources:
requests: requests:
cpu: 250m cpu: 100m
memory: 250Mi memory: 100Mi
limits: limits:
cpu: 500m cpu: 100m
memory: 500Mi memory: 250Mi
--- ---
kind: Role kind: Role
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1

View File

@ -57,10 +57,10 @@ spec:
resources: resources:
requests: requests:
cpu: 250m cpu: 250m
memory: 250Mi memory: 100Mi
limits: limits:
cpu: 500m cpu: 250m
memory: 500Mi memory: 250Mi
volumeMounts: volumeMounts:
- mountPath: /data - mountPath: /data
name: drone-server-pv name: drone-server-pv

View File

@ -43,11 +43,11 @@ spec:
containerPort: 22 containerPort: 22
resources: resources:
requests: requests:
cpu: 250m
memory: 250Mi
limits:
cpu: 500m cpu: 500m
memory: 500Mi memory: 500Mi
limits:
cpu: 750m
memory: 750Mi
volumeMounts: volumeMounts:
- name: gitea-pv - name: gitea-pv
mountPath: /data mountPath: /data

View File

@ -59,10 +59,10 @@ spec:
resources: resources:
requests: requests:
cpu: 250m cpu: 250m
memory: 500Mi memory: 250Mi
limits: limits:
cpu: 500m cpu: 500m
memory: 750Mi memory: 500Mi
volumeMounts: volumeMounts:
- name: grafana-datasources - name: grafana-datasources
mountPath: /etc/grafana/provisioning/datasources mountPath: /etc/grafana/provisioning/datasources

View File

@ -26,11 +26,11 @@ spec:
- $(ACCOUNTS) - $(ACCOUNTS)
resources: resources:
requests: requests:
memory: 128Mi
cpu: 100m cpu: 100m
memory: 100Mi
limits: limits:
memory: 128Mi cpu: 100m
cpu: 500m memory: 100Mi
ports: ports:
- containerPort: 9865 - containerPort: 9865
name: http-metrics name: http-metrics

View File

@ -66,24 +66,14 @@ spec:
containerPort: 80 containerPort: 80
resources: resources:
requests: requests:
cpu: 2000m cpu: 1000m
memory: 1Gi memory: 1Gi
limits: limits:
cpu: 4000m cpu: 2000m
memory: 1.5Gi memory: 2Gi
volumeMounts: volumeMounts:
- name: nextcloud-pv - name: nextcloud-pv
mountPath: /var/www/html mountPath: /var/www/html
# - name: nextcloud-cron
# image: badjware/nextcloud-tweak
# command: ['cron', '-f']
# volumeMounts:
# - name: nextcloud-pv
# mountPath: /var/www/html
# resources:
# limits:
# cpu: 250m
# memory: 250Mi
volumes: volumes:
- name: nextcloud-pv - name: nextcloud-pv
persistentVolumeClaim: persistentVolumeClaim:

View File

@ -41,7 +41,7 @@ spec:
containerPort: 5432 containerPort: 5432
resources: resources:
requests: requests:
cpu: 500m cpu: 250m
memory: 1Gi memory: 1Gi
limits: limits:
cpu: 1000m cpu: 1000m

View File

@ -18,7 +18,7 @@ spec:
monitor: prometheus monitor: prometheus
resources: resources:
requests: requests:
cpu: 750m cpu: 500m
memory: 2Gi memory: 2Gi
limits: limits:
cpu: 1000m cpu: 1000m

View File

@ -29,11 +29,11 @@ spec:
containerPort: 6379 containerPort: 6379
resources: resources:
requests: requests:
cpu: 500m cpu: 250m
memory: 500Mi memory: 250Mi
limits: limits:
cpu: 1000m cpu: 500m
memory: 1Gi memory: 250Mi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service