Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions deploy/charts/burrito/templates/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,33 @@ spec:
selector:
{{- toYaml .metadata.labels | nindent 4 }}
{{- end }}
{{- if .ingress.enabled }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: burrito-controllers
{{- with mergeOverwrite (deepCopy .metadata) .ingress.metadata }}
labels:
{{- toYaml .labels | nindent 4}}
annotations:
{{- toYaml .annotations | nindent 4}}
{{- end }}
spec:
ingressClassName: {{ .ingress.ingressClassName }}
rules:
- host: {{ .ingress.host }}
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: burrito-controllers
port:
name: http
tls:
{{- toYaml .ingress.tls | nindent 4 }}
{{- end }}
---
apiVersion: v1
kind: ServiceAccount
Expand Down
21 changes: 21 additions & 0 deletions deploy/charts/burrito/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ controllers:
command: ["burrito"]
# -- Arguments to pass to the Burrito controller container
args: ["controllers", "start"]
# -- Controller exposed ports
ports:
- name: http
containerPort: 8080
# -- Controller liveness probe configuration
livenessProbe:
httpGet:
Expand Down Expand Up @@ -388,6 +392,23 @@ controllers:
metadata:
labels: {}
annotations: {}
ports:
- name: http
port: 80
targetPort: http
ingress:
# -- Enable/Disable ingress creation for the Burrito controller
enabled: false
# -- Metadata configuration for the Burrito controller ingress
metadata:
labels: {}
annotations: {}
# -- Ingress class name to use for the Burrito controller ingress
ingressClassName: nginx
# -- Hostname for the Burrito controller ingress
host: burrito-controllers.example.com
# -- TLS configuration for the Burrito controller ingress
tls: []
Comment on lines +395 to +411
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be clear that this ingress and this port are for the controller metrics.

WDYT of metricsIngress for the ingress key, and metrics for the port's name?


server:
# -- Metadata configuration for the Burrito server
Expand Down
Loading
Loading