Merge "Kong as Ingress Controller"
authorZhe Huang <zhehuang@research.att.com>
Fri, 7 May 2021 15:47:10 +0000 (15:47 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Fri, 7 May 2021 15:47:10 +0000 (15:47 +0000)
nonrtric/helm/enrichmentservice/templates/statefulset.yaml [moved from nonrtric/helm/enrichmentservice/templates/deployment.yaml with 96% similarity]
nonrtric/helm/policymanagementservice/templates/statefulset.yaml [moved from nonrtric/helm/policymanagementservice/templates/deployment.yaml with 95% similarity]

@@ -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
@@ -14,7 +14,7 @@
 #   limitations under the License.                                             #
 ################################################################################
 
-kind: Deployment
+kind: StatefulSet
 apiVersion: apps/v1
 metadata:
   name: {{ include "common.name.policymanagementservice" . }}
@@ -28,6 +28,7 @@ metadata:
   annotations:
     deployment.kubernetes.io/revision: '1'
 spec:
+  serviceName: {{ include "common.name.policymanagementservice" . }}
   replicas: 1
   selector:
     matchLabels:
@@ -62,11 +63,11 @@ spec:
           periodSeconds: {{ .Values.policymanagementservice.liveness.periodSeconds }}
         volumeMounts:
         - name: {{ include "common.name.policymanagementservice" . }}-vardata
-          mountPath: "/var/policy-management-service/database"
+          mountPath: "/var/policy-management-service"
         - name: {{ include "common.name.policymanagementservice" . }}-policy-config
           mountPath: /opt/app/policy-agent/config
         - name: {{ include "common.name.policymanagementservice" . }}-policy-data
-          mountPath: /opt/app/policy-agent/data       
+          mountPath: /opt/app/policy-agent/data
       volumes:
         - name: {{ include "common.name.policymanagementservice" . }}-policy-config
           configMap: