You must integrate Sidecar with the DU Pod to push the PTP notifications to the DU application.

Procedure

  1. Install the Sidecar image from vmwaresaas.jfrog.io/registry/ptp-ocloud-notifications-sidecar:1.0.0.
  2. Modify the helm charts for the pod.
  3. To run sidecar container, specify the following in the values.yaml file of the DU pod helm charts:
    sidecarContainers:
      - name: sidecar
        image: vmwaresaas.jfrog.io/registry/ptp-ocloud-notifications-sidecar:1.0.0
        imagePullPolicy: Always
        command: ["python3"]
        args: ["run-ptpclientfunction.py"]
        tty: true
        env:
          - name: THIS_NODE_NAME
            valueFrom:
              fieldRef:
                fieldPath: spec.nodeName
          - name: TRANSPORT_USER
            value: "admin"
          - name: TRANSPORT_PASS
            value: "admin"
          - name: TRANSPORT_PORT
            value: "5672"
        volumeMounts:
          - name: sidecardatastore
            mountPath: /opt/datastore
            readOnly: false
     
    sidecarVolumes:
      - name: sidecardatastore
        hostPath:
          path: /home/capv
          type: Directory
  4. In the pod spec yaml file, specify the following under containers:
    {{- with .Values.sidecarContainers }}
      {{- toYaml . | nindent 8 }}
    {{- end }}