Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 875635b

Browse files
author
Raymond Augé
authored
Merge pull request #44 from rotty3000/main
configurable service resources
2 parents 8b0628a + c74459e commit 875635b

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

templates/database/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ spec:
4848
readinessProbe:
4949
exec:
5050
command: ["sh", "-c", "pg_isready", "-U", "$POSTGRES_USER"]
51+
{{- with .internal.resources }}
52+
resources:
53+
{{- toYaml . | nindent 12 }}
54+
{{- end }}
5155
volumeMounts:
5256
- mountPath: /var/lib/postgresql/data
5357
name: liferay-database-pvc

templates/objectstorage/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ spec:
9696
timeoutSeconds: 10
9797
successThreshold: 1
9898
failureThreshold: 3
99+
{{- with .internal.resources }}
100+
resources:
101+
{{- toYaml . | nindent 12 }}
102+
{{- end }}
99103
volumeMounts:
100104
- mountPath: /tmp
101105
name: liferay-objectstorage-pvc

templates/search/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ spec:
8888
readinessProbe:
8989
tcpSocket:
9090
port: search
91+
{{- with .internal.resources }}
92+
resources:
93+
{{- toYaml . | nindent 12 }}
94+
{{- end }}
9195
volumeMounts:
9296
- mountPath: /usr/share/elasticsearch/config
9397
name: liferay-search-pvc

values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ database:
111111
# Set the number of database replicas (0 or 1 for now)
112112
replicaCount: 1
113113

114+
# This is for setting the resource requests and limits of the pods.
115+
# See: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
116+
resources: {}
117+
114118
# Set the amount of storage requested by the PersistentVolumeClaim
115119
storage: 1Gi
116120

@@ -154,6 +158,10 @@ search:
154158
# Set the number of search replicas (0 or 1 for now)
155159
replicaCount: 1
156160

161+
# This is for setting the resource requests and limits of the pods.
162+
# See: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
163+
resources: {}
164+
157165
# Set the amount of storage requested by the PersistentVolumeClaim
158166
storage: 1Gi
159167

@@ -195,6 +203,10 @@ objectstorage:
195203
# Set the number of objectstorage replicas (0 or 1 for now)
196204
replicaCount: 1
197205

206+
# This is for setting the resource requests and limits of the pods.
207+
# See: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
208+
resources: {}
209+
198210
# Set the amount of storage requested by the PersistentVolumeClaim
199211
storage: 1Gi
200212

0 commit comments

Comments
 (0)