-
Notifications
You must be signed in to change notification settings - Fork 5
Adds Postgres Manifests and removes Postgres Helm Chart dependency #151
Changes from 17 commits
e993d0f
cb67e2a
459320d
7515f92
2a5effb
943f88a
44ae34d
1fe6e87
75c57c6
19ecb7a
524919d
0c3c34f
1f5032a
7e4bd49
090566b
01ead7f
4c3fc01
9a67a17
44c1828
c99230d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v2 | ||
name: illumidesk | ||
version: 5.4.2 | ||
version: 5.5.0 | ||
appVersion: 1.2.0 | ||
description: An extention of the JupyterHub chart with additional IllumiDesk resources | ||
icon: https://configs.illumidesk.com/images/illumidesk-80.png | ||
|
@@ -11,14 +11,6 @@ dependencies: | |
import-values: | ||
- child: rbac | ||
parent: rbac | ||
- name: postgresql | ||
version: "10.1.3" | ||
repository: https://charts.bitnami.com/bitnami | ||
condition: postgresql.enabled | ||
- name: datadog | ||
version: "2.4.29" | ||
repository: https://helm.datadoghq.com | ||
condition: datadog.enabled | ||
maintainers: | ||
- name: IllumiDesk Team | ||
email: [email protected] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ if .Values.illumideskSettings.enabled }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: hub-illumidesk-secret | ||
namespace: {{ .Release.Namespace }} | ||
type: Opaque | ||
stringData: | ||
JUPYTERHUB_API_TOKEN: {{ .Values.illumideskSettings.jupyterhubAPIToken | default "" | b64enc | quote }} | ||
JUPYTERHUB_CRYPT_KEY: {{ .Values.illumideskSettings.jupyterhubCryptKey | default "" | b64enc | quote }} | ||
POSTGRES_JUPYTERHUB_PASSWORD: {{ .Values.illumideskSettings.postgresHubPassword | default "postgres" | quote}} | ||
NBGRADER_PASSWORD: {{ .Values.illumideskSettings.postgresGraderPassword | default "postgres" | quote}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency, we should change this value to |
||
LTI_SHARED_SECRET: {{ .Values.illumideskSettings.ltiSharedSecret | default "" | b64enc | quote }} | ||
OIDC_CLIENT_SECRET: {{ .Values.illumideskSettings.oidcClientSecret | default "" | b64enc | quote }} | ||
{{ end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{{ if not (hasKey .Values.illumideskSettings "externalHost") }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: postgres-{{ .Release.Namespace }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: postgres-{{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: postgres-{{ .Release.Namespace }} | ||
replicas: 1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 25% | ||
maxUnavailable: 25% | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: postgres-{{ .Release.Namespace }} | ||
spec: | ||
containers: | ||
- name: postgres | ||
image: postgres:10.4 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove requests values and set limits to have an upper bound limit. We should also surface these settings in our |
||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
env: | ||
- name: POSTGRES_DB | ||
valueFrom: | ||
configMapKeyRef: | ||
name: hub-illumidesk-cm | ||
key: POSTGRES_JUPYTERHUB_DB | ||
- name: POSTGRES_USER | ||
valueFrom: | ||
configMapKeyRef: | ||
name: hub-illumidesk-cm | ||
key: POSTGRES_NBGRADER_USER | ||
- name: POSTGRES_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: hub-illumidesk-secret | ||
key: NBGRADER_PASSWORD | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change to |
||
ports: | ||
- containerPort: 5432 | ||
volumeMounts: | ||
- mountPath: /var/lib/postgresql/data | ||
name: postgredb | ||
volumes: | ||
- name: postgredb | ||
persistentVolumeClaim: | ||
claimName: postgres-pv-claim-{{ .Release.Namespace }} | ||
restartPolicy: Always | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgres-{{ .Release.Namespace }} | ||
labels: | ||
app: postgres-{{ .Release.Namespace }} | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 5432 | ||
selector: | ||
app: postgres-{{ .Release.Namespace }} | ||
|
||
{{ end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{ if not (hasKey .Values.illumideskSettings "externalHost") }} | ||
kind: PersistentVolume | ||
apiVersion: v1 | ||
metadata: | ||
name: postgres-pv-volume-{{.Release.Namespace }} | ||
labels: | ||
type: local | ||
app: postgres | ||
spec: | ||
storageClassName: manual | ||
capacity: | ||
storage: 5Gi | ||
accessModes: | ||
- ReadWriteMany | ||
hostPath: | ||
path: "/mnt/data" | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: postgres-pv-claim-{{.Release.Namespace }} | ||
labels: | ||
app: postgres | ||
spec: | ||
storageClassName: manual | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
|
||
{{ end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our graderservice source code only understands
POSTGRES_NBGRADER_PASSWORD
.