Skip to content

Commit

Permalink
Merge pull request #58 from qalita-io/qalita
Browse files Browse the repository at this point in the history
add doc
  • Loading branch information
armandleopold authored Jul 29, 2023
2 parents 1516fd1 + e4d84f4 commit e20e9ad
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 3 deletions.
9 changes: 9 additions & 0 deletions charts/qalita/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
dependencies:
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 12.5.8
- name: seaweedfs
repository: https://seaweedfs.github.io/seaweedfs/helm
version: "3.55"
digest: sha256:fcb29682b74b34f1d62aed162b5348d2ce4efcb73e8b82156c5f2a116b47dd62
generated: "2023-07-29T11:30:04.260376205+02:00"
2 changes: 1 addition & 1 deletion charts/qalita/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Helm chart for QALITA Platform, a platform for managing and monitoring your data quality.
name: qalita
version: "1.0.30"
version: "1.0.31"
icon: https://avatars.githubusercontent.com/u/101010687?s=48&v=4
appVersion: "1.0.0"
home: https://qalita.io
Expand Down
8 changes: 6 additions & 2 deletions charts/qalita/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# QALITA Helm Chart
# QALITA Platform Helm Chart

This chart deploys QALITA on a Kubernetes cluster using the Helm package manager.
<div style="text-align:center;">
<img width="250px" height="auto" src="https://platform.qalita.io/logo.svg" style="max-width:250px;"/>
</div>

This chart deploys QALITA Platform on a Kubernetes cluster using the Helm package manager.

# Quick Start

Expand Down
43 changes: 43 additions & 0 deletions charts/qalita/templates/doc-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Release.Name }}-doc"
labels:
app: "{{ .Release.Name }}-doc"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
{{ include "qalita.labels" . | indent 4 }}
spec:
replicas: {{ .Values.doc.replicaCount }}
selector:
matchLabels:
app: "{{ .Release.Name }}-doc"
release: {{ .Release.Name }}
template:
metadata:
labels:
app: "{{ .Release.Name }}-doc"
release: {{ .Release.Name }}
annotations:
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- name: "doc"
image: "{{ .Values.doc.image.repository }}:{{ .Values.doc.image.tag }}"
imagePullPolicy: {{ .Values.doc.image.pullPolicy }}
{{- if .Values.doc.deployment.env }}
{{ toYaml .Values.doc.deployment.env | indent 10 }}
{{- end }}
ports:
- containerPort: {{ .Values.doc.service.targetPort }}
name: {{ .Values.doc.service.targetPort }}{{ .Values.doc.service.protocol | lower }}
protocol: {{ .Values.doc.service.protocol }}
{{- if .Values.doc.deployment.resources }}
resources:
{{ toYaml .Values.doc.deployment.resources | indent 10 }}
{{- end }}
{{- if .Values.dockerregistry.enabled }}
imagePullSecrets:
- name: "{{ .Release.Name }}-dockerregistry"
{{- end }}
42 changes: 42 additions & 0 deletions charts/qalita/templates/doc-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{- if .Values.doc.ingress.enabled -}}
{{- $serviceName := print .Release.Name "-doc-service" }}
{{- $servicePort := print .Values.doc.service.targetPort .Values.doc.service.protocol | lower -}}

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "{{ .Release.Name }}-doc-ingress"
annotations:
cert-manager.io/cluster-issuer: {{ .Values.cluster.issuer }}
ingress.kubernetes.io/ssl-redirect: "true"
kubernetes.io/ingress.allow-http: "false"
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
labels:
app: "{{ .Release.Name }}-doc"
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
{{- if .Values.doc.ingress.annotations }}
annotations:
{{ toYaml .Values.doc.ingress.annotations | indent 4 }}
{{- end }}
spec:
{{- if .Values.doc.ingress.tls.enabled }}
tls:
- hosts:
- doc.{{ .Values.cluster.domain }}
secretName: doc-cert
{{- end }}
rules:
- host: doc.{{ .Values.cluster.domain }}
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: {{ $serviceName }}
port:
name: {{ $servicePort }}
{{- end -}}
14 changes: 14 additions & 0 deletions charts/qalita/templates/doc-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: "{{ .Release.Name }}-doc-service"
spec:
type: {{ .Values.doc.service.type }}
ports:
- name: {{ .Values.doc.service.targetPort }}{{ .Values.doc.service.protocol | lower }}
port: {{ .Values.doc.service.targetPort }}
protocol: {{ .Values.doc.service.protocol }}
targetPort: {{ .Values.doc.service.targetPort }}{{ .Values.doc.service.protocol | lower }}
selector:
app: "{{ .Release.Name }}-doc"
release: {{ .Release.Name }}
2 changes: 2 additions & 0 deletions charts/qalita/templates/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ spec:
value: "http://{{ .Release.Name }}-backend-service:3080/api/v1"
- name: QALITA_PUBLIC_API_URL
value: "https://api.{{ .Values.cluster.domain }}"
- name: QALITA_PUBLIC_DOC_URL
value: "https://doc.{{ .Values.cluster.domain }}"
{{- if .Values.frontend.deployment.env }}
{{ toYaml .Values.frontend.deployment.env | indent 10 }}
{{- end }}
Expand Down
24 changes: 24 additions & 0 deletions charts/qalita/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,30 @@ frontend:
- name: NEXT_WEBPACK_USEPOLLING
value: "false"

doc:
image:
repository: qalita.azurecr.io/qalita/doc
tag: "1.0.0"
pullPolicy: IfNotPresent

replicaCount: 1

service:
type: ClusterIP
targetPort: "80"
protocol: TCP

ingress:
enabled: true
tls:
enabled: true

deployment:
resources:
requests:
memory: "50mi"
cpu: "50m"

backend:
image:
repository: qalita.azurecr.io/qalita/backend
Expand Down

0 comments on commit e20e9ad

Please sign in to comment.