6262{{ include "openwhisk.readiness.waitForKafka" . | indent 6 }}
6363{{- end }}
6464{{ include "openwhisk.readiness.waitForCouchDB" . | indent 6 }}
65+
66+ volumes :
67+ - name : jmxremote-secret
68+ secret :
69+ secretName : {{ .Release.Name }}-jmxremote-secret
6570 # The lean controller requires invoker volumes mounts
6671{{- if .Values.controller.lean }}
6772{{ include "openwhisk.invoker.volumes" . }}
@@ -80,10 +85,21 @@ spec:
8085 ports :
8186 - name : controller
8287 containerPort : {{ .Values.controller.port }}
88+ - name : jmx
89+ jmxPort : {{ .Values.jmx.port }}
90+ - name : jmx-rmi
91+ jmxPort : {{ .Values.jmx.rmiPort }}
8392 - name : akka-remoting
8493 containerPort : 2552
8594 - name : akka-mgmt-http
8695 containerPort : 19999
96+ volumeMounts :
97+ - name : jmxremote-secret
98+ mountPath : " /conf/jmxremote.access"
99+ subPath : " jmxremote.access"
100+ - name : jmxremote-secret
101+ mountPath : " /conf/jmxremote.password"
102+ subPath : " jmxremote.password"
87103{{- if .Values.controller.lean }}
88104{{ include "openwhisk.invoker.volume_mounts" . }}
89105{{- end }}
@@ -123,7 +139,7 @@ spec:
123139
124140 # Java options
125141 - name : " JAVA_OPTS"
126- value : " -Xmx{{- .Values.controller.jvmHeapMB -}}M {{ .Values.controller.jvmOptions }}"
142+ value : " -Xmx{{- .Values.controller.jvmHeapMB -}}M {{ .Values.controller.jvmOptions }} {{ if .Values.jmx.enabled }} {{ .Values.jmx.jvmCommonArgs }} -Dcom.sun.management.jmxremote.rmi.port={{ .Values.jmx.rmiPort }} -Dcom.sun.management.jmxremote.port={{ .Values.jmx.port }} {{ end }} "
127143
128144 # specific controller arguments
129145 - name : " CONTROLLER_OPTS"
0 commit comments