- Create .helmignore to exclude unnecessary files - Add Chart.yaml with metadata and versioning - Implement secret reference for external secrets management - Define deployment, service, ingress, and HPA templates - Include HTTPRoute and Ingress configurations for routing - Set up service account and test connection pod - Establish default values in values.yaml for configuration
39 lines
963 B
YAML
39 lines
963 B
YAML
{{- if .Values.httpRoute.enabled -}}
|
|
{{- $fullName := include "dahoam-chart.fullname" . -}}
|
|
{{- $svcPort := .Values.service.port -}}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ $fullName }}
|
|
labels:
|
|
{{- include "dahoam-chart.labels" . | nindent 4 }}
|
|
{{- with .Values.httpRoute.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
parentRefs:
|
|
{{- with .Values.httpRoute.parentRefs }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.httpRoute.hostnames }}
|
|
hostnames:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range .Values.httpRoute.rules }}
|
|
{{- with .matches }}
|
|
- matches:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .filters }}
|
|
filters:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
backendRefs:
|
|
- name: {{ $fullName }}
|
|
port: {{ $svcPort }}
|
|
weight: 1
|
|
{{- end }}
|
|
{{- end }}
|