diff --git a/charts/tunedrop-chart/templates/ingress.yaml b/charts/tunedrop-chart/templates/ingress.yaml new file mode 100644 index 0000000..10240f3 --- /dev/null +++ b/charts/tunedrop-chart/templates/ingress.yaml @@ -0,0 +1,27 @@ +{{- if .Values.ingress.enabled }} +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: tunedrop + annotations: + {{- range $key, $val := .Values.ingress.annotations }} + {{ $key }}: {{ $val | quote }} + {{- end }} +spec: + ingressClassName: {{ .Values.ingress.className }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + pathType: {{ .pathType }} + backend: + service: + name: tunedrop + port: + number: 80 + {{- end }} + {{- end }} +{{- end }} diff --git a/charts/tunedrop-chart/templates/service.yaml b/charts/tunedrop-chart/templates/service.yaml new file mode 100644 index 0000000..8026044 --- /dev/null +++ b/charts/tunedrop-chart/templates/service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: tunedrop + labels: + app: tunedrop +spec: + type: ClusterIP + selector: + app: tunedrop + ports: + - port: 80 + targetPort: 8000 + protocol: TCP + name: http