{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
+ podManagementPolicy: Parallel
serviceName: {{ include "opendaylight.fullname" . }}
selector:
matchLabels:
volumeMounts:
- name: {{ .Values.persistence.volName }}
mountPath: {{ .Values.persistence.mountPath }}
+ {{- if .Values.config.isClusterDeployment }}
+ - name: inject-cluster-related-conf
+ image: busybox
+ command: ["/bin/sh"]
+ args: ["-c", "cp /config-input/akka.conf /config/akka.conf"]
+ volumeMounts:
+ - mountPath: /config-input/akka.conf
+ name: config-input
+ subPath: akka.conf
+ - mountPath: /config
+ name: update-conf
+ {{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
value: "-Xms{{.Values.config.javaOptions.minMemory}} -Xmx{{.Values.config.javaOptions.maxMemory}}"
- name: EXTRA_JAVA_OPTS
value: "-XX:+UseG1GC -XX:MaxGCPauseMillis={{.Values.config.javaOptions.maxGCPauseMillis}} -XX:ParallelGCThreads={{.Values.config.javaOptions.parallelGCThreads}} -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication {{.Values.config.javaOptions.gcLogOptions}}"
+ - name: ODL_REPLICAS
+ value: "{{ .Values.replicaCount }}"
+ - name: IS_CLUSTER_ENABLED
+ value: "{{ .Values.config.isClusterDeployment }}"
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
+ {{- if .Values.config.isClusterDeployment }}
+ - name: cluster
+ containerPort: {{ .Values.service.clusterPort }}
+ protocol: TCP
+ {{- end }}
readinessProbe:
tcpSocket:
port: {{ .Values.service.port }}
mountPath: {{ .Values.persistence.mountPath }}
- name: scripts
mountPath: /scripts
+ {{- if .Values.config.isClusterDeployment }}
+ - mountPath: {{ .Values.cluster.salConfigDir }}/{{ .Values.cluster.salConfigVersion}}/sal-clustering-config-{{ .Values.cluster.salConfigVersion}}-akkaconf.xml
+ name: update-conf
+ subPath: akka.conf
+ {{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
volumes:
- name: scripts
configMap:
- name: {{ include "opendaylight.fullname" . }}
+ name: {{ include "opendaylight.fullname" . }}-scripts
+ {{- if .Values.config.isClusterDeployment }}
+ - name: config-input
+ configMap:
+ name: {{ include "opendaylight.fullname" . }}-conf
+ defaultMode: 0755
+ - name: update-conf
+ emptyDir:
+ medium: Memory
+ {{- end }}
{{ if not .Values.persistence.enabled }}
- name: {{ .Values.persistence.volName }}
emptyDir: {}