Skip to content

Commit

Permalink
Updating ingress config
Browse files Browse the repository at this point in the history
- Modified ingress template;
- Added values to the Values.yaml;
- Updated chart version;
  • Loading branch information
ArchitKhanna committed Jan 12, 2024
1 parent 2d70a7f commit 62ed421
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/spark-history-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.2.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
9 changes: 7 additions & 2 deletions stable/spark-history-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $serviceExternalPort := .Values.service.externalPort -}}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
Expand All @@ -16,6 +17,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand All @@ -33,9 +35,12 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
serviceName: {{ include "spark-history-server.fullname" . }}
servicePort: {{ .Values.service.externalPort }}
service:
name: {{ include "spark-history-server.fullname" $ }}
port:
number: {{ $serviceExternalPort }}
{{- end }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions stable/spark-history-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ service:
ingress:
enabled: false
annotations: {}
## Set below values when ingress is enabled
# ingressClassName:
# hosts:
# - host: <url>
# paths:
# - <path>

resources:
limits:
Expand Down

0 comments on commit 62ed421

Please sign in to comment.