Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Update helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
agile6v committed Apr 3, 2019
1 parent 17a0249 commit 50c005a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
20 changes: 6 additions & 14 deletions tools/helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
name: squeeze-ingress
labels:
app.kubernetes.io/name: {{ include "squeeze.name" . }}
helm.sh/chart: {{ include "squeeze.chart" . }}
Expand All @@ -12,26 +12,18 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
- path: /
backend:
serviceName: squeeze-master
servicePort: 9998
{{- end }}
- path: /api/*
backend:
serviceName: squeeze-web
servicePort: 9991
{{- end }}
{{- end }}
19 changes: 18 additions & 1 deletion tools/helm/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "squeeze.fullname" . }}
name: squeeze-master
labels:
app.kubernetes.io/name: {{ include "squeeze.name" . }}
helm.sh/chart: {{ include "squeeze.chart" . }}
Expand All @@ -17,3 +17,20 @@ spec:
app: squeeze
role: master
tier: backend
---
apiVersion: v1
kind: Service
metadata:
name: squeeze-web
labels:
app.kubernetes.io/name: {{ include "squeeze.name" . }}
helm.sh/chart: {{ include "squeeze.chart" . }}
spec:
ports:
- port: 9991
name: "http"
targetPort: 9991
selector:
app: squeeze
role: web
tier: backend
3 changes: 2 additions & 1 deletion tools/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ ingress:
# kubernetes.io/tls-acme: "true"
hosts:
- host: squeeze-master.default
paths: ["/"]
paths:
- path

tls: []
# - secretName: chart-example-tls
Expand Down

0 comments on commit 50c005a

Please sign in to comment.