Skip to content

Commit

Permalink
primary-site: add ingress resource (#26)
Browse files Browse the repository at this point in the history
Provide an ingress resource with the default installation. The user can
configure aspects of the ingress like annotations. The user can disable
the ingress if they want to deploy their own.
  • Loading branch information
defunctzombie authored Jan 20, 2023
1 parent 5e69c5a commit 2e23d90
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/primary-site/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ type: application
# 1.0.0-alpha.0
# 1.0.0-alpha.1
# 1.0.0
version: 0.0.4
version: 0.0.5

appVersion: "70f49b27f1123702526d83fbc754992f578b4ca2"
27 changes: 27 additions & 0 deletions charts/primary-site/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{- with .Values.ingress }}
{{- if .enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: site
annotations:
{{- range $key, $value := .annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if .className }}
ingressClassName: {{ .className | quote }}
{{- end }}
rules:
- host:
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: stream
port:
number: 8080
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/primary-site/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ globals:
## For example: us-east-1
region: ""

ingress:
# If you are configuring your own ingress controller, set this to 'false'
enabled: true
className:
annotations: {}

inboxListener:
deployment:
replicas: 1
Expand Down

0 comments on commit 2e23d90

Please sign in to comment.