This repository was archived by the owner on Jan 16, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathproxy-deployment.yaml
More file actions
130 lines (130 loc) · 6.05 KB
/
proxy-deployment.yaml
File metadata and controls
130 lines (130 loc) · 6.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{{- if .Values.proxy.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name : {{ template "wavefront.fullname" . }}
helm.sh/chart: {{ template "wavefront.chart" . }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io.instance: {{ .Release.Name | quote }}
app.kubernetes.io/component: proxy
name: {{ template "wavefront.proxy.fullname" . }}
spec:
replicas: {{ .Values.proxy.replicas }}
selector:
matchLabels:
app.kubernetes.io/name : {{ template "wavefront.fullname" .}}
app.kubernetes.io/component: proxy
template:
metadata:
labels:
app.kubernetes.io/name : {{ template "wavefront.fullname" .}}
app.kubernetes.io/component: proxy
spec:
containers:
- name: wavefront-proxy
image: {{ .Values.proxy.image.repository }}:{{ .Values.proxy.image.tag }}
imagePullPolicy: {{ .Values.proxy.image.pullPolicy }}
env:
- name: WAVEFRONT_URL
value: {{ .Values.wavefront.url }}/api
- name: WAVEFRONT_TOKEN
valueFrom:
secretKeyRef:
name: {{ template "wavefront.fullname" . }}
key: api-token
- name: WAVEFRONT_PROXY_ARGS
value: {{ .Values.proxy.args }}
{{- if .Values.proxy.tracePort }} --traceListenerPorts {{ .Values.proxy.tracePort }}{{- end -}}
{{- if .Values.proxy.jaegerPort }} --traceJaegerListenerPorts {{ .Values.proxy.jaegerPort }}{{- end -}}
{{- if .Values.proxy.traceJaegerHttpListenerPort }} --traceJaegerHttpListenerPorts {{ .Values.proxy.traceJaegerHttpListenerPort }}{{- end -}}
{{- if .Values.proxy.zipkinPort }} --traceZipkinListenerPorts {{ .Values.proxy.zipkinPort }}{{- end -}}
{{- if .Values.proxy.traceSamplingRate }} --traceSamplingRate {{ .Values.proxy.traceSamplingRate }}{{- end -}}
{{- if .Values.proxy.traceSamplingDuration }} --traceSamplingDuration {{ .Values.proxy.traceSamplingDuration }}{{- end -}}
{{- if .Values.proxy.traceJaegerApplicationName }} --traceJaegerApplicationName {{ .Values.proxy.traceJaegerApplicationName }}{{- end -}}
{{- if .Values.proxy.traceZipkinApplicationName }} --traceZipkinApplicationName {{ .Values.proxy.traceZipkinApplicationName }}{{- end -}}
{{- if .Values.proxy.histogramPort }} --histogramDistListenerPorts {{ .Values.proxy.histogramPort }}{{- end -}}
{{- if .Values.proxy.histogramMinutePort }} --histogramMinuteListenerPorts {{ .Values.proxy.histogramMinutePort }}{{- end -}}
{{- if .Values.proxy.histogramHourPort }} --histogramHourListenerPorts {{ .Values.proxy.histogramHourPort }}{{- end -}}
{{- if .Values.proxy.histogramDayPort }} --histogramDayListenerPorts {{ .Values.proxy.histogramDayPort }}{{- end -}}
{{- if .Values.proxy.deltaCounterPort }} --deltaCounterPorts {{ .Values.proxy.deltaCounterPort }}{{- end -}}
{{- if .Values.proxy.preprocessor }} --preprocessorConfigFile /etc/wavefront/wavefront-proxy/preprocessor/rules.yaml{{- end -}}
{{- if .Values.proxy.filebeatPort }} --filebeatPort {{ .Values.proxy.filebeatPort }}{{- end -}}
{{- if .Values.proxy.rawLogsPort }} --rawLogsPort {{ .Values.proxy.rawLogsPort }}{{- end -}}
{{- if .Values.proxy.logsingestion }} --logsingestionFile /etc/wavefront/wavefront-proxy/logsingestion.yaml{{- end -}}
{{- if .Values.proxy.heap }}
- name: JAVA_HEAP_USAGE
value: {{ .Values.proxy.heap | quote }}
{{- end }}
ports:
- containerPort: {{ .Values.proxy.port }}
protocol: TCP
{{- if .Values.proxy.tracePort }}
- containerPort: {{ .Values.proxy.tracePort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.jaegerPort }}
- containerPort: {{ .Values.proxy.jaegerPort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.traceJaegerHttpListenerPort }}
- containerPort: {{ .Values.proxy.traceJaegerHttpListenerPort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.zipkinPort }}
- containerPort: {{ .Values.proxy.zipkinPort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.histogramPort }}
- containerPort: {{ .Values.proxy.histogramPort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.histogramMinutePort }}
- containerPort: {{ .Values.proxy.histogramMinutePort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.histogramHourPort }}
- containerPort: {{ .Values.proxy.histogramHourPort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.histogramDayPort }}
- containerPort: {{ .Values.proxy.histogramDayPort }}
protocol: TCP
{{- end }}
{{- if .Values.proxy.deltaCounterPort }}
- containerPort: {{ .Values.proxy.deltaCounterPort }}
protocol: TCP
{{- end }}
resources:
{{ toYaml .Values.proxy.resources | trim | indent 10 }}
securityContext:
privileged: false
volumeMounts:
{{- if .Values.proxy.preprocessor }}
- name: preprocessor
mountPath: /etc/wavefront/wavefront-proxy/preprocessor
{{- end }}
{{- if .Values.proxy.logsingestion }}
- name: logsingestion
mountPath: /etc/wavefront/wavefront-proxy/logsingestion.yaml
subPath: logsingestion.yaml
{{- end }}
{{- if .Values.proxy.priorityClassName }}
priorityClassName: {{ .Values.proxy.priorityClassName }}
{{- end }}
{{- if .Values.proxy.tolerations }}
tolerations:
{{ toYaml .Values.proxy.tolerations | indent 6 }}
{{- end }}
volumes:
{{- if .Values.proxy.preprocessor }}
- name: preprocessor
configMap:
name: {{ template "wavefront.proxy.fullname" . }}-preprocessor
{{- end }}
{{- if .Values.proxy.logsingestion }}
- name: logsingestion
configMap:
name: {{ template "wavefront.proxy.fullname" . }}-logsingestion
{{- end }}
{{- end }}