X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fsimulator-group%2Fpolicy_agent%2Fapp.yaml;h=3f1fcfe383dc29aac769f2ca3ead8090a58c8b05;hb=aa73209488503ee51db068c6143c7d4ec298a036;hp=ddbae37269fd9872c1715c1ae16aca18bf78d972;hpb=f0019c8168b9d59f132ba47e939e8aa3ef324b7d;p=nonrtric.git diff --git a/test/simulator-group/policy_agent/app.yaml b/test/simulator-group/policy_agent/app.yaml index ddbae372..3f1fcfe3 100644 --- a/test/simulator-group/policy_agent/app.yaml +++ b/test/simulator-group/policy_agent/app.yaml @@ -17,10 +17,13 @@ spec: run: $POLICY_AGENT_APP_NAME autotest: PA spec: + securityContext: + runAsUser: 0 +# Need to run as root to be able to store files in dir mounted as a hostPath volume containers: - name: $POLICY_AGENT_APP_NAME image: $POLICY_AGENT_IMAGE - imagePullPolicy: Never + imagePullPolicy: $KUBE_IMAGE_PULL_POLICY ports: - name: http containerPort: $POLICY_AGENT_INTERNAL_PORT @@ -29,6 +32,8 @@ spec: volumeMounts: - mountPath: $POLICY_AGENT_CONFIG_MOUNT_PATH name: pa-conf-name + - mountPath: $POLICY_AGENT_CONTAINER_MNT_DIR + name: pa-pv-data-name - mountPath: $POLICY_AGENT_DATA_MOUNT_PATH name: pa-data-name volumes: @@ -39,4 +44,10 @@ spec: - configMap: defaultMode: 420 name: $POLICY_AGENT_DATA_CONFIGMAP_NAME - name: pa-data-name \ No newline at end of file + name: pa-data-name + - persistentVolumeClaim: + claimName: $POLICY_AGENT_DATA_PVC_NAME + name: pa-pv-data-name +# Selector will be set when pod is started first time + nodeSelector: +