Skip to content

Commit

Permalink
fix: ingress generation
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Haley <[email protected]>
  • Loading branch information
charlie-haley committed Jan 11, 2024
1 parent 25e6b09 commit 6ec773a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
12 changes: 0 additions & 12 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ spec:
args:
{{- toYaml .Values.args | nindent 12 }}
{{- else }}
### For debugging only - enable to allow exec into container
# command: ["/bin/sh","-c","sleep 300"]
args:
- "-c"
- "/benthos.yaml"
Expand Down Expand Up @@ -111,11 +109,6 @@ spec:
mountPath: "/benthos.yaml"
subPath: "benthos.yaml"
readOnly: true
{{- if and .Values.http.tls .Values.http.tls.enabled .Values.http.tls.secretName }}
- name: tls
mountPath: "/tls"
readOnly: true
{{- end }}
{{- range .Values.extraVolumeMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
Expand Down Expand Up @@ -146,11 +139,6 @@ spec:
- name: config
configMap:
name: {{ template "benthos.fullname" . }}-config
{{- if and .Values.http.tls .Values.http.tls.enabled .Values.http.tls.secretName }}
- name: tls
secret:
secretName: {{ .Values.http.tls.secretName }}
{{- end }}
{{- if .Values.extraVolumes }}
{{- toYaml .Values.extraVolumes | nindent 8 }}
{{- end }}
Expand Down
12 changes: 7 additions & 5 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
{{- range .Values.service.ports }}
-
{{- range $key, $val := . }}
{{ $key }}: {{ tpl (toString $val) $ }}
{{- end }}
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
protocol: {{ .Values.service.protocol }}
name: {{ .Values.service.name }}

{{- with .Values.service.extraPorts }}
{{- toYaml .Values.args | nindent 4 }}
{{- end }}
selector:
{{- include "benthos.selectorLabels" . | nindent 4 }}
Expand Down
12 changes: 6 additions & 6 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ securityContext: {}
# runAsUser: 1000

service:
name: http
type: ClusterIP
ports:
# Override this as 443 when .Values.http.tls.enabled is true
- name: http
port: 80
targetPort: http
protocol: TCP
port: 80
targetPort: http
protocol: TCP

extraPorts:
# - name: extraPort
# port: 9999
# targetPort: 9999
Expand Down

0 comments on commit 6ec773a

Please sign in to comment.