Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#88 Add iits-fullstack-olama #89

Merged
merged 1 commit into from
Jan 16, 2024
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
25 changes: 25 additions & 0 deletions charts/iits-ollama-fullstack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v2
name: iits-ollama-fullstack
description: Get up and running with large language models locally.
type: application
version: 0.1.1
home: https://ollama.ai/
icon: https://ollama.ai/public/ollama.png
keywords:
- ai
- llm
- llama
- mistral
dependencies:
- name: weaviate
repository: https://weaviate.github.io/weaviate-helm
version: 16.8.0
condition: weaviate.enabled
- name: airbyte
version: 0.50.20
repository: https://airbytehq.github.io/helm-charts
condition: airbyte.enabled
- name: ollama
version: 0.6.2
repository: https://charts.iits.tech
condition: ollama.enabled
82 changes: 82 additions & 0 deletions charts/iits-ollama-fullstack/templates/airbyte-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{{- with .Values.ingress.airbyte }}
{{- if .enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{$.Values.airbyte.fullnameOverride }}
{{- with .labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .annotations }}
annotations:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .className | default "traefik" }}

{{- if .defaultIngress.enabled | default true }}
{{- $certSecretName := (.defaultIngress.tls).secretName | default (printf "%s-%s" $.Values.airbyte.fullnameOverride "cert")}}
tls:
- hosts:
- {{ tpl (toYaml .host) $ }}
secretName: {{ $certSecretName }}
rules:
- host: {{ tpl (toYaml .host) $ }}
http:
paths:
- path: {{ .defaultIngress.path | default "/" }}
pathType: {{ .defaultIngress.pathType | default "Prefix"}}
backend:
service:
{{- if (.defaultIngress.backend).name }}
name: {{ tpl (toYaml .defaultIngress.backend.name) $ }}
{{- else }}
name: {{ default $.Values.airbyte.fullnameOverride}}
{{- end}}
port:
{{- if ((.defaultIngress.backend).port).name }}
name: {{ tpl (toYaml .defaultIngress.backend.port.name) $ }}
{{- else }}
name: {{ default $.Values.airbyte.fullnameOverride}}
{{- end}}
{{- else }}

{{- if .tls }}
tls:
{{- range .tls }}
{{- $certSecretName := .secretName | default (printf "%s-%s" $.Values.airbyte.fullnameOverride "cert")}}
{{- if .hosts }}
{{- range .hosts }}
- hosts:
- {{ tpl (toYaml .) $ }}
secretName: {{ $certSecretName }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
rules:
{{- range .hosts }}
- host: {{ tpl (toYaml .host) $ }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
pathType: {{ .pathType | default "Prefix"}}
backend:
service:
{{- if (.backend).name }}
name: {{ tpl (toYaml .backend.name) $ }}
{{- else }}
name: {{ default $.Values.airbyte.fullnameOverride}}
{{- end}}
port:
{{- if ((.backend).port).name }}
name: {{ tpl (toYaml .defaultIngress.backend.port.name) $ }}
{{- else }}
name: {{ default $.Values.airbyte.fullnameOverride}}
{{- end}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
34 changes: 34 additions & 0 deletions charts/iits-ollama-fullstack/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
ingress:
airbyte:
enabled: true
host: #REPLACE_ME
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
# Creates default Ingress with tls and the given host from .Values.ingress.host
defaultIngress:
enabled: true
# Default values can be overriden
backend:
name: "{{ .Release.Name }}-airbyte-webapp-svc"
port:
name: "http"

weaviate:
service:
type: "ClusterIP"
airbyte:
fullnameOverride: "airbyte"
webapp:
ingress:
enabled: false
connector-builder-server:
service:
type: "ClusterIP"
ollama:
enabled: true
ollama:
fullnameOverride: ollama
webui:
fullnameOverride: ollama-webui