X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fsimulator-group%2Fpolicy_agent%2Fapp.yaml;h=269d9ca47b654d04d9ba4bd70bd060bd09da99f9;hb=a69cd90b798f1a25820d742710bcd13dfd1c4c60;hp=bbe8fae57682734358de05b2dcf5326a3991294c;hpb=7682abb5a05160aeb83004a4e56c36e302eded1e;p=nonrtric.git diff --git a/test/simulator-group/policy_agent/app.yaml b/test/simulator-group/policy_agent/app.yaml index bbe8fae5..269d9ca4 100644 --- a/test/simulator-group/policy_agent/app.yaml +++ b/test/simulator-group/policy_agent/app.yaml @@ -17,6 +17,9 @@ 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 @@ -29,6 +32,10 @@ spec: volumeMounts: - mountPath: $POLICY_AGENT_CONFIG_MOUNT_PATH name: pa-conf-name +# volumeMounts: + - mountPath: $POLICY_AGENT_CONTAINER_MNT_DIR + name: pa-pv-data-name +# volumeMounts: - mountPath: $POLICY_AGENT_DATA_MOUNT_PATH name: pa-data-name volumes: @@ -39,4 +46,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: +