Skip to content

Commit

Permalink
serve static files with a different ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
g10f committed Jan 21, 2023
1 parent d611afc commit b982bc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/wiki/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.0.1

# 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
4 changes: 2 additions & 2 deletions charts/wiki/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
{{- end }}
{{- end }}
---
# Ingress for with static path /moin_static1911
# Ingress for static moin_static1911 and favicon
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -69,7 +69,7 @@ spec:
- host: {{ .host | quote }}
http:
paths:
- path: /moin_static1911
- path: /(moin_static1911|static|favicon.ico)
pathType: Prefix
backend:
service:
Expand Down
3 changes: 3 additions & 0 deletions charts/wiki/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:
spec:
schedule: {{ .schedule | quote }}
jobTemplate:
metadata:
labels:
{{- include "wiki.labels" $ | nindent 8 }}
spec:
template:
spec:
Expand Down

0 comments on commit b982bc7

Please sign in to comment.