X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=nonrtric%2Fhelm%2Fenrichmentservice%2Ftemplates%2Fstatefulset.yaml;fp=nonrtric%2Fhelm%2Fenrichmentservice%2Ftemplates%2Fdeployment.yaml;h=7bc9a75b031694219e97ecf941b276f10e391095;hb=e046844b54bb936b8015dd38de3abbbc7e8a4f2d;hp=11a18747c9b53535322431b20083914a0adc9181;hpb=866a34f4a876d61246b67ee6fc9ec066c7960ad2;p=it%2Fdep.git diff --git a/nonrtric/helm/enrichmentservice/templates/deployment.yaml b/nonrtric/helm/enrichmentservice/templates/statefulset.yaml similarity index 96% rename from nonrtric/helm/enrichmentservice/templates/deployment.yaml rename to nonrtric/helm/enrichmentservice/templates/statefulset.yaml index 11a18747..7bc9a75b 100644 --- a/nonrtric/helm/enrichmentservice/templates/deployment.yaml +++ b/nonrtric/helm/enrichmentservice/templates/statefulset.yaml @@ -14,7 +14,7 @@ # limitations under the License. # ################################################################################ -kind: Deployment +kind: StatefulSet apiVersion: apps/v1 metadata: name: {{ include "common.name.enrichmentservice" . }} @@ -28,6 +28,7 @@ metadata: annotations: deployment.kubernetes.io/revision: '1' spec: + serviceName: {{ include "common.name.enrichmentservice" . }} replicas: 1 selector: matchLabels: @@ -64,11 +65,11 @@ spec: - name: {{ include "common.name.enrichmentservice" . }}-enrichment-config mountPath: /opt/app/enrichment-coordinator-service/config - name: {{ include "common.name.enrichmentservice" . }}-ei-jobs-vol - mountPath: /var/enrichment-coordinator-service/database + mountPath: /var/enrichment-coordinator-service volumes: - name: {{ include "common.name.enrichmentservice" . }}-enrichment-config configMap: name: {{ include "common.name.enrichmentservice" . }}-configmap - name: {{ include "common.name.enrichmentservice" . }}-ei-jobs-vol persistentVolumeClaim: - claimName: {{ include "common.name.enrichmentservice" . }}-pvc \ No newline at end of file + claimName: {{ include "common.name.enrichmentservice" . }}-pvc