mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Start to write a helm chart for Human Connection
This commit is contained in:
parent
889a7cdd24
commit
caf2bc79cf
@ -1,5 +1,5 @@
|
||||
apiVersion: v1
|
||||
appVersion: "1.0"
|
||||
description: A Helm chart for Kubernetes
|
||||
description: A Helm chart for Human Connection
|
||||
name: human-connection
|
||||
version: 0.1.0
|
||||
|
||||
@ -3,19 +3,17 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-configmap
|
||||
dath:
|
||||
SMTP_HOST: "mailserver.human-connection"
|
||||
SMTP_PORT: "25"
|
||||
GRAPHQL_PORT: "4000"
|
||||
GRAPHQL_URI: "http://nitro-backend.human-connection:4000"
|
||||
NEO4J_URI: "bolt://nitro-neo4j.human-connection:7687"
|
||||
NEO4J_AUTH: "none"
|
||||
GRAPHQL_URI: "http://{{ .Release.Name }}-backend:4000"
|
||||
NEO4J_URI: "bolt://{{ .Release.Name }}-neo4j:7687"
|
||||
CLIENT_URI: "https://{{ .Values.domain }}"
|
||||
NEO4J_apoc_import_file_enabled: "true"
|
||||
NEO4J_dbms_memory_pagecache_size: "490M"
|
||||
NEO4J_dbms_memory_heap_max__size: "500M"
|
||||
NEO4J_dbms_memory_heap_initial__size: "500M"
|
||||
NEO4J_dbms_security_procedures_unrestricted: "algo.*,apoc.*"
|
||||
VERSION: "0.1.0"
|
||||
SENTRY_DSN_WEBAPP: ""
|
||||
SENTRY_DSN_BACKEND: ""
|
||||
COMMIT: ""
|
||||
NEO4J_apoc_import_file_enabled: {{ .Values.neo4j.apoc_import_file_enabled }}
|
||||
NEO4J_dbms_memory_pagecache_size: {{ .Values.neo4j.dbms_memory_pagecache_size }}
|
||||
NEO4J_dbms_memory_heap_max__size: {{ .Values.neo4j.dbms_memory_heap_max__size }}
|
||||
NEO4J_dbms_memory_heap_initial__size: {{ .Values.neo4j.dbms_memory_heap_initial__size }}
|
||||
NEO4J_dbms_security_procedures_unrestricted: {{ .Values.neo4j.dbms_security_procedures_unrestricted }}
|
||||
VERSION: {{ .Chart.AppVersion }}
|
||||
SENTRY_DSN_WEBAPP: {{ .Values.sentry.dsn_webapp }}
|
||||
SENTRY_DSN_BACKEND: {{ .Values.sentry.dsn_backend }}
|
||||
COMMIT: {{ .Values.commit }}
|
||||
SMTP_HOST: {{ .Values.smtp.host }}
|
||||
SMTP_PORT: {{ .Values.smtp.port }}
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-backend
|
||||
spec:
|
||||
replicas: 1
|
||||
minReadySeconds: 15
|
||||
progressDeadlineSeconds: 60
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 0
|
||||
maxUnavailable: "100%"
|
||||
selector:
|
||||
matchLabels:
|
||||
human-connection.org/selector: deployment-backend
|
||||
template:
|
||||
metadata:
|
||||
name: deployment-backend
|
||||
annotations:
|
||||
backup.velero.io/backup-volumes: uploads
|
||||
labels:
|
||||
human-connection.org/commit: {{ .Values.commit }}
|
||||
human-connection.org/selector: deployment-backend
|
||||
spec:
|
||||
containers:
|
||||
- name: backend
|
||||
image: humanconnection/nitro-backend:latest
|
||||
imagePullPolicy: {{ .Values.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: 4000
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ .Release.Name }}-configmap
|
||||
- secretRef:
|
||||
name: {{ .Release.Name }}-secrets
|
||||
# volumeMounts:
|
||||
# - mountPath: /nitro-backend/public/uploads
|
||||
# name: uploads
|
||||
# volumes:
|
||||
# - name: uploads
|
||||
# persistentVolumeClaim:
|
||||
# claimName: uploads-claim
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
status: {}
|
||||
@ -1 +1,32 @@
|
||||
domain: nitro-staging.human-connection.org
|
||||
commit: 889a7cdd24dda04a139b2b77d626e984d6db6781
|
||||
pullPolicy: Always
|
||||
|
||||
# configs
|
||||
smtp:
|
||||
host: "mailserver.human-connection"
|
||||
port: "25"
|
||||
neo4j:
|
||||
apoc_import_file_enabled: "true"
|
||||
dbms_memory_pagecache_size: "490M"
|
||||
dbms_memory_heap_max__size: "500M"
|
||||
dbms_memory_heap_initial__size: "500M"
|
||||
dbms_security_procedures_unrestricted: "algo.*,apoc.*"
|
||||
sentry:
|
||||
dsn_webapp:
|
||||
dsn_backend:
|
||||
|
||||
# secrets
|
||||
jwt_secret: b/&&7b78BF&fv/Vd
|
||||
private_key_passphrase: a7dsf78sadg87ad87sfagsadg78
|
||||
mapbox:
|
||||
token: pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ
|
||||
mongodb:
|
||||
username:
|
||||
password:
|
||||
neo4j:
|
||||
username:
|
||||
password:
|
||||
smtp:
|
||||
username:
|
||||
password:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user