X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fa1simulator%2Ftemplates%2Fstatefulset.yaml;h=865e2ca002e5030da0b018bfae1a8f271813058a;hb=e9f208bb87c52bdb221775f5e3dad7d661b74b50;hp=bc65edef5ef22dc91c00eccef86232cac556a365;hpb=0faae789812e0f84949d26c415e8cb2cce1d94d5;p=it%2Fdep.git diff --git a/nonrtric/helm/a1simulator/templates/statefulset.yaml b/nonrtric/helm/a1simulator/templates/statefulset.yaml index bc65edef..865e2ca0 100644 --- a/nonrtric/helm/a1simulator/templates/statefulset.yaml +++ b/nonrtric/helm/a1simulator/templates/statefulset.yaml @@ -17,7 +17,7 @@ kind: StatefulSet apiVersion: apps/v1 metadata: - name: {{ .Values.a1simulator.instanceName }} + name: {{ .Values.a1simulator.oscVersion.name }} namespace: {{ include "common.namespace.nonrtric" . }} generation: 1 labels: @@ -28,12 +28,12 @@ metadata: annotations: deployment.kubernetes.io/revision: '1' spec: - replicas: {{ .Values.a1simulator.replicaCount }} + replicas: {{ .Values.a1simulator.oscVersion.replicaCount }} selector: matchLabels: app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.a1simulator" . }} release: {{ .Release.Name }} - serviceName: {{ .Values.a1simulator.instanceName }} + serviceName: {{ .Values.a1simulator.name }} template: metadata: labels: @@ -52,4 +52,51 @@ spec: tcpSocket: port: {{ .Values.a1simulator.service.internalPort }} initialDelaySeconds: 5 - periodSeconds: 15 \ No newline at end of file + periodSeconds: 15 + env: + - name: A1_VERSION + value: OSC_2.1.0 + +--- +kind: StatefulSet +apiVersion: apps/v1 +metadata: + name: {{ .Values.a1simulator.stdVersion.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.stdVersion.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.internalPort }} + protocol: TCP + readinessProbe: + tcpSocket: + port: {{ .Values.a1simulator.service.internalPort }} + initialDelaySeconds: 5 + periodSeconds: 15 + env: + - name: A1_VERSION + value: STD_1.1.3 \ No newline at end of file