Skip to content

Commit 6e676ab

Browse files
committed
feat: git import
1 parent ab8d981 commit 6e676ab

File tree

11 files changed

+72
-11
lines changed

11 files changed

+72
-11
lines changed

helm/modelix/Chart.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ dependencies:
55
- name: cert-manager
66
repository: https://charts.jetstack.io
77
version: v1.11.0
8-
digest: sha256:e1c91b6cbbad23e6af7930b3723474ada0ccc66de0e5aadfcceb305168434c65
9-
generated: "2023-05-02T15:38:43.774893577+02:00"
8+
- name: kestra
9+
repository: https://helm.kestra.io/
10+
version: 0.22.2
11+
digest: sha256:210d98f2461c18107f8ca4f0b9f959b0a9e411d00ff4f5dda5f9923058f42033
12+
generated: "2025-04-15T14:33:52.414036+02:00"

helm/modelix/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ dependencies:
3333
version: v1.11.0
3434
repository: https://charts.jetstack.io
3535
condition: certmanager.enabled
36+
- name: kestra
37+
repository: https://helm.kestra.io/
38+
version: 0.22.2
317 KB
Binary file not shown.

helm/modelix/templates/common/model-deployment.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ spec:
3131
value: /secrets/jwk/wsmanager/workspace-manager-public.pem
3232
- name: "MODELIX_JWK_FILE_INSTANCES_MANAGER"
3333
value: /secrets/jwk/instancesmanager/instances-manager-public.pem
34+
- name: MODELIX_AUTHORIZATION_URI
35+
value: "{{ include "modelix.externalKeycloakUrl" . }}realms/{{ .Values.keycloak.realm }}/protocol/openid-connect/auth"
36+
- name: MODELIX_TOKEN_URI
37+
value: "{{ include "modelix.externalKeycloakUrl" . }}realms/{{ .Values.keycloak.realm }}/protocol/openid-connect/token"
38+
- name: MODELIX_PERMISSION_CHECKS_ENABLED
39+
value: "true"
40+
- name: JAVA_OPTS
41+
value: "-Xms1000m -Xmx1000m"
3442
{{- include "modelix.authorizationConfig" . | nindent 12 }}
3543
image: "{{ .Values.dockerProxy.prefix }}modelix/model-server:{{ .Values.imageTags.model | default .Values.versions.modelix.core }}"
3644
imagePullPolicy: IfNotPresent
@@ -41,10 +49,10 @@ spec:
4149
name: "jvm-debug"
4250
resources:
4351
requests:
44-
memory: "800Mi"
52+
memory: "2000Mi"
4553
cpu: "0.1"
4654
limits:
47-
memory: "800Mi"
55+
memory: "2000Mi"
4856
cpu: "1.0"
4957
readinessProbe:
5058
httpGet:

helm/modelix/templates/common/oauth-deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
{{- include "modelix.selectorLabels" . | nindent 8 }}
2525
spec:
2626
containers:
27-
- image: "{{ .Values.dockerProxy.prefix }}redis:7.0.2"
27+
- image: "{{ .Values.dockerProxy.prefix }}redis:7.4.2"
2828
name: redis
2929
resources:
3030
requests:
@@ -45,7 +45,7 @@ spec:
4545
initialDelaySeconds: 3
4646
periodSeconds: 10
4747
timeoutSeconds: 5
48-
- image: "{{ default .Values.dockerProxy.prefix "quay.io/" }}oauth2-proxy/oauth2-proxy:{{ .Values.imageTags.oauth | default "v7.8.1" }}"
48+
- image: "{{ default .Values.dockerProxy.prefix "quay.io/" }}oauth2-proxy/oauth2-proxy:{{ .Values.imageTags.oauth | default "v7.8.2" }}"
4949
name: oauth2-proxy
5050
env:
5151
- name: OAUTH2_PROXY_CLIENT_SECRET

helm/modelix/templates/common/proxy-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ spec:
3232
value: "{{ .Release.Namespace }}"
3333
- name: KUBERNETES_INSTANCE_PREFIX
3434
value: "{{ include "modelix.fullname" . }}-"
35+
- name: HELM_RELEASE_NAME
36+
value: "{{ .Release.Name }}"
3537
- name: MODELIX_MAX_BODY_SIZE
3638
value: "{{ .Values.maxBodySize }}"
3739
ports:

