apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    component: openlibertydevfile
  name: openlibertydevfile
spec:
  replicas: 1
  selector:
    matchLabels:
      component: openlibertydevfile
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        component: openlibertydevfile
      name: openlibertydevfile
    spec:
      initContainers:
      - args:
        - -r
        - /opt/odo-init/.
        - /opt/odo/
        command:
        - /usr/bin/cp
        image: jeevandroid/odo-init-image
        imagePullPolicy: IfNotPresent
        name: copy-supervisord
        resources: {}
        securityContext:
          capabilities:
            drop:
            - MKNOD
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /opt/odo/
          name: odo-supervisord-shared-data
      containers:
      - args:
        - -c
        - "/opt/odo/bin/supervisord -c /opt/odo/conf/supervisor.conf"
        command:
        - /bin/sh
        image: alpine:latest
        imagePullPolicy: Always
        name: devruntime
        resources:
          limits:
            memory: 768Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /opt/odo
          name: odo-supervisord-shared-data
      restartPolicy: Always
      securityContext:
        fsGroup: 1001
        runAsUser: 1001
      volumes:
      - name: odo-supervisord-shared-data
        emptyDir: {}