[stable/weave-scope] Add ingress to weave-scope-frontend (#14778)

* [stable/weave-scope] Add ingress to weave-scope-frontend

* Add ingress to weave-scope-frontend

Add ingress.yaml, update values.yaml, README.md and Chart.yaml

Signed-off-by: Abhijit Maity <abhijit.maity2010@gmail.com>

* [stable/weave-scope] Bugfix: Update ingress to use correct service name

Update: ingress.yaml with global service name, values.yaml default
ingress path

Signed-off-by: Abhijit Maity <abhijit.maity2010@gmail.com>
This commit is contained in:
Abhijit Maity
2019-06-14 02:34:25 -07:00
committed by Kubernetes Prow Robot
parent 8b6e0c0a9b
commit e9a0f3edc8
6 changed files with 70 additions and 8 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: weave-scope
version: 1.1.1
appVersion: 1.11.1
version: 1.1.2
appVersion: 1.11.2
description: A Helm chart for the Weave Scope cluster visualizer.
keywords:
- containers
+6 -1
View File
@@ -49,7 +49,7 @@ Note that most of this documentation is repeated in `values.yaml`; if you're in
|----------:|:------------|:--------|
| **image.*** | the parameters of the image pulls for this release | |
| **image.repository** | the image that will be used for this release (required) | `weaveworks/scope` |
| **image.tag** | the version of Weave Scope desired for this release (required) | `1.11.1`
| **image.tag** | the version of Weave Scope desired for this release (required) | `1.11.2`
| **image.pullPolicy** | the imagePullPolicy for the container (required): IfNotPresent, Always, or Never | `IfNotPresent`
| **service.*** | the configuration of the service used to access the frontend | |
| **service.name** | the short name desired for the frontend service (optional, but if not specified by the user a value will be calculated) -- this is a global so we can access its value easily from the agent subchart | `weave-scope-app` |
@@ -90,6 +90,11 @@ The **agent** section controls how the Weave Scope node agent pods are installed
| **resources.requests.memory** | memory request in MiB (Mi)| |
| **resources.limits.cpu** | CPU limit in MHz (m) | |
| **resources.limits.memory** | memory limit in MiB (Mi) | |
| **ingress.enabled** | Enables Ingress for weave-scope-frontend | false |
| **ingress.annotations** | Ingress annotations | {} |
| **ingress.paths** | Ingress paths | [] |
| **ingress.hosts** | Ingress accepted hostnames | nil |
| **ingress.tls** | Ingress TLS configuration | [] |
## Other notes
@@ -1,7 +1,7 @@
description: A Helm chart for the Weave Scope cluster visualizer node agent.
name: weave-scope-agent
version: 0.10.0
appVersion: 1.9.1
version: 1.1.2
appVersion: 1.11.2
keywords:
- containers
- dashboard
@@ -1,7 +1,7 @@
description: A Helm chart for the Weave Scope cluster visualizer frontend.
name: weave-scope-frontend
version: 0.10.0
appVersion: 1.9.1
version: 1.1.2
appVersion: 1.11.2
keywords:
- containers
- dashboard
@@ -0,0 +1,39 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := .Values.global.service.name | default (include "toplevel.fullname" .) -}}
{{- $ingressPaths := .Values.ingress.paths -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
{{- include "weave-scope-frontend.helm_std_labels" . | indent 4 }}
component: frontend
name: {{ template "weave-scope-frontend.fullname" . }}
annotations:
{{- include "weave-scope.annotations" . | indent 4 }}
{{- with .Values.ingress.annotations }}
{{- 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: {{ . | quote }}
http:
paths:
{{- range $ingressPaths }}
- path: {{ . }}
backend:
serviceName: {{ $fullName }}
servicePort: http
{{- end }}
{{- end }}
{{- end }}
+19 -1
View File
@@ -4,7 +4,7 @@ global:
# global.image: the image that will be used for this release
image:
repository: weaveworks/scope
tag: 1.11.1
tag: 1.11.2
# global.image.pullPolicy: must be Always, IfNotPresent, or Never
pullPolicy: "IfNotPresent"
# global.service.*: the configuration of the service used to access the frontend
@@ -36,6 +36,24 @@ weave-scope-frontend:
# cpu: ""
# weave-scope-frontend.resources.limits.memory: memory limit in MiB (Mi)
# memory: ""
# weave-scope-frontend Ingress
ingress:
# If true, weave-scope-frontend ingress will be created
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# weave-scope-frontend path(s) must be provided if Ingress is enabled
paths: []
# weave-scope-frontend hostname(s) must be provided if Ingress is enabled
hosts:
- weave-scope.example.test
# Ingress TLS secret
# Must be created manually in the namespace
tls: []
# - secretName: weave-scope-example-tls
# hosts:
# - weave-scope.example.test
# weave-scope-agent.* controls how the Weave Scope node agent pods are installed
weave-scope-agent: