apiVersion: apps.openshift.io/v1
kind: List
items:
- apiVersion: v1
  kind: Service
  metadata:
    labels:
      app: lra-coordinator
      csbexample: saga
    name: lra-coordinator
  spec:
    ports:
    - name: 8080-tcp
      port: 8080
      protocol: TCP
      targetPort: 8080
    selector:
      app: lra-coordinator
      deploymentconfig: lra-coordinator
    type: ClusterIP
- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    labels:
      app: lra-coordinator
      csbexample: saga
    name: lra-coordinator
  spec:
    accessModes:
    - ReadWriteMany
    resources:
      requests:
        storage: 200Mi
- apiVersion: image.openshift.io/v1
  kind: ImageStream
  metadata:
    labels:
      app: lra-coordinator
      csbexample: saga
    name: lra-coordinator
  spec:
    lookupPolicy:
      local: true
    tags:
    - from:
        kind: DockerImage
        name: quay.io/jbosstm/lra-coordinator:latest
      generation: 0
      importPolicy: {}
      name: "latest"
      referencePolicy:
        type: Source
- apiVersion: apps.openshift.io/v1
  kind: DeploymentConfig
  metadata:
    generation: 1
    labels:
      app: lra-coordinator
      csbexample: saga
    name: lra-coordinator
  spec:
    replicas: 1
    selector:
      app: lra-coordinator
      deploymentconfig: lra-coordinator
    strategy:
      type: Recreate
    template:
      metadata:
        labels:
          app: lra-coordinator
          csbexample: saga
          deploymentconfig: lra-coordinator
      spec:
        containers:
        - imagePullPolicy: IfNotPresent
          env:
          - name: AB_JOLOKIA_OFF
            value: "true"
          livenessProbe:
            httpGet:
              path: /lra-coordinator
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 180
          name: lra-coordinator
          ports:
          - containerPort: 8080
            protocol: TCP
          readinessProbe:
            httpGet:
              path: /lra-coordinator
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 10
          volumeMounts:
          - mountPath: /home/jboss/ObjectStore
            name: lra-coordinator-data
        volumes:
        - name: lra-coordinator-data
          persistentVolumeClaim:
            claimName: lra-coordinator
    triggers:
    - type: ConfigChange
    - imageChangeParams:
        automatic: true
        containerNames:
        - lra-coordinator
        from:
          kind: ImageStreamTag
          name: "lra-coordinator:latest"
      type: ImageChange
