Skip to content

Commit

Permalink
turn pgsql into a statefulset
Browse files Browse the repository at this point in the history
  • Loading branch information
StuCM committed May 29, 2024
1 parent 35d866a commit 63fd75a
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 43 deletions.
Binary file added hubs-ce-1.3.8-beta.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion hubs/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.3.7-beta
version: 1.3.8-beta

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
17 changes: 0 additions & 17 deletions hubs/charts/pgsql/templates/persistentvolume.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions hubs/charts/pgsql/templates/persistentvolumeclaim.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "pgsql.fullname" . }}
labels:
Expand All @@ -8,6 +8,7 @@ spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
serviceName: {{ .Chart.Name }}
selector:
matchLabels:
{{- include "pgsql.selectorLabels" . | nindent 6 }}
Expand Down Expand Up @@ -70,4 +71,12 @@ spec:
{{- else }}
hostPath:
path: /tmp/pgsql_data
{{- end }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: postgresql-data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 5Gi
36 changes: 27 additions & 9 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@ entries:
hubs-ce:
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.501366669+01:00"
created: "2024-05-29T11:29:50.764769109+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
repository: ""
description: A Helm chart for setting up Mozilla Hubs on Kubernetes
digest: 8316a805be9edf8dc5525f40558ec6cc5a79fb3fd674709a68b475b177e51d32
icon: https://hubs.mozilla.com/favicon.ico
maintainers:
- email: [email protected]
name: Alex Griggs
name: hubs-ce
type: application
urls:
- hubs-ce-1.3.8-beta.tgz
version: 1.3.8-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-29T11:29:50.762118406+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -21,7 +39,7 @@ entries:
version: 1.3.7-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.498457829+01:00"
created: "2024-05-29T11:29:50.758023763+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -39,7 +57,7 @@ entries:
version: 1.3.6-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.496372521+01:00"
created: "2024-05-29T11:29:50.753551181+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -57,7 +75,7 @@ entries:
version: 1.3.5-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.493677825+01:00"
created: "2024-05-29T11:29:50.749723028+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -75,7 +93,7 @@ entries:
version: 1.3.4-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.491494844+01:00"
created: "2024-05-29T11:29:50.745511182+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -93,7 +111,7 @@ entries:
version: 1.3.3-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.48921552+01:00"
created: "2024-05-29T11:29:50.743184218+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -111,7 +129,7 @@ entries:
version: 1.3.2-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.485956826+01:00"
created: "2024-05-29T11:29:50.740435333+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -129,7 +147,7 @@ entries:
version: 1.3.1-beta
- apiVersion: v2
appVersion: 1.0.0-ce
created: "2024-05-28T17:05:40.483752355+01:00"
created: "2024-05-29T11:29:50.7361047+01:00"
dependencies:
- condition: pgsql.enabled
name: pgsql
Expand All @@ -145,4 +163,4 @@ entries:
urls:
- hubs-ce-1.3.0-beta.tgz
version: 1.3.0-beta
generated: "2024-05-28T17:05:40.481317896+01:00"
generated: "2024-05-29T11:29:50.733237762+01:00"

0 comments on commit 63fd75a

Please sign in to comment.