mirror of
https://github.com/bitnami/charts.git
synced 2026-03-09 15:38:00 +08:00
* [bitnami/scdf] General improvements * Add TLS section * Update bitnami/spring-cloud-dataflow/README.md Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com> * Apply suggestions Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com>
59 lines
2.5 KiB
YAML
59 lines
2.5 KiB
YAML
{{- if .Values.server.ingress.enabled -}}
|
|
apiVersion: {{ template "common.capabilities.ingress.apiVersion" . }}
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "scdf.fullname" . }}-server
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: server
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
namespace: {{ .Release.Namespace }}
|
|
annotations:
|
|
{{- if .Values.server.ingress.certManager }}
|
|
kubernetes.io/tls-acme: "true"
|
|
{{- end }}
|
|
{{- if .Values.server.ingress.annotations }}
|
|
{{- include "common.tplvalues.render" (dict "value" .Values.server.ingress.annotations "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
rules:
|
|
{{- if .Values.server.ingress.hostname }}
|
|
- host: {{ .Values.server.ingress.hostname }}
|
|
http:
|
|
paths:
|
|
{{- if .Values.server.ingress.extraPaths }}
|
|
{{- toYaml .Values.server.ingress.extraPaths | nindent 10 }}
|
|
{{- end }}
|
|
- path: {{ .Values.server.ingress.path }}
|
|
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
|
|
pathType: {{ .Values.server.ingress.pathType }}
|
|
{{- end }}
|
|
backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-server" (include "common.names.fullname" .)) "servicePort" "http" "context" $) | nindent 14 }}
|
|
{{- end }}
|
|
{{- range .Values.server.ingress.extraHosts }}
|
|
- host: {{ .name }}
|
|
http:
|
|
paths:
|
|
- path: {{ default "/" .path }}
|
|
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
|
|
pathType: {{ default "ImplementationSpecific" .pathType }}
|
|
{{- end }}
|
|
backend: {{- include "common.ingress.backend" (dict "serviceName" (printf "%s-server" (include "common.names.fullname" $)) "servicePort" "http" "context" $) | nindent 14 }}
|
|
{{- end }}
|
|
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls .Values.server.ingress.hosts }}
|
|
tls:
|
|
{{- if .Values.server.ingress.tls }}
|
|
- hosts:
|
|
- {{ .Values.server.ingress.hostname }}
|
|
secretName: {{ printf "%s-tls" .Values.server.ingress.hostname }}
|
|
{{- end }}
|
|
{{- if .Values.server.ingress.extraTls }}
|
|
{{- toYaml .Values.server.ingress.extraTls | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|