helm/modelix/templates/common/workspace-manager-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ spec:
6565
value: localhost:5000
6666
- name: INTERNAL_DOCKER_REGISTRY_AUTHORITY
6767
value: "localhost:{{ .Values.internalDockerRegistry.nodePort }}"
68+
- name: KESTRA_URL
69+
value: http://{{ .Release.Name }}-kestra-service:8080/
70+
- name: GIT_IMPORT_IMAGE
71+
value: "{{ .Values.dockerProxy.prefix }}modelix/mps-git-import:{{ .Values.versions.modelix.core }}"
6872
{{- include "modelix.authorizationConfig" . | nindent 10 }}
6973
{{- include "modelix.commonVariables" . | nindent 10 }}
7074
image: "{{ .Values.dockerProxy.prefix }}modelix/modelix-workspace-manager:{{ .Values.imageTags.wsManager | default .Values.versions.modelix.workspaces }}"

helm/modelix/templates/local/db-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
value: "{{ .Values.db.db }}"
3131
- name: PGDATA
3232
value: /var/lib/postgresql/data/pgdata
33-
image: "{{ .Values.dockerProxy.prefix }}modelix/modelix-db:{{ .Values.imageTags.db | default .Chart.Version }}"
33+
image: "{{ .Values.dockerProxy.prefix }}modelix/modelix-db:{{ .Values.imageTags.db | default .Values.versions.modelix.kubernetes | default .Chart.Version }}"
3434
imagePullPolicy: IfNotPresent
3535
name: db
3636
volumeMounts:

helm/modelix/values.yaml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ fullnameOverride: ""
44

55
versions:
66
modelix:
7-
workspaces: "0.12.1"
8-
core: "11.3.0"
7+
workspaces: "0.13.0"
8+
core: "14.4.3"
99
kubernetes: ""
1010
vncBaseImage: "0.9.4"
1111

@@ -63,6 +63,40 @@ certmanager:
6363
# https://cert-manager.io/docs/installation/helm/#option-1-installing-crds-with-kubectl
6464
enabled: false
6565

66+
kestra:
67+
configuration:
68+
kestra:
69+
basic-auth:
70+
enabled: true
71+
username: admin
72+
password: secret
73+
encryption:
74+
secretKey: jhm3E/1WNE9EIiDsPptckrdgD4EsxaeaptnwlQyCDos=
75+
# micronaut:
76+
# server:
77+
# contextPath: "kestra"
78+
ingress:
79+
enabled: false
80+
postgresql:
81+
enabled: true
82+
dind:
83+
image:
84+
tag: dind
85+
args:
86+
- --log-level=fatal
87+
securityContext:
88+
runAsUser: 0
89+
runAsGroup: 0
90+
securityContext:
91+
runAsUser: 0
92+
runAsGroup: 0
93+
# readinessProbe:
94+
# path: /kestra/health/readiness
95+
# livenessProbe:
96+
# path: /kestra/health/liveness
97+
# startupProbe:
98+
# path: /kestra/health
99+
66100
db:
67101
useGCloud: false
68102
user: "modelix"

proxy/Caddyfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ handle_path /keycloak/* {
1212
reverse_proxy {$KUBERNETES_INSTANCE_PREFIX}keycloak.{$KUBERNETES_NAMESPACE}.svc.cluster.local:8080
1313
}
1414

15+
handle_path /kestra/* {
16+
reverse_proxy {$HELM_RELEASE_NAME}-kestra-service.{$KUBERNETES_NAMESPACE}.svc.cluster.local:8080
17+
}
18+
19+
reverse_proxy /ui/* {$HELM_RELEASE_NAME}-kestra-service.{$KUBERNETES_NAMESPACE}.svc.cluster.local:8080
20+
reverse_proxy /api/* {$HELM_RELEASE_NAME}-kestra-service.{$KUBERNETES_NAMESPACE}.svc.cluster.local:8080
21+
1522
reverse_proxy /workspace-* {$KUBERNETES_INSTANCE_PREFIX}workspace-manager.{$KUBERNETES_NAMESPACE}.svc.cluster.local:33332
1623

1724
reverse_proxy /resource/* {$KUBERNETES_INSTANCE_PREFIX}keycloak.{$KUBERNETES_NAMESPACE}.svc.cluster.local:8080

0 commit comments

Comments
 (0)