2 # SPDX-License-Identifier: EPL-1.0
3 ##############################################################################
4 # Copyright (c) 2021 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
16 name: {{ include "opendaylight.fullname" . }}
18 {{- if not .Values.autoscaling.enabled }}
19 replicas: {{ .Values.replicaCount }}
21 serviceName: {{ include "opendaylight.fullname" . }}
24 {{- include "opendaylight.selectorLabels" . | nindent 6 }}
27 {{- with .Values.podAnnotations }}
29 {{- toYaml . | nindent 8 }}
32 {{- include "opendaylight.selectorLabels" . | nindent 8 }}
34 {{- with .Values.imagePullSecrets }}
36 {{- toYaml . | nindent 8 }}
38 serviceAccountName: {{ include "opendaylight.serviceAccountName" . }}
40 {{- toYaml .Values.podSecurityContext | nindent 8 }}
44 command: ['chown','8181','/data']
46 - name: {{ .Values.persistence.volName }}
47 mountPath: {{ .Values.persistence.mountPath }}
49 - name: {{ .Chart.Name }}
51 {{- toYaml .Values.securityContext | nindent 12 }}
52 image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
53 imagePullPolicy: {{ .Values.image.pullPolicy }}
54 command: ['bash','-c','bash -x /scripts/startodl.sh']
57 value: "{{ .Values.config.features }}"
59 value: "{{ .Values.config.javaHome}}"
61 value: "-Xms{{.Values.config.javaOptions.minMemory}} -Xmx{{.Values.config.javaOptions.maxMemory}}"
62 - name: EXTRA_JAVA_OPTS
63 value: "-XX:+UseG1GC -XX:MaxGCPauseMillis={{.Values.config.javaOptions.maxGCPauseMillis}} -XX:ParallelGCThreads={{.Values.config.javaOptions.parallelGCThreads}} -XX:+ParallelRefProcEnabled -XX:+UseStringDeduplication {{.Values.config.javaOptions.gcLogOptions}}"
66 containerPort: {{ .Values.service.port }}
70 port: {{ .Values.service.port }}
71 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
72 periodSeconds: {{ .Values.readiness.periodSeconds }}
74 {{- toYaml .Values.resources | nindent 12 }}
76 - name: {{ .Values.persistence.volName }}
77 mountPath: {{ .Values.persistence.mountPath }}
80 {{- with .Values.nodeSelector }}
82 {{- toYaml . | nindent 8 }}
84 {{- with .Values.affinity }}
86 {{- toYaml . | nindent 8 }}
88 {{- with .Values.tolerations }}
90 {{- toYaml . | nindent 8 }}
95 name: {{ include "opendaylight.fullname" . }}
96 {{ if not .Values.persistence.enabled }}
97 - name: {{ .Values.persistence.volName }}
100 volumeClaimTemplates:
102 name: {{ .Values.persistence.volName }}
105 - {{ .Values.persistence.accessMode }}
106 storageClassName: {{ .Values.persistence.storageClass }}
109 storage: {{ .Values.persistence.size }}