---
apiVersion: v1
kind: List
items:
- apiVersion: v1
  kind: Service
  metadata:
    annotations:
      fabric8.io/git-commit: bfc1a6ae446ddc38457ae62cf3b9b50dd9d6f467
      fabric8.io/git-branch: release-v1.1.42
      prometheus.io/scrape: "true"
      prometheus.io/port: "9779"
    labels:
      expose: "true"
      provider: fabric8
      project: example-java
      version: 1.1.42
      group: io.fabric8.funktion.examples
    name: example-java
  spec:
    ports:
    - name: http
      port: 80
      protocol: TCP
      targetPort: 8080
    selector:
      project: example-java
      provider: fabric8
      group: io.fabric8.funktion.examples
- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    annotations:
      fabric8.io/git-commit: bfc1a6ae446ddc38457ae62cf3b9b50dd9d6f467
      fabric8.io/git-branch: release-v1.1.42
      fabric8.io/metrics-path: dashboard/file/camel-routes.json/?var-project=example-java&var-version=1.1.42
    labels:
      provider: fabric8
      project: example-java
      version: 1.1.42
      group: io.fabric8.funktion.examples
    name: example-java
  spec:
    replicas: 1
    selector:
      project: example-java
      provider: fabric8
      group: io.fabric8.funktion.examples
    strategy:
      rollingParams:
        timeoutSeconds: 10800
      type: Rolling
    template:
      metadata:
        annotations:
          fabric8.io/git-commit: bfc1a6ae446ddc38457ae62cf3b9b50dd9d6f467
          fabric8.io/git-branch: release-v1.1.42
          fabric8.io/metrics-path: dashboard/file/camel-routes.json/?var-project=example-java&var-version=1.1.42
        labels:
          provider: fabric8
          project: example-java
          version: 1.1.42
          group: io.fabric8.funktion.examples
      spec:
        containers:
        - env:
          - name: KUBERNETES_NAMESPACE
            valueFrom:
              fieldRef:
                fieldPath: metadata.namespace
          image: examples/example-java:1.1.42
          imagePullPolicy: IfNotPresent
          name: spring-boot
          ports:
          - containerPort: 8080
            name: http
            protocol: TCP
          - containerPort: 9779
            name: prometheus
            protocol: TCP
          - containerPort: 8778
            name: jolokia
            protocol: TCP
          readinessProbe:
            httpGet:
              path: /health
              port: 8080
              scheme: HTTP
            initialDelaySeconds: 180
          securityContext:
            privileged: false
    triggers:
    - type: ConfigChange
