6363{{- end }}
6464{{ include "openwhisk.readiness.waitForCouchDB" . | indent 6 }}
6565{{- if eq .Values.activationStoreBackend "ElasticSearch" }}
66- # The controller must wait for elasticsearch to be ready before it starts
66+ # The controller must wait for elasticsearch to be ready before it starts
6767{{ include "openwhisk.readiness.waitForElasticSearch" . | indent 6 }}
6868{{- end }}
69+ volumes :
70+ - name : jmxremote-secret
71+ secret :
72+ secretName : {{ .Release.Name }}-jmxremote-secret
6973 # The lean controller requires invoker volumes mounts
7074{{- if .Values.controller.lean }}
7175{{ include "openwhisk.invoker.volumes" . }}
@@ -84,10 +88,21 @@ spec:
8488 ports :
8589 - name : controller
8690 containerPort : {{ .Values.controller.port }}
91+ - name : jmx
92+ jmxPort : {{ .Values.jmx.port }}
93+ - name : jmx-rmi
94+ jmxPort : {{ .Values.jmx.rmiPort }}
8795 - name : akka-remoting
8896 containerPort : 2552
8997 - name : akka-mgmt-http
9098 containerPort : 19999
99+ volumeMounts :
100+ - name : jmxremote-secret
101+ mountPath : " /conf/jmxremote.access"
102+ subPath : " jmxremote.access"
103+ - name : jmxremote-secret
104+ mountPath : " /conf/jmxremote.password"
105+ subPath : " jmxremote.password"
91106{{- if .Values.controller.lean }}
92107{{ include "openwhisk.invoker.volume_mounts" . }}
93108{{- end }}
@@ -127,7 +142,7 @@ spec:
127142
128143 # Java options
129144 - name : " JAVA_OPTS"
130- value : " -Xmx{{- .Values.controller.jvmHeapMB -}}M {{ .Values.controller.jvmOptions }}"
145+ 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 }} "
131146
132147 # specific controller arguments
133148 - name : " CONTROLLER_OPTS"
0 commit comments