-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
8e9cc82
commit ca66955
Showing
12 changed files
with
176 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
infrastructure/helm-chart/charts/tools/charts/postgresql/BUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
load("//tools/build:helm.bzl", "helm_ruleset_version") | ||
|
||
helm_ruleset_version( | ||
version = "15.1", | ||
) |
5 changes: 5 additions & 0 deletions
5
infrastructure/helm-chart/charts/tools/charts/postgresql/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v2 | ||
appVersion: "1.0" | ||
description: PostgreSQL Server | ||
name: postgresql | ||
version: 15.1 |
9 changes: 9 additions & 0 deletions
9
infrastructure/helm-chart/charts/tools/charts/postgresql/templates/secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: postgres | ||
labels: | ||
app: postgres | ||
type: Opaque | ||
data: | ||
postgres-password: {{ default (randAlphaNum 32) | b64enc | quote }} |
15 changes: 15 additions & 0 deletions
15
infrastructure/helm-chart/charts/tools/charts/postgresql/templates/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgres | ||
labels: | ||
app: postgres | ||
spec: | ||
type: ClusterIP | ||
clusterIP: None | ||
ports: | ||
- name: postgres | ||
port: {{ .Values.port }} | ||
targetPort: {{ .Values.port }} | ||
selector: | ||
app: postgres |
49 changes: 49 additions & 0 deletions
49
infrastructure/helm-chart/charts/tools/charts/postgresql/templates/statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: postgres | ||
labels: | ||
app: postgres | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: postgres | ||
serviceName: postgres | ||
template: | ||
metadata: | ||
labels: | ||
app: postgres | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: postgres | ||
image: "postgres:{{ .Values.version }}" | ||
imagePullPolicy: "IfNotPresent" | ||
env: | ||
- name: POSTGRES_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: postgres | ||
key: postgres-password | ||
ports: | ||
- name: postgres | ||
containerPort: {{ .Values.port }} | ||
livenessProbe: | ||
tcpSocket: | ||
port: {{ .Values.port }} | ||
initialDelaySeconds: 20 | ||
periodSeconds: 10 | ||
timeoutSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 5 | ||
resources: {{ .Values.resources }} | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: postgres-data | ||
spec: | ||
accessModes: | ||
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: {{ .Values.storage }} |
4 changes: 4 additions & 0 deletions
4
infrastructure/helm-chart/charts/tools/charts/postgresql/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: 15.1 | ||
port: 5432 | ||
storage: "5Gi" | ||
resources: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
load("//tools/build:helm.bzl", "helm_ruleset_version") | ||
|
||
helm_ruleset_version( | ||
version = "7.0.8", | ||
) |
5 changes: 5 additions & 0 deletions
5
infrastructure/helm-chart/charts/tools/charts/redis/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v2 | ||
appVersion: "1.0" | ||
description: Redis Server | ||
name: redis | ||
version: 7.0.8 |
9 changes: 9 additions & 0 deletions
9
infrastructure/helm-chart/charts/tools/charts/redis/templates/secret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: redis | ||
labels: | ||
app: redis | ||
type: Opaque | ||
data: | ||
redis-password: {{ default (randAlphaNum 32) | b64enc | quote }} |
15 changes: 15 additions & 0 deletions
15
infrastructure/helm-chart/charts/tools/charts/redis/templates/service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: redis | ||
labels: | ||
app: redis | ||
spec: | ||
type: ClusterIP | ||
clusterIP: None | ||
ports: | ||
- name: redis | ||
port: {{ .Values.port }} | ||
targetPort: {{ .Values.port }} | ||
selector: | ||
app: redis |
51 changes: 51 additions & 0 deletions
51
infrastructure/helm-chart/charts/tools/charts/redis/templates/statefulset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: redis | ||
labels: | ||
app: redis | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: redis | ||
serviceName: redis | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: redis | ||
image: "redis:{{ .Values.version }}" | ||
imagePullPolicy: "IfNotPresent" | ||
command: | ||
- "redis-server" | ||
env: | ||
- name: REDIS_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: redis | ||
key: redis-password | ||
ports: | ||
- name: redis | ||
containerPort: {{ .Values.port }} | ||
livenessProbe: | ||
tcpSocket: | ||
port: {{ .Values.port }} | ||
initialDelaySeconds: 20 | ||
periodSeconds: 10 | ||
timeoutSeconds: 5 | ||
successThreshold: 1 | ||
failureThreshold: 5 | ||
resources: {{ .Values.resources }} | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: redis-data | ||
spec: | ||
accessModes: | ||
- "ReadWriteOnce" | ||
resources: | ||
requests: | ||
storage: {{ .Values.storage }} |
4 changes: 4 additions & 0 deletions
4
infrastructure/helm-chart/charts/tools/charts/redis/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: 7.0.8 | ||
port: 6379 | ||
storage: "5Gi" | ||
resources: |