apiVersion: batch/v1
kind: Job
metadata:
  name: ${FQDN}-apps
  namespace: ${NS}
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: rc-apps-mgr
          image: libresh/rc-apps-mgr-job:41dce4f7-2022-05-06
          env:
            - name: HOST
              value: http://${FQDN}-app:3000
            - name: USERNAME
              valueFrom:
                configMapKeyRef:
                  key: ADMIN_USERNAME
                  name: ${FQDN}-config
            - name: PASSWORD
              valueFrom:
                secretKeyRef:
                  key: ADMIN_PASS
                  name: ${FQDN}-app
