X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fa1simulator%2Ftemplates%2Fstatefulset.yaml;h=939f3a3cf3a6decf5e550738cad8e3072bddaa13;hb=ee640dc47d881672e230b849ffabcaab0ac39ddc;hp=63019cd58b7a85c0d1084b70e3a96d38bd84fa23;hpb=56292b9bd56be402b961a083f68d5b56c7b92192;p=it%2Fdep.git diff --git a/nonrtric/helm/a1simulator/templates/statefulset.yaml b/nonrtric/helm/a1simulator/templates/statefulset.yaml index 63019cd5..939f3a3c 100644 --- a/nonrtric/helm/a1simulator/templates/statefulset.yaml +++ b/nonrtric/helm/a1simulator/templates/statefulset.yaml @@ -117,4 +117,56 @@ spec: - name: A1_VERSION value: STD_1.1.3 - name: ALLOW_HTTP - value: {{ .Values.a1simulator.service.allowHttp | quote}} \ No newline at end of file + value: {{ .Values.a1simulator.service.allowHttp | quote}} +--- +kind: StatefulSet +apiVersion: apps/v1 +metadata: + name: {{ .Values.a1simulator.stdVersion2.name }} + namespace: {{ include "common.namespace.nonrtric" . }} + generation: 1 + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} + annotations: + deployment.kubernetes.io/revision: '1' +spec: + replicas: {{ .Values.a1simulator.stdVersion2.replicaCount }} + selector: + matchLabels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }} + release: {{ .Release.Name }} + serviceName: {{ .Values.a1simulator.name }} + template: + metadata: + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }} + release: {{ .Release.Name }} + spec: + hostname: {{ include "common.name.a1simulator" . }} + containers: + - name: {{ include "common.containername.a1simulator" . }} + image: {{ .Values.a1simulator.image.registry }}/{{ .Values.a1simulator.image.name }}:{{ .Values.a1simulator.image.tag }} + imagePullPolicy: {{ .Values.a1simulator.imagePullPolicy }} + ports: + - containerPort: {{ .Values.a1simulator.service.targetPort1 }} + protocol: TCP + - containerPort: {{ .Values.a1simulator.service.targetPort2 }} + protocol: TCP + readinessProbe: + tcpSocket: + port: {{ .Values.a1simulator.service.targetPort1 }} + initialDelaySeconds: {{ .Values.a1simulator.readiness.initialDelaySeconds }} + periodSeconds: {{ .Values.a1simulator.readiness.periodSeconds }} + livenessProbe: + tcpSocket: + port: {{ .Values.a1simulator.service.targetPort1 }} + initialDelaySeconds: {{ .Values.a1simulator.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.a1simulator.liveness.periodSeconds }} + env: + - name: A1_VERSION + value: STD_2.0.0 + - name: ALLOW_HTTP + value: {{ .Values.a1simulator.service.allowHttp | quote}}