X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fa1simulator%2Ftemplates%2Fstatefulset.yaml;h=939f3a3cf3a6decf5e550738cad8e3072bddaa13;hb=4c590d97d5cc689e8e1f338bd740f8e585a4e0ec;hp=d6dc0b30a33020dd06437bbcb7ba74c88fb1da0b;hpb=8c3573e016c2f12579383b54eef7f62c652e5ff4;p=it%2Fdep.git diff --git a/nonrtric/helm/a1simulator/templates/statefulset.yaml b/nonrtric/helm/a1simulator/templates/statefulset.yaml index d6dc0b30..939f3a3c 100644 --- a/nonrtric/helm/a1simulator/templates/statefulset.yaml +++ b/nonrtric/helm/a1simulator/templates/statefulset.yaml @@ -63,6 +63,8 @@ spec: env: - name: A1_VERSION value: OSC_2.1.0 + - name: ALLOW_HTTP + value: {{ .Values.a1simulator.service.allowHttp | quote}} --- kind: StatefulSet @@ -113,4 +115,58 @@ spec: periodSeconds: {{ .Values.a1simulator.liveness.periodSeconds }} env: - name: A1_VERSION - value: STD_1.1.3 \ No newline at end of file + value: STD_1.1.3 + - name: ALLOW_HTTP + 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}}