Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.venv
kubeconfig
uscd.yaml
dynamo-values.yaml
# Created by https://www.toptal.com/developers/gitignore/api/osx
# Edit at https://www.toptal.com/developers/gitignore?templates=osx

Expand Down
2 changes: 1 addition & 1 deletion charts/mint/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 8.1.0-beta.6
version: 9.0.0-beta.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
Expand Down
67 changes: 34 additions & 33 deletions charts/mint/README.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion charts/mint/templates/ensemble-manager-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ data:
config.json: |
{
"data_catalog_api": "http://{{ include "mint.prefix" . }}-data-catalog",
"model_catalog_api": "http://{{ include "mint.prefix" . }}-model-catalog/{{ .Values.components.model_catalog_api.api_version }}",
{{- with .Values.components.ensemble_manager }}
{{- if .enabled }}
"ensemble_manager_api": "http{{ if .ingress.tls }}s{{ end }}://{{ with (first .ingress.hosts ) }}{{ .host }}{{ end }}/{{ .api_version }}",
{{- with .config.tapis_webhook_base_url }}
"tapis_webhook_base_url": {{ . | quote }},
{{- end }}
{{- end }}
{{- end }}
"graphql": {
Expand Down
12 changes: 5 additions & 7 deletions charts/mint/templates/hasura.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,8 @@ spec:
path: /
port: http
readinessProbe:
exec:
command:
- pg_isready
- -h
- {{ include "mint.prefix" . }}-hasura-db
- -U
- {{ .Values.secrets.database.hasura.username | default "mint" }}
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
periodSeconds: 10
2 changes: 1 addition & 1 deletion charts/mint/templates/ingress-model-catalog-endpoint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.components.model_catalog_endpoint.ingress.enabled -}}
{{- if and .Values.components.model_catalog_endpoint.enabled .Values.components.model_catalog_endpoint.ingress.enabled -}}
{{- $fullName := include "mint.prefix" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.components.model_catalog_endpoint.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
Expand Down
2 changes: 1 addition & 1 deletion charts/mint/templates/model-catalog-endpoint-backup.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.components.backups.enabled }}
{{- if and .Values.components.model_catalog_endpoint.enabled .Values.components.backups.enabled }}
apiVersion: batch/v1
kind: CronJob
metadata:
Expand Down
68 changes: 22 additions & 46 deletions charts/mint/templates/model-catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ spec:
{{ if eq .Values.service.type "NodePort" }}
nodePort: {{ include "helm.model_catalog_api_node_port" . }}
{{ end }}
targetPort: 8080
protocol: TCP
- name: "redis-endpoint"
port: 6379
targetPort: 6379
targetPort: 3000
protocol: TCP
selector:
app: {{ include "mint.prefix" . }}-model-catalog
Expand All @@ -45,65 +41,45 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: wait-for-model-catalog-endpoint
image: alpine/curl
command: ["sh", "-c", "sleep 60; until curl -sk {{ include "mint.prefix" . }}-model-catalog-endpoint:3030/$/modelcatalog/ping; do echo waiting for model-catalog-endpoint; sleep 2; done"]
resources:
{{- toYaml .Values.resources | nindent 12 }}
containers:
- name: model-catalog
{{- with .Values.components.model_catalog_api }}
image: "{{ .image.repository }}:{{ .image.tag | default $.Chart.AppVersion }}"
imagePullPolicy: {{ .image.pullPolicy }}
resources:
{{- toYaml .resources | nindent 12 }}
command: ["uvicorn", "openapi_server.main:app", "--workers", "8", "--host", "0.0.0.0" , "--port", "8080"]
ports:
- name: http
containerPort: 8080
containerPort: 3000
protocol: TCP

