Skip to content
Snippets Groups Projects
apps-job.yml 639 B
Newer Older
Hugo Renard's avatar
Hugo Renard committed
apiVersion: batch/v1
kind: Job
metadata:
  name: ${FQDN}-apps
Hugo Renard's avatar
Hugo Renard committed
  namespace: ${NS}
Hugo Renard's avatar
Hugo Renard committed
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
        - name: scim
          image: libresh/rc-apps-mgr-job:44749827-2022-05-06
          env:
            - name: HOST
              value: http://${FQDN}-app:3000
Hugo Renard's avatar
Hugo Renard committed
            - name: USERNAME
Hugo Renard's avatar
Hugo Renard committed
              valueFrom:
Hugo Renard's avatar
Hugo Renard committed
                configMapKeyRef:
Hugo Renard's avatar
Hugo Renard committed
                  key: ADMIN_USERNAME
                  name: ${FQDN}-config
Hugo Renard's avatar
Hugo Renard committed
            - name: PASSWORD
Hugo Renard's avatar
Hugo Renard committed
              valueFrom:
                secretKeyRef:
                  key: ADMIN_PASS
                  name: ${FQDN}-app