-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update charts to support multiple neon-core ingresses
Update CLI entrypoint to make iris Gradio UI deployments optional
- Loading branch information
1 parent
3a52bd0
commit 8db4114
Showing
11 changed files
with
98 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
neon_diana_utils/helm_charts/base/base-neon/templates/_ingress.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{- define "base-neon.ingress" -}} | ||
{{ if .Values.ingress.enabled }} | ||
{{- $domain := .Values.domain -}} | ||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1 | ||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1beta1 | ||
{{- else -}} | ||
apiVersion: extensions/v1beta1 | ||
{{- end }} | ||
kind: Ingress | ||
metadata: | ||
name: ingress-iris-http | ||
annotations: | ||
kubernetes.io/ingress.class: {{ .Values.ingress.ingressClassName }} | ||
cert-manager.io/issuer: {{ .Values.ingress.certIssuer }} | ||
spec: | ||
tls: | ||
- secretName: {{ .Values.ingress.tlsSecretName }} | ||
hosts: | ||
{{- range .Values.ingress.rules }} | ||
- {{ printf "%s.%s " .host $.Values.domain }} | ||
{{- end }} | ||
|
||
rules: | ||
{{- range .Values.ingress.rules }} | ||
- host: {{ printf "%s.%s " .host $.Values.domain }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ .serviceName }} | ||
port: | ||
number: {{ .servicePort }} | ||
{{- end }} | ||
|
||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{- include "base-neon.ingress" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 1 addition & 38 deletions
39
neon_diana_utils/helm_charts/neon/neon-iris/templates/ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1 @@ | ||
{{ if .Values.ingress.enabled }} | ||
{{- $domain := .Values.domain -}} | ||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1 | ||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} | ||
apiVersion: networking.k8s.io/v1beta1 | ||
{{- else -}} | ||
apiVersion: extensions/v1beta1 | ||
{{- end }} | ||
kind: Ingress | ||
metadata: | ||
name: ingress-iris-http | ||
annotations: | ||
kubernetes.io/ingress.class: {{ .Values.ingress.ingressClassName }} | ||
cert-manager.io/issuer: {{ .Values.ingress.certIssuer }} | ||
spec: | ||
tls: | ||
- secretName: {{ .Values.ingress.tlsSecretName }} | ||
hosts: | ||
{{- range .Values.ingress.rules }} | ||
- {{ printf "%s.%s " .host $.Values.domain }} | ||
{{- end }} | ||
|
||
rules: | ||
{{- range .Values.ingress.rules }} | ||
- host: {{ printf "%s.%s " .host $.Values.domain }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: {{ .serviceName }} | ||
port: | ||
number: {{ .servicePort }} | ||
{{- end }} | ||
|
||
{{- end }} | ||
{{- include "base-neon.ingress" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
serviceName: neon-core-iris | ||
subdomain: iris | ||
domain: diana.local | ||
replicaCount: 1 | ||
configMap: neon-config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,9 @@ core: | |
image: {} | ||
neon-gui: | ||
image: {} | ||
iris: {} | ||
iris-gradio: | ||
image: {} | ||
|
||
domain: diana.local | ||
ingress: | ||
rules: [] |