New ingress style (#27)

* new ingress style

* bump up version

* hostName fix

* helm-docs update
This commit is contained in:
Valeriano Manassero 2021-09-16 08:51:07 +02:00 committed by GitHub
parent aa761dd450
commit 82ad17860d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 28 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: clearml name: clearml
description: MLOps platform description: MLOps platform
type: application type: application
version: "2.4.0" version: "3.0.0"
appVersion: "1.1.1" appVersion: "1.1.1"
home: https://clear.ml home: https://clear.ml
icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg icon: https://raw.githubusercontent.com/allegroai/clearml/master/docs/clearml-logo.svg

View File

@ -1,6 +1,6 @@
# ClearML Ecosystem for Kubernetes # ClearML Ecosystem for Kubernetes
![Version: 2.4.0](https://img.shields.io/badge/Version-2.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square) ![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.1.1](https://img.shields.io/badge/AppVersion-1.1.1-informational?style=flat-square)
MLOps platform MLOps platform
@ -252,13 +252,14 @@ For detailed instructions, see the [Optional Configuration](https://github.com/a
| fileserver.storage.data.size | string | `"50Gi"` | | | fileserver.storage.data.size | string | `"50Gi"` | |
| fileserver.tolerations | list | `[]` | | | fileserver.tolerations | list | `[]` | |
| ingress.annotations | object | `{}` | | | ingress.annotations | object | `{}` | |
| ingress.api.hostName | string | `"api.clearml.127-0-0-1.nip.io"` | |
| ingress.api.tlsSecretName | string | `""` | |
| ingress.app.hostName | string | `"app.clearml.127-0-0-1.nip.io"` | |
| ingress.app.tlsSecretName | string | `""` | |
| ingress.enabled | bool | `false` | | | ingress.enabled | bool | `false` | |
| ingress.host | string | `""` | | | ingress.files.hostName | string | `"files.clearml.127-0-0-1.nip.io"` | |
| ingress.hostPrefixApi | string | `"api."` | | | ingress.files.tlsSecretName | string | `""` | |
| ingress.hostPrefixApp | string | `"app."` | |
| ingress.hostPrefixFiles | string | `"files."` | |
| ingress.name | string | `"clearml-server-ingress"` | | | ingress.name | string | `"clearml-server-ingress"` | |
| ingress.tls.secretName | string | `""` | |
| mongodb.architecture | string | `"standalone"` | | | mongodb.architecture | string | `"standalone"` | |
| mongodb.auth.enabled | bool | `false` | | | mongodb.auth.enabled | bool | `false` | |
| mongodb.enabled | bool | `true` | | | mongodb.enabled | bool | `true` | |

View File

@ -1,5 +1,4 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "clearml.fullname" . -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
@ -17,14 +16,14 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.tls.secretName }} {{- if .Values.ingress.api.tlsSecretName }}
tls: tls:
- hosts: - hosts:
- "{{ .Values.ingress.hostPrefixApi }}{{ .Values.ingress.host }}" - {{ .Values.ingress.api.hostName }}
secretName: {{ .Values.ingress.tls.secretName }} secretName: {{ .Values.ingress.api.tlsSecretName }}
{{- end }} {{- end }}
rules: rules:
- host: "{{ .Values.ingress.hostPrefixApi }}{{ .Values.ingress.host }}" - host: {{ .Values.ingress.api.hostName }}
http: http:
paths: paths:
- path: "/" - path: "/"

View File

@ -1,5 +1,4 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "clearml.fullname" . -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
@ -17,14 +16,14 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.tls.secretName }} {{- if .Values.ingress.app.tlsSecretName }}
tls: tls:
- hosts: - hosts:
- "{{ .Values.ingress.hostPrefixApp }}{{ .Values.ingress.host }}" - {{ .Values.ingress.app.hostName }}
secretName: {{ .Values.ingress.tls.secretName }} secretName: {{ .Values.ingress.app.tlsSecretName }}
{{- end }} {{- end }}
rules: rules:
- host: "{{ .Values.ingress.hostPrefixApp }}{{ .Values.ingress.host }}" - host: {{ .Values.ingress.app.hostName }}
http: http:
paths: paths:
- path: "/" - path: "/"

View File

@ -1,5 +1,4 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "clearml.fullname" . -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} {{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
@ -17,14 +16,14 @@ metadata:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.tls.secretName }} {{- if .Values.ingress.files.tlsSecretName }}
tls: tls:
- hosts: - hosts:
- "{{ .Values.ingress.hostPrefixFiles }}{{ .Values.ingress.host }}" - {{ .Values.ingress.files.hostName }}
secretName: {{ .Values.ingress.tls.secretName }} secretName: {{ .Values.ingress.files.tlsSecretName }}
{{- end }} {{- end }}
rules: rules:
- host: "{{ .Values.ingress.hostPrefixFiles }}{{ .Values.ingress.host }}" - host: {{ .Values.ingress.files.hostName }}
http: http:
paths: paths:
- path: "/" - path: "/"

View File

@ -4,12 +4,15 @@ ingress:
enabled: false enabled: false
name: clearml-server-ingress name: clearml-server-ingress
annotations: {} annotations: {}
host: "" app:
hostPrefixApp: "app." hostName: "app.clearml.127-0-0-1.nip.io"
hostPrefixApi: "api." tlsSecretName: ""
hostPrefixFiles: "files." api:
tls: hostName: "api.clearml.127-0-0-1.nip.io"
secretName: "" tlsSecretName: ""
files:
hostName: "files.clearml.127-0-0-1.nip.io"
tlsSecretName: ""
apiserver: apiserver:
prepopulateEnabled: "true" prepopulateEnabled: "true"