Try to fix tasko
This commit is contained in:
parent
475ca84c4f
commit
d807222bd6
@ -31,7 +31,7 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-postgres
|
- name: wait-for-postgres
|
||||||
image: busybox:1.35
|
image: busybox:1.35
|
||||||
command: ['sh', '-c', 'until nc -z {{ include "tasko.fullname" . }}-postgresql 5432; do echo waiting for postgres; sleep 2; done;']
|
command: ['sh', '-c', 'until nc -z {{ include "tasko.fullname" . }}-db-headless {{ .Values.postgres.port | default 5432 }}; do echo waiting for postgres; sleep 2; done;']
|
||||||
containers:
|
containers:
|
||||||
- name: backend
|
- name: backend
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|||||||
@ -6,4 +6,8 @@ metadata:
|
|||||||
{{- include "tasko.labels" . | nindent 4 }}
|
{{- include "tasko.labels" . | nindent 4 }}
|
||||||
type: Opaque
|
type: Opaque
|
||||||
stringData:
|
stringData:
|
||||||
|
{{- if .Values.postgres }}
|
||||||
|
database-url: "postgresql://{{ .Values.postgres.user }}:{{ .Values.postgres.password }}@{{ include "tasko.fullname" . }}-db-headless:{{ .Values.postgres.port }}/{{ .Values.postgres.database }}"
|
||||||
|
{{- else if .Values.postgresql }}
|
||||||
database-url: "postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ include "tasko.fullname" . }}-postgresql:5432/{{ .Values.postgresql.auth.database }}"
|
database-url: "postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ include "tasko.fullname" . }}-postgresql:5432/{{ .Values.postgresql.auth.database }}"
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
global:
|
global:
|
||||||
namespace: my-apps
|
namespace: my-apps
|
||||||
imagePullSecrets: []
|
|
||||||
|
|
||||||
imagePullSecrets: []
|
|
||||||
|
|
||||||
# Backend configuration
|
# Backend configuration
|
||||||
backend:
|
backend:
|
||||||
@ -93,8 +90,13 @@ postgres:
|
|||||||
password: tasko_password
|
password: tasko_password
|
||||||
database: tasko_db
|
database: tasko_db
|
||||||
port: 5432
|
port: 5432
|
||||||
|
service:
|
||||||
|
type: ClusterIP
|
||||||
|
port: 5432
|
||||||
|
targetPort: 5432
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
size: 8Gi
|
size: 8Gi
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
resources:
|
resources:
|
||||||
@ -104,3 +106,7 @@ postgres:
|
|||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
|
|
||||||
|
# Use default ServiceAccount (has harbor-creds imagePullSecret)
|
||||||
|
serviceAccount:
|
||||||
|
create: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user