livenessProbe:
httpGet:
path: /v1.8.0/models?username=mint%40isi.edu&page=1&per_page=200
path: /health
port: http
initialDelaySeconds: 10
timeoutSeconds: 30
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /health
port: http
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
env:
- name: CONTEXT_DIR
value: "{{ .environment.context_dir }}"
- name: QUERIES_DIR
value: "{{ .environment.queries_dir }}"
- name: REDIS_ADDRESS
value: {{ include "mint.prefix" $ }}-model-catalog:6379
- name: PORT
value: "3000"
- name: HASURA_GRAPHQL_URL
value: {{ .environment.hasura_graphql_url | default (printf "http://%s-hasura/v1/graphql" (include "mint.prefix" $)) | quote }}
- name: LOG_LEVEL
value: "{{ .environment.log_level }}"
{{- end }}
{{- with .Values.components.model_catalog_endpoint }}
- name: ENDPOINT
value: http://{{ include "mint.prefix" $ }}-model-catalog-endpoint:3030/{{ .environment.dataset }}
- name: GRAPH_BASE
value: "{{ .environment.graph_base }}"
- name: PREFIX
value: "{{ .environment.prefix }}"
{{- end }}
- name: AUTH_CLIENT_ID
value: {{ .Values.auth.client_id }}
- name: AUTH_SERVER
value: {{ .Values.auth.url }}/realms/{{ .Values.auth.realm }}/protocol/openid-connect/token
- name: ENDPOINT_PASSWORD
- name: HASURA_ADMIN_SECRET
valueFrom:
secretKeyRef:
name: {{ include "mint.prefix" . }}-model-catalog-endpoint-secrets
key: password
- name: model-catalog-redis
image: redis:6.0.16-alpine
imagePullPolicy: IfNotPresent
resources:
{{- toYaml .Values.resources | nindent 12 }}
ports:
- name: redis
containerPort: 6379
protocol: TCP
{{ end }}
name: {{ include "mint.prefix" . }}-secrets
key: hasura_admin_secret
optional: true
{{ end }}
61 changes: 30 additions & 31 deletions charts/mint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ components:
# -- Docker image tag for Cromo
tag: 3c75586989aedf2573c37f5352f960c294377931
# -- Image pull policy for Cromo
pullPolicy: IfNotPresent
pullPolicy: Always
ingress:
# -- Enable or disable ingress for Cromo
enabled: true
Expand All @@ -49,7 +49,7 @@ components:
# -- Docker image tag for MIC UI
tag: a736ac5841d471de4679bec80c13b0fb646ae073
# -- Image pull policy for MIC UI
pullPolicy: IfNotPresent
pullPolicy: Always
environment:
# -- API URL for MIC UI
api_url: null
Expand Down Expand Up @@ -78,7 +78,7 @@ components:
# -- Docker image tag for MIC API
tag: ee71a1a364fc3d384f85243684ad95d37913b049
# -- Image pull policy for MIC API
pullPolicy: IfNotPresent
pullPolicy: Always
ingress:
# -- Enable or disable ingress for MIC API
enabled: true
Expand Down Expand Up @@ -124,21 +124,21 @@ components:
# -- Data Catalog component configuration
data_catalog:
# -- Enable or disable Data Catalog
enabled: true
enabled: false
image:
# -- Docker image repository for Data Catalog
repository: mintproject/data-catalog
# -- Docker image tag for Data Catalog
tag: 9be70359feabe03ed55bfdbf92c20a7e43ab928b
# -- Image pull policy for Data Catalog
pullPolicy: IfNotPresent
pullPolicy: Always
arm_image:
# -- Docker image repository for ARM-based Data Catalog
repository: mintproject/data-catalog
# -- Docker image tag for ARM-based Data Catalog
tag: 8a6af95cae183320d596dc5219f2f76d1f234749
# -- Image pull policy for ARM-based Data Catalog
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for Data Catalog
resources: {}
ingress:
Expand All @@ -160,14 +160,14 @@ components:
# -- Docker image tag for Data Catalog database
tag: 9be70359feabe03ed55bfdbf92c20a7e43ab928b
# -- Image pull policy for Data Catalog database
pullPolicy: IfNotPresent
pullPolicy: Always
arm_image:
# -- Docker image repository for ARM-based Data Catalog database
repository: mintproject/data-catalog-db
# -- Docker image tag for ARM-based Data Catalog database
tag: 8a6af95cae183320d596dc5219f2f76d1f234749
# -- Image pull policy for ARM-based Data Catalog database
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for Data Catalog database
resources: {}
persistence:
Expand All @@ -185,14 +185,14 @@ components:
helm.sh/resource-policy: keep
model_catalog_endpoint:
# -- Enable or disable Model Catalog Endpoint
enabled: true
enabled: false
image:
# -- Docker image repository for Model Catalog Endpoint
repository: mintproject/model-catalog-endpoint
# -- Docker image tag for Model Catalog Endpoint
tag: 29256555a6fbaefae4729d5cd259564708a4ab04
# -- Image pull policy for Model Catalog Endpoint
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for Model Catalog Endpoint
resources: {}
environment:
Expand Down Expand Up @@ -235,11 +235,11 @@ components:
enabled: true
image:
# -- Docker image repository for Hasura
repository: mintproject/graphql-engine
repository: ghcr.io/mintproject/graphql-engine
# -- Docker image tag for Hasura
tag: 56ebce44a8c15fd9386ae5fc1c183b53db49778c
tag: latest
# -- Image pull policy for Hasura
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for Hasura
resources: {}
environment:
Expand All @@ -252,7 +252,7 @@ components:
# -- Authentication configuration for Hasura
auth:
# -- Authentication type (jwt or webhook)
type: jwt
type: webhook
jwt:
# -- JWT claims configuration
claims:
Expand All @@ -271,9 +271,9 @@ components:
resources: {}
config:
# -- JWKS URI for Tapis authentication
tapisJwksUri: "https://tacc.tapis.io/v3/tenants/tacc"
tapisJwksUri: "https://portals.tapis.io/v3/tenants/portals"
# -- Token issuer for Tapis authentication
tapisTokenIssuer: "https://tacc.tapis.io/v3/tokens"
tapisTokenIssuer: "https://portals.tapis.io/v3/tokens"
ingress:
# -- Enable or disable ingress for Hasura
enabled: true
Expand Down Expand Up @@ -326,7 +326,7 @@ components:
# -- Docker image tag for Model Catalog Explorer
tag: 0b2f9f0a9124076aeb492add2f123d0757066f6b
# -- Image pull policy for Model Catalog Explorer
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for Model Catalog Explorer
resources: {}
ingress:
Expand All @@ -343,22 +343,21 @@ components:
model_catalog_api:
# -- Enable or disable Model Catalog API
enabled: true
# -- API version for Model Catalog API
api_version: v1.8.0
api_version: v2.0.0
image:
# -- Docker image repository for Model Catalog API
repository: mintproject/model-catalog-fastapi
repository: ghcr.io/mintproject/model-catalog-api
# -- Docker image tag for Model Catalog API
tag: 7dd88dc5bf1fe6a6d4703ea0a077afee45cb2561
tag: latest
# -- Image pull policy for Model Catalog API
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for Model Catalog API
resources: {}
environment:
# -- Context directory for Model Catalog API
context_dir: contexts/
# -- Queries directory for Model Catalog API
queries_dir: queries/
# -- Hasura GraphQL URL for Model Catalog API. Defaults to internal service DNS (http://<prefix>-hasura/v1/graphql)
hasura_graphql_url: ""
# -- Log level for Model Catalog API
log_level: info
ingress:
# -- Enable or disable ingress for Model Catalog API
enabled: true
Expand All @@ -378,9 +377,9 @@ components:
# -- Docker image repository for UI
repository: mintproject/mint-ui-lit
# -- Docker image tag for UI
tag: 5ec5a06c8bc68634aee3d09f79ac89d228dfd814
tag: latest
# -- Image pull policy for UI
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Resource specifications for UI
resources: {}
config:
Expand Down Expand Up @@ -411,9 +410,9 @@ components:
# -- Docker image repository for Ensemble Manager
repository: mintproject/ensemble-manager
# -- Docker image tag for Ensemble Manager
tag: d4e2d9d370077ec1ec12d2d9f3a7abea3e80da7d
tag: latest
# -- Image pull policy for Ensemble Manager
pullPolicy: IfNotPresent
pullPolicy: Always
# -- Ensemble Manager deployment strategy (Recreate or RollingUpdate)
strategy:
# -- Type of deployment strategy
Expand Down Expand Up @@ -477,7 +476,7 @@ components:
jobs:
model_catalog_endpoint:
# -- Enable or disable Model Catalog API initialization
enabled: true
enabled: false
# -- Resource specifications for Model Catalog API initialization
resources: {}
hasura:
Expand Down