added repo
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{{ $dynamicPort := 80 | int }}
|
||||
---
|
||||
apiVersion: projectcontour.io/v1
|
||||
kind: HTTPProxy
|
||||
metadata:
|
||||
namespace: {{ .Values.Namespace }}
|
||||
name: {{ .Values.Namespace }}
|
||||
annotations:
|
||||
projectcontour.io/ingress.class: {{ .Values.ingress.ingressClassName }}
|
||||
spec:
|
||||
ingressClassName: {{ .Values.ingress.ingressClassName }}
|
||||
routes:
|
||||
- services:
|
||||
- name: {{ include "loadtester.fullname" . }}
|
||||
port: {{ $dynamicPort }}
|
||||
{{- if .Values.ingress.slowStart.enabled }}
|
||||
slowStartPolicy:
|
||||
window: {{ .Values.ingress.slowStart.window }}
|
||||
aggression: {{ .Values.ingress.slowStart.aggression | float64 | squote }}
|
||||
minWeightPercent: {{ .Values.ingress.slowStart.minPercent }}
|
||||
{{- end }}
|
||||
{{- if .enableWebsocket }}
|
||||
enableWebsockets: true
|
||||
{{- end }}
|
||||
{{- if .Values.contourResponseTimeout }}
|
||||
timeoutPolicy:
|
||||
response: {{ .Values.contourResponseTimeout }}
|
||||
{{- end }}
|
||||
---
|
||||
{{ $dynamicPort = add1 $dynamicPort }}
|
||||
|
||||
Reference in New Issue
Block a user