Add AppMesh virtual node to load tester chart

This commit is contained in:
stefanprodan
2019-03-20 23:39:34 +02:00
parent 38c40d02e7
commit d65be6ef58
4 changed files with 35 additions and 1 deletions
+1
View File
@@ -16,4 +16,5 @@ maintainers:
keywords:
- canary
- istio
- appmesh
- gitops
+2 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: loadtester
version: 0.2.0
version: 0.3.0
appVersion: 0.2.0
kubeVersion: ">=1.11.0-0"
engine: gotpl
@@ -16,5 +16,6 @@ maintainers:
keywords:
- canary
- istio
- appmesh
- gitops
- load testing
@@ -0,0 +1,27 @@
{{- if .Values.meshName }}
apiVersion: appmesh.k8s.aws/v1alpha1
kind: VirtualNode
metadata:
name: {{ include "loadtester.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "loadtester.name" . }}
helm.sh/chart: {{ include "loadtester.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
meshName: {{ .Values.meshName }}
listeners:
- portMapping:
port: 80
protocol: http
serviceDiscovery:
dns:
hostName: {{ include "loadtester.fullname" . }}.{{ .Release.Namespace }}
{{- if .Values.backends }}
backends:
{{- range .Values.backends }}
- virtualService:
virtualServiceName: {{ . }}
{{- end }}
{{- end }}
{{- end }}
+5
View File
@@ -26,3 +26,8 @@ nodeSelector: {}
tolerations: []
affinity: {}
meshName: ""
#backends:
# - test
# - test2