File tree 4 files changed +40
-1
lines changed
charts/cloudhealth-collector
4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ apiVersion: v2
5
5
name : cloudhealth-collector
6
6
description : A Helm chart for CloudHealth's Kubernetes Collector Agent
7
7
type : application
8
- version : 4.4.1
8
+ version : 4.5.0
9
9
appVersion : " 5.2.0"
10
10
home : https://cloudhealth.vmware.com/
11
11
icon : https://d1fto35gcfffzn.cloudfront.net/images/Tanzu-Logomark.svg
Original file line number Diff line number Diff line change 32
32
securityContext : {{- toYaml . | nindent 8 }}
33
33
{{- end }}
34
34
priorityClassName : {{ .Values.priorityClassName }}
35
+ {{- if .Values.proxy.sslCert }}
36
+ initContainers :
37
+ - name : " {{ .Chart.Name }}-pem-to-truststore"
38
+ image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
39
+ env :
40
+ - name : ca_bundle
41
+ value : {{ .Values.proxy.caBundlePath }}
42
+ - name : truststore_jks
43
+ value : {{ .Values.proxy.truststorePath }}
44
+ - name : truststore_pwd
45
+ valueFrom :
46
+ secretKeyRef :
47
+ name : {{ include "cloudhealth-collector.secretName" . }}
48
+ key : certPassword
49
+ command : ['/bin/bash']
50
+ args : ['-c', "csplit -z -f crt- $ca_bundle '/-----BEGIN CERTIFICATE-----/' '{*}' && for file in crt-*; do keytool -import -noprompt -keystore $truststore_jks -file $file -storepass $truststore_pwd -alias service-$file; done"]
51
+ volumeMounts :
52
+ - name : truststore-volume
53
+ mountPath : /etc/ssl/certs
54
+ {{- end }}
35
55
containers :
36
56
- name : {{ .Chart.Name }}
37
57
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
69
89
value : {{ .Values.collectionIntervalSecs | quote }}
70
90
- name : CHT_JVM_MEM
71
91
value : {{ .Values.jvmMemory }}
92
+ {{- if .Values.proxy.sslCert }}
93
+ - name : JAVA_OPTS
94
+ value : {{ .Values.proxy.params }}
95
+ {{- end }}
72
96
{{- range .Values.customEnvVars}}
73
97
- name : {{ .name }}
74
98
value : {{ .value }}
@@ -101,4 +125,8 @@ spec:
101
125
volumes :
102
126
- name : tmpfs
103
127
emptyDir : {}
128
+ {{- if .Values.proxy.sslCert }}
129
+ - name : truststore-volume
130
+ emptyDir : {}
131
+ {{- end }}
104
132
{{- end }}
Original file line number Diff line number Diff line change @@ -13,4 +13,7 @@ metadata:
13
13
type : Opaque
14
14
data :
15
15
apiToken : {{ .Values.apiToken | b64enc | quote }}
16
+ {{- if .Values.proxy.sslCert }}
17
+ certPassword : {{ .Values.proxy.certPassword | quote }}
18
+ {{- end }}
16
19
{{- end }}
Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ containerSecurityContext: {
65
65
capabilities : {drop: [all]}
66
66
}
67
67
68
+ proxy :
69
+ sslCert : false
70
+ # -Dhttps.proxyHost=$PROXY_SERVER -Dhttps.proxyPort=$PROXY_PORT -Dhttps.nonProxyHosts=kubernetes.default.svc -Djavax.net.ssl.trustStore=/etc/ssl/certs/truststore.jks -Djavax.net.ssl.trustStorePassword=changeit
71
+ params : " "
72
+ certPassword : " "
73
+ caBundlePath : " /etc/ssl/certs/bundle.pem"
74
+ truststorePath : " /etc/ssl/certs/truststore.jks"
75
+
68
76
resources :
69
77
limits :
70
78
cpu : 1000m
You can’t perform that action at this time.
0 commit comments