mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-01 07:27:29 +00:00
[SIS-xxx] switching local deployment to use postgres chart instead
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,6 +21,8 @@ target/
|
|||||||
*.tar.gz
|
*.tar.gz
|
||||||
*.rar
|
*.rar
|
||||||
|
|
||||||
|
Chart.lock
|
||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||||
hs_err_pid*
|
hs_err_pid*
|
||||||
|
|
||||||
|
|||||||
3
.tiltignore
Normal file
3
.tiltignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
*.tgz
|
||||||
|
tilt/sissi-dev/tmpcharts/
|
||||||
|
tilt/sissi-dev/charts/*.tgz
|
||||||
3
Tiltfile
3
Tiltfile
@@ -38,7 +38,8 @@ docker_build(registry + 'sissi-private-rest-api', 'deployment/image-packaging/sr
|
|||||||
docker_build(registry + 'sissi-template-data', 'deployment/image-packaging/src/main/docker/template-data/')
|
docker_build(registry + 'sissi-template-data', 'deployment/image-packaging/src/main/docker/template-data/')
|
||||||
|
|
||||||
|
|
||||||
k8s_yaml(helm('deployment/helm/sissi', values=
|
local('cd tilt/sissi-dev && helm dep up')
|
||||||
|
k8s_yaml(helm('tilt/sissi-dev', values=
|
||||||
['./../Sissi-environments/argocd/apps/sissi/values/local/values.yaml',
|
['./../Sissi-environments/argocd/apps/sissi/values/local/values.yaml',
|
||||||
'secrets://./../Sissi-environments/argocd/apps/sissi/values/local/values.secrets.yaml']
|
'secrets://./../Sissi-environments/argocd/apps/sissi/values/local/values.secrets.yaml']
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ spring.datasource.url=jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME}
|
|||||||
spring.datasource.username= ${DB_USER}
|
spring.datasource.username= ${DB_USER}
|
||||||
spring.datasource.password= ${DB_PASS}
|
spring.datasource.password= ${DB_PASS}
|
||||||
spring.datasource.hikari.maximum-pool-size=${hikariPoolSize}
|
spring.datasource.hikari.maximum-pool-size=${hikariPoolSize}
|
||||||
spring.jpa.hibernate.default_schema=abstracto
|
spring.jpa.hibernate.default_schema=${DB_SCHEMA}
|
||||||
spring.jpa.properties.hibernate.default_schema=abstracto
|
spring.jpa.properties.hibernate.default_schema=${DB_SCHEMA}
|
||||||
spring.quartz.jdbc.initialize-schema=never
|
spring.quartz.jdbc.initialize-schema=never
|
||||||
management.metrics.tags.application=Sissi
|
management.metrics.tags.application=Sissi
|
||||||
management.endpoint.health.probes.enabled=true
|
management.endpoint.health.probes.enabled=true
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: db-config-deployment-job
|
- name: db-config-deployment-job
|
||||||
image: "{{ $.Values.dbConfigDeployment.repository }}/{{ $.Values.dbConfigDeployment.image }}:{{ $.Values.dbConfigDeployment.tag | default .Chart.AppVersion}}"
|
image: "{{ $.Values.dbConfigDeployment.repository }}/{{ $.Values.dbConfigDeployment.image }}:{{ $.Values.dbConfigDeployment.tag | default .Chart.Version }}"
|
||||||
imagePullPolicy: {{ $.Values.dbConfigDeployment.pullPolicy }}
|
imagePullPolicy: {{ $.Values.dbConfigDeployment.pullPolicy }}
|
||||||
args:
|
args:
|
||||||
- "/var/db-config/"
|
- "/var/db-config/"
|
||||||
@@ -48,7 +48,7 @@ spec:
|
|||||||
name: db-credentials
|
name: db-credentials
|
||||||
key: dbName
|
key: dbName
|
||||||
- name: DB_SCHEME
|
- name: DB_SCHEME
|
||||||
value: "abstracto"
|
value: {{ .Values.dbCredentials.schema }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/var/db-config/"
|
- mountPath: "/var/db-config/"
|
||||||
name: database-config-mount
|
name: database-config-mount
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.bot.repository }}/{{ .Values.bot.image }}:{{ .Values.bot.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.bot.repository }}/{{ .Values.bot.image }}:{{ .Values.bot.tag | default .Chart.Version }}"
|
||||||
imagePullPolicy: {{ .Values.bot.pullPolicy }}
|
imagePullPolicy: {{ .Values.bot.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: DB_PASS
|
- name: DB_PASS
|
||||||
@@ -57,6 +57,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: db-credentials
|
name: db-credentials
|
||||||
key: dbName
|
key: dbName
|
||||||
|
- name: DB_SCHEMA
|
||||||
|
value: {{ .Values.dbCredentials.schema }}
|
||||||
- name: DEBRA_DONATION_NOTIFICATION_SERVER_ID
|
- name: DEBRA_DONATION_NOTIFICATION_SERVER_ID
|
||||||
value: "297910194841583616"
|
value: "297910194841583616"
|
||||||
- name: TOKEN
|
- name: TOKEN
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: template-deployment-job
|
- name: template-deployment-job
|
||||||
image: "{{ $.Values.templateDeployment.repository }}/{{ $.Values.templateDeployment.image }}:{{ $.Values.templateDeployment.tag | default .Chart.AppVersion }}"
|
image: "{{ $.Values.templateDeployment.repository }}/{{ $.Values.templateDeployment.image }}:{{ $.Values.templateDeployment.tag | default .Chart.Version }}"
|
||||||
imagePullPolicy: {{ $.Values.templateDeployment.pullPolicy }}
|
imagePullPolicy: {{ $.Values.templateDeployment.pullPolicy }}
|
||||||
args:
|
args:
|
||||||
- "/var/template-config/"
|
- "/var/template-config/"
|
||||||
@@ -48,7 +48,7 @@ spec:
|
|||||||
name: db-credentials
|
name: db-credentials
|
||||||
key: dbName
|
key: dbName
|
||||||
- name: DB_SCHEME
|
- name: DB_SCHEME
|
||||||
value: "abstracto."
|
value: "{{ .Values.dbCredentials.schema }}."
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: "/var/template-config/"
|
- mountPath: "/var/template-config/"
|
||||||
name: template-config-mount
|
name: template-config-mount
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ dbCredentials:
|
|||||||
userName: null
|
userName: null
|
||||||
password: null
|
password: null
|
||||||
name: null
|
name: null
|
||||||
|
schema: abstracto
|
||||||
grafanaDeployment:
|
grafanaDeployment:
|
||||||
repository: harbor.sheldan.dev/grafana-tools
|
repository: harbor.sheldan.dev/grafana-tools
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|||||||
11
tilt/sissi-dev/Chart.yaml
Normal file
11
tilt/sissi-dev/Chart.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
description: sissi dev chart
|
||||||
|
name: sissi-dev
|
||||||
|
version: 1.0.0
|
||||||
|
dependencies:
|
||||||
|
- name: sissi
|
||||||
|
repository: file://../../deployment/helm/sissi
|
||||||
|
version: ">= 0.0.1"
|
||||||
|
- name: postgresql
|
||||||
|
repository: oci://registry-1.docker.io/bitnamicharts
|
||||||
|
version: 12.12.10 # 13.x.x uses postgresql 16.x
|
||||||
Reference in New Issue
Block a user