Dan K
2019-07-16 698457ac05ca34aff02b1e7fc83c542540e3f9f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
apiVersion: "v1"
kind: "DeploymentConfig"
metadata:
  annotations:
    fabric8.io/iconUrl: "img/icons/camel.svg"
  labels:
    provider: "fabric8"
    project: "${env.RHT_OCP4_DEV_USER}-${project.artifactId}"
    version: "1.0"
    group: "com.redhat.training"
  name: "${project.artifactId}"
spec:
  replicas: 1
  selector:
    project: "${env.RHT_OCP4_DEV_USER}-${project.artifactId}"
    provider: "fabric8"
    group: "com.redhat.training"
  strategy:
    rollingParams:
      timeoutSeconds: 10800
    type: "Rolling"
  template:
    metadata:
      annotations:
        fabric8.io/iconUrl: "img/icons/camel.svg"
      labels:
        provider: "fabric8"
        project: "${env.RHT_OCP4_DEV_USER}-${project.artifactId}"
        version: "1.0"
        group: "com.redhat.training"
    spec:
      containers:
      - image: "${project.artifactId}:1.0"
        imagePullPolicy: "IfNotPresent"
        name: "spring-boot"
        ports:
          - containerPort: 8080
            name: "http"
            protocol: "TCP"
        #- containerPort: 9081
        #  name: "rest"
        #  protocol: "TCP"
        securityContext:
          privileged: false
        #readinessProbe:
        #  httpGet:
        #    path: "/hello/health"
        #    port: 9081
        #  initialDelaySeconds: 20
  triggers:
  - type: "ConfigChange"
  - imageChangeParams:
      automatic: true
      containerNames:
      - "spring-boot"
      from:
        kind: "ImageStreamTag"
        name: "${project.artifactId}:1.0"
    type: "ImageChange"