UNCLASSIFIED

Commit 01b484fa authored by Branden Cobb's avatar Branden Cobb
Browse files

Merge branch 'resource-limits-requests' into 'main'

Resource limits and requests

See merge request !51
parents 299f2dc4 ea6bcf41
Pipeline #434361 passed with stages
in 6 minutes and 26 seconds
......@@ -3,6 +3,14 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
## [0.1.8-bb.0] - 2021-08-18
### Added
- default user value set to null
- Set replica count to 1
- Resource requests and limits for all containers
- Updated to latest Minio and Minio Operator dependency
- Updated Gluon test library
## [0.1.7-bb.1] - 2021-07-23
### Changed
- Updated to latest IronBank image 5.37.0
......
......@@ -4,9 +4,9 @@ dependencies:
version: 10.3.5
- name: minio-instance
repository: file://./deps/minio
version: 4.1.2-bb.3
version: 4.1.2-bb.5
- name: gluon
repository: oci://registry.dso.mil/platform-one/big-bang/apps/library-charts/gluon
version: 0.1.1
digest: sha256:4f58bc0a89971b5e64c0fd8d57d8cee0a116fd8bd62315722a6fea37fdfd44e3
generated: "2021-07-27T10:06:13.1849167-06:00"
version: 0.2.3
digest: sha256:cde5de559ca3093d910f05987ba958d2310f93546e486d6b36e5049879ffd781
generated: "2021-08-18T11:24:54.7908191-06:00"
......@@ -2,7 +2,7 @@
apiVersion: v2
name: mattermost
type: application
version: "0.1.7-bb.1"
version: "0.1.8-bb.0"
appVersion: "5.37.0"
description: "Deployment of mattermost"
keywords:
......@@ -17,10 +17,10 @@ dependencies:
condition: postgresql.install
repository: file://./deps/postgresql
- name: minio-instance
version: 4.1.2-bb.3
version: 4.1.2-bb.5
alias: minio
condition: minio.install
repository: file://./deps/minio
- name: gluon
version: 0.1.1
version: 0.2.3
repository: oci://registry.dso.mil/platform-one/big-bang/apps/library-charts/gluon
apiVersion: v2
type: application
name: minio-instance
version: 4.1.2-bb.3
version: 4.1.2-bb.5
appVersion: v4.1.2
description: A Helm chart for MinIO based on Minio Operator 4.1.2
home: https://min.io
......
......@@ -5,7 +5,7 @@ metadata:
upstream:
type: git
git:
commit: 2ac9e5bf5aaaa414ea9790b2057d42e30b86df92
commit: 1176a5f860ff5580d3feb1ba2ff24e5522487416
repo: https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio
directory: /chart
ref: 4.1.2-bb.3
ref: 4.1.2-bb.5
......@@ -15,4 +15,8 @@ spec:
ports:
- port: 53
protocol: UDP
{{- if .Values.openshift }}
- port: 5353
protocol: UDP
{{- end }}
{{- end }}
......@@ -115,9 +115,6 @@ tenants:
## here: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity.
#affinity: {}
## Configure resource requests and limits for MinIO containers
#resources: {}
## Configure security context
## BB Note: Defaults for Ironbank image are 1001 for user, group, and fsGroup
#securityContext:
......@@ -148,7 +145,14 @@ tenants:
## here: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity.
affinity: {}
## Configure resource requests and limits for MinIO containers
resources: {}
resources:
requests:
cpu: 250m
memory: 2Gi
limits:
cpu: 250m
memory: 2Gi
## Configure security context
## BB Note: Defaults for Ironbank image are 1001 for user, group, and fsGroup
securityContext:
......@@ -235,3 +239,5 @@ tenants:
salt: SECRET
accessKey: YOURCONSOLEACCESS
secretKey: YOURCONSOLESECRET
openshift: false
......@@ -615,10 +615,13 @@ readReplicas:
enabled: true
# Override the resource configuration for read replicas
resources: {}
# requests:
# memory: 256Mi
# cpu: 250m
resources:
requests:
memory: 256Mi
cpu: 250m
limits:
memory: 256Mi
cpu: 250m
## Configure resource requests and limits
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
......@@ -627,6 +630,9 @@ resources:
requests:
memory: 256Mi
cpu: 250m
limits:
memory: 256Mi
cpu: 250m
## Add annotations to all the deployed resources
##
......@@ -728,7 +734,13 @@ tls:
##
metrics:
enabled: false
# resources: {}
resources:
requests:
memory: 256Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 100m
service:
type: ClusterIP
annotations:
......
......@@ -36,5 +36,12 @@ spec:
attempt_counter=$(($attempt_counter+1))
sleep 10
done
mc mb bigbang/mattermost
mc mb bigbang/mattermost
resources:
requests:
memory: 256Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 100m
{{- end }}
......@@ -16,8 +16,11 @@ spec:
size: {{ .Values.users }}users
version: {{ .Values.image.tag }}
{{- if .Values.enterprise.enabled }}
replicas: {{ .Values.replicaCount }}
{{- else }}
replicas: 1
{{- end }}
{{- if .Values.istio.chat.hosts }}
ingressName: {{ tpl (index .Values.istio.chat.hosts 0) $ }}
{{- else }}
......@@ -140,9 +143,10 @@ spec:
periodSeconds: 120
scheduling:
{{- with .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 6 }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | nindent 6 }}
......
......@@ -44,9 +44,9 @@ global:
- name: private-registry
# Mattermost instance desired replicas
replicaCount: 3
replicaCount: 1
users: 100 # Allowable: 100, 1000, 5000, 10000, 25000
users: null # Allowable: 100, 1000, 5000, 10000, 25000
enterprise:
enabled: false
......@@ -57,13 +57,13 @@ enterprise:
nameOverride: ""
resources: {}
# limits:
# cpu: 500m
# memory: 512Mi
# requests:
# cpu: 250m
# memory: 256Mi
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 2
memory: 4Gi
affinity: {}
# podAntiAffinity:
......
......@@ -6,4 +6,4 @@ mattermostoperator:
miniooperator:
git: "https://repo1.dso.mil/platform-one/big-bang/apps/application-utilities/minio-operator.git"
namespace: "minio-operator"
branch: "4.1.2-bb.1"
branch: "4.1.2-bb.2"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment