Skip to content

Commit

Permalink
Added experimental kubeflow dashboard chart
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamingRaven committed Dec 10, 2024
1 parent 926efbc commit 2ae17ed
Show file tree
Hide file tree
Showing 15 changed files with 441 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab/helm/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
helm-chart-push:
stage: deploy
only:
- tags
- main
image:
name: curlimages/curl:latest
entrypoint: ["/bin/sh", "-c"]
Expand Down
23 changes: 23 additions & 0 deletions charts/kubeflow-dashboard/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
10 changes: 10 additions & 0 deletions charts/kubeflow-dashboard/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
appVersion: 0.1.0
description: A Helm chart for Kubernetes
name: kubeflow-dashboard
type: application
version: 0.1.0
dependencies:
- name: corvid
version: 0.12.0
repository: "file://../corvid"
100 changes: 100 additions & 0 deletions charts/kubeflow-dashboard/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# kubeflow-dashboard

A Helm chart for Kubernetes

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

## Installing the Chart

To install the chart with the release name `kubeflow-dashboard`, run the following commands:

```console
$ helm repo add raven https://gitlab.com/api/v4/projects/55284972/packages/helm/stable
$ helm repo update raven
$ helm install kubeflow-dashboard raven/kubeflow-dashboard
```

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| file://../corvid | corvid | 0.12.0 |

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| args | string | `nil` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| command | string | `nil` | |
| cron.enabled | bool | `false` | enable or disable cronjob |
| cron.schedule | string | `"@midnight"` | schedule for cronjob using Cron syntax https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax |
| cron.suspend | bool | `false` | cronjob will not trigger on schedule but can be manually triggered |
| deployment.strategy | string | `""` | rollout strategy `Recreate` or `RollingUpdate` this chart defaults to Recreate only if we detect a single replica with a volume |
| dnsConfig | object | `{}` | |
| dnsPolicy | string | `""` | |
| envFrom | string | `nil` | |
| env[0].name | string | `"kubeflow-dashboard_EXAMPLE_VARIABLE"` | |
| env[0].value | string | `"false"` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.registry | string | `"docker.io"` | |
| image.repository | string | `"kubeflow-dashboard/kubeflow-dashboard"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"kubeflow-dashboard.org.example"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| initContainers | list | `[]` | |
| livenessProbe | string | `nil` | raw liveness probe overrides for user |
| livenessProbeDefault | object | `{"httpGet":{"path":"/","port":"http"}}` | default liveness probe if not specified by user |
| livenessProbeEnabled | bool | `true` | enable or disable liveness probe entirely |
| nameOverride | string | `""` | |
| netpol.enabled | bool | `true` | |
| nodeSelector | object | `{}` | |
| persistence.accessModes[0] | string | `"ReadWriteOnce"` | |
| persistence.enabled | bool | `false` | |
| persistence.existingClaim | string | `""` | |
| persistence.size | string | `"8Gi"` | |
| podAnnotations | object | `{}` | |
| podLabels | object | `{}` | |
| podSecurityContext | object | `{}` | podSecurityContext for consumer overrides |
| podSecurityContextDefault | object | `{"fsGroup":1000}` | default podSecurityContext if none specified |
| podSecurityContextEnabled | bool | `true` | enable or disable podSecurityContext entirely |
| ports[0].containerPort | int | `8082` | |
| ports[0].name | string | `"http"` | |
| ports[0].protocol | string | `"TCP"` | |
| ports[0].servicePort | int | `80` | |
| readinessProbe | string | `nil` | raw readiness probe overrides for user |
| readinessProbeDefault | object | `{"httpGet":{"path":"/","port":"http"}}` | default readiness probe if not specified by user |
| readinessProbeEnabled | bool | `true` | enable or disable readiness probe entirely |
| replicaCount | int | `1` | |
| resources | string | `nil` | raw resources block overrides for user |
| resourcesDefault | object | `{"limits":{"memory":"128Mi"},"requests":{"cpu":"100m"}}` | default resources if not specified by user |
| resourcesEnabled | bool | `true` | enable or disable resources entirely |
| restartPolicy | string | `"Always"` | |
| runtimeClassName | string | `nil` | |
| secrets | list | `[]` | |
| securityContext | object | `{}` | securityContext for consumer overrides |
| securityContextDefault | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000}` | default securityContext if none specified |
| securityContextEnabled | bool | `true` | enable or disable securityContext entirely |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.automount | bool | `true` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| startupProbe | string | `nil` | raw startup probe overrides for user |
| startupProbeDefault | object | `{"httpGet":{"path":"/","port":"http"}}` | default startup probe if not specified by user |
| startupProbeEnabled | bool | `true` | enable or disable startup probe entirely |
| tolerations | list | `[]` | |
| volumeMounts | list | `[]` | |
| volumes | list | `[]` | |

14 changes: 14 additions & 0 deletions charts/kubeflow-dashboard/templates/_container.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- define "kubeflow-dashboard-container" -}}
name: {{ .Chart.Name }}-override
{{- if or .Values.volumeMounts .Values.persistence.enabled }}
volumeMounts:
{{- if .Values.persistence.enabled }}
- name: data
mountPath: /data/
subPath: data
{{- end }}
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 0 }}
{{- end }}
{{- end }}
{{- end -}}
4 changes: 4 additions & 0 deletions charts/kubeflow-dashboard/templates/_podSpec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{- define "kubeflow-dashboard-podSpec" -}}
containers:
- {{ include "corvid.container" (list . "kubeflow-dashboard-container") | indent 2 | trim }}
{{- end -}}
7 changes: 7 additions & 0 deletions charts/kubeflow-dashboard/templates/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{- define "kubeflow-dashboard.deploy" }}
spec:
template:
spec:
{{ include "corvid.podSpec" (list . "kubeflow-dashboard-podSpec") | indent 6 | trim }}
{{- end }}
{{- include "corvid.deploy" (list . "kubeflow-dashboard.deploy") }}
5 changes: 5 additions & 0 deletions charts/kubeflow-dashboard/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- define "kubeflow-dashboard.hpa" -}}
{{- end -}}
{{- if .Values.autoscaling.enabled }}
{{- include "corvid.hpa" (list . "kubeflow-dashboard.hpa") -}}
{{- end }}
5 changes: 5 additions & 0 deletions charts/kubeflow-dashboard/templates/ing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- if .Values.ingress.enabled }}
{{- include "corvid.ing" (list . "kubeflow-dashboard.ing") -}}
{{- end }}
{{- define "kubeflow-dashboard.ing" -}}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/kubeflow-dashboard/templates/netpol.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- if .Values.netpol.enabled }}
{{- include "corvid.netpol" (list . "kubeflow-dashboard.netpol") -}}
{{- end }}
{{- define "kubeflow-dashboard.netpol" -}}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/kubeflow-dashboard/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
{{- include "corvid.pvc" (list . "kubeflow-dashboard.pvc") -}}
{{- end }}
{{- define "kubeflow-dashboard.pvc" -}}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/kubeflow-dashboard/templates/sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- if .Values.serviceAccount.create }}
{{- include "corvid.sa" (list . "kubeflow-dashboard.sa") -}}
{{- end }}
{{- define "kubeflow-dashboard.sa" -}}
{{- end -}}
3 changes: 3 additions & 0 deletions charts/kubeflow-dashboard/templates/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- include "corvid.svc" (list . "kubeflow-dashboard.svc") -}}
{{- define "kubeflow-dashboard.svc" -}}
{{- end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- include "corvid.testConnectivity" (list . "kubeflow-dashboard.testConnectivity") -}}
{{- define "kubeflow-dashboard.testConnectivity" -}}
{{- end -}}
Loading

0 comments on commit 2ae17ed

Please sign in to comment.