<p>I am trying to move a Spring boot application onto a openshift 3 cluster.  I am using the Maven fabric8 plugin to generate most of the openshift boilerplate config as well as performing the S2I build.  When my pod starts up I can see in the log output that the application starts up but right after spring boot defaults to the default profile (I didn't set a profile yet) the app crashes and the only output I see in the Openshift log is Killed...  I couldn't find anything of value googleing except it seemed that it could be openJDK that tries to grab more memory than is a available for a single pod.  I added a fabric8 fragment that limits the memory a single container is able to use but I still get the same error when I start up the pod.  I ran OC describe pod and saw a exit code 143.  i'm running out of ideas and would appreciate  Any idea on how I can debug this further/how to resolve this sort of issue?  Also not sure if this is related but even though my application.yml is set up to enable SSL the route that fabric8 creates is always a HTTP URL and not a HTTPS URL.  i'm wondering if that could be the cause of the pod going into a crashloop as the readinessProbe and wellnessProbe can't hit the actuator endpoints?</p>
<p>The console output, maven pom file, application.yml and fabric8 config is below.</p>
<pre><code>console output:


  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.3.RELEASE)

2020-06-27 10:14:06.297  INFO 8 --- [           main] com.xib.vodacom.ans.AnsApplicationKt     : Starting AnsApplicationKt v1.0.9 on vc-ans-1-bzlxc-debug with PID 8 (/deployments/vc-ans-1.0.9.jar started by ? in /deployments)
2020-06-27 10:14:06.396 DEBUG 8 --- [           main] com.xib.vodacom.ans.AnsApplicationKt     : Running with Spring Boot v2.1.3.RELEASE, Spring v5.1.4.RELEASE
2020-06-27 10:14:06.397  INFO 8 --- [           main] com.xib.vodacom.ans.AnsApplicationKt     : No active profile set, falling back to default profiles: default
Killed
sh-4.2$                                                                                                                                     


oc describe pod output:

   Secret (a volume populated by a Secret)
    SecretName:  certs
    Optional:    false
  default-token-8pts4:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-8pts4
    Optional:    false
QoS Class:       Burstable
Node-Selectors:  node-role.kubernetes.io/compute=true
Tolerations:     node.kubernetes.io/memory-pressure:NoSchedule
Events:
  Type     Reason     Age              From                                 Message
  ----     ------     ----             ----                                 -------
  Normal   Scheduled  6m               default-scheduler                    Successfully assigned cx-ans-prod/vc-ans-1-bzlxc to pocpap8zadsas.cc.corp
  Normal   Created    5m (x3 over 6m)  kubelet, asdf.cc.corp  Created container
  Normal   Started    5m (x3 over 6m)  kubelet, asdfgf.cc.corp  Started container
  Normal   Killing    5m (x2 over 6m)  kubelet, asdfgf.cc.corp  Killing container with id docker://spring-boot:Container failed liveness probe.. Container will be killed and recreated.
  Warning  Unhealthy  5m (x7 over 6m)  kubelet, asdfgf.cc.corp  Readiness probe failed: Get https://192.168.31.110:8080/actuator/health: dial tcp 192.168.31.110:8080: connect: connection refused
  Warning  Unhealthy  5m (x7 over 6m)  kubelet, asdfgf.cc.corp  Liveness probe failed: Get https://192.168.31.110:8080/actuator/health: dial tcp 192.168.31.110:8080: connect: connection refused
  Normal   Pulled     1m (x7 over 6m)  kubelet, asdfgf.cc.corp  Container image &quot;docker-registry.default.svc:5000/cx-ans-prod/vc-ans@sha256:4f39366bddc1e4ce7ed3c7e320453fbe6e90c4100f860a82ec87b04e7fb7e5b1&quot; already present on machine

C:\dev\xib-ans-bo&gt;


                                                                                                    
                                                                                                                                                                                                                                                
                                                                                                                                            
pom.xml:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;com.xib&lt;/groupId&gt;
  &lt;artifactId&gt;vc-ans&lt;/artifactId&gt;
  &lt;version&gt;1.0.9&lt;/version&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;parent&gt;
    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;     
    &lt;version&gt;2.1.3.RELEASE&lt;/version&gt;
  &lt;/parent&gt;

  &lt;scm&gt;
    &lt;connection&gt;scm:git:git://pgitap1zatcrh.vodacom.corp:XIB/xib-ans-bo.git&lt;/connection&gt;    
    &lt;url&gt;git://pgitap1zatcrh.vodacom.corp:XIB/xib-ans-bo.git&lt;/url&gt;
&lt;/scm&gt;

  &lt;properties&gt;
        &lt;java.version&gt;1.8&lt;/java.version&gt;
        &lt;kotlin.version&gt;1.3.61&lt;/kotlin.version&gt;
    &lt;fabric8.mode&gt;openshift&lt;/fabric8.mode&gt;    
    &lt;fabric8.namespace&gt;cx-ans-prod&lt;/fabric8.namespace&gt;
    &lt;/properties&gt;


  &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;commons-lang&lt;/groupId&gt;
      &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
      &lt;version&gt;2.3&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-webflux&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
      &lt;artifactId&gt;spring-security-data&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
      &lt;artifactId&gt;spring-security-test&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;com.auth0&lt;/groupId&gt;
      &lt;artifactId&gt;java-jwt&lt;/artifactId&gt;
      &lt;version&gt;3.8.1&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
      &lt;artifactId&gt;spring-data-commons&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;com.fasterxml.jackson.module&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-module-kotlin&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
      &lt;artifactId&gt;guava&lt;/artifactId&gt;
      &lt;version&gt;25.1-jre&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.liquibase&lt;/groupId&gt;
      &lt;artifactId&gt;liquibase-core&lt;/artifactId&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
      &lt;artifactId&gt;kotlin-stdlib-jdk8&lt;/artifactId&gt;
      &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
      &lt;artifactId&gt;kotlin-reflect&lt;/artifactId&gt;
      &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
      &lt;artifactId&gt;httpclient&lt;/artifactId&gt;
      &lt;version&gt;4.5.6&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;artifactId&gt;ojdbc8&lt;/artifactId&gt;
      &lt;groupId&gt;com.oracle.ojdbc&lt;/groupId&gt;
      &lt;version&gt;19.3.0.0&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.jetbrains.kotlinx&lt;/groupId&gt;
      &lt;artifactId&gt;kotlinx-coroutines-core&lt;/artifactId&gt;
      &lt;version&gt;1.0.0&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;tomcat-annotations-api&lt;/artifactId&gt;
          &lt;groupId&gt;org.apache.tomcat&lt;/groupId&gt;
        &lt;/exclusion&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;commons-logging&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
      &lt;scope&gt;test&lt;/scope&gt;
      &lt;exclusions&gt;
        &lt;exclusion&gt;
          &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
          &lt;groupId&gt;*&lt;/groupId&gt;
        &lt;/exclusion&gt;
      &lt;/exclusions&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.restdocs&lt;/groupId&gt;
      &lt;artifactId&gt;spring-restdocs-core&lt;/artifactId&gt;
      &lt;version&gt;2.0.3.RELEASE&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.springframework.restdocs&lt;/groupId&gt;
      &lt;artifactId&gt;spring-restdocs-mockmvc&lt;/artifactId&gt;
      &lt;version&gt;2.0.3.RELEASE&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
    &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;dependencyManagement&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-stdlib-jdk8&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-reflect&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-stdlib-jre7&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-stdlib-jre8&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-stdlib-jdk7&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-stdlib&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
        &lt;artifactId&gt;kotlin-runtime&lt;/artifactId&gt;
        &lt;version&gt;1.3.21&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-dependencies&lt;/artifactId&gt;
        &lt;version&gt;2.1.2.RELEASE&lt;/version&gt;
        &lt;scope&gt;import&lt;/scope&gt;
        &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.auth0&lt;/groupId&gt;
        &lt;artifactId&gt;java-jwt&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;compile&lt;/scope&gt;
        &lt;type&gt;pom&lt;/type&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/dependencyManagement&gt;  
  &lt;build&gt;
    &lt;sourceDirectory&gt;${project.basedir}/src/main/kotlin&lt;/sourceDirectory&gt;
    &lt;testSourceDirectory&gt;${project.basedir}/src/test/kotlin&lt;/testSourceDirectory&gt;
    &lt;plugins&gt;

    &lt;plugin&gt;
                &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
                &lt;artifactId&gt;kotlin-maven-plugin&lt;/artifactId&gt;
                &lt;configuration&gt;
                    &lt;args&gt;
                        &lt;arg&gt;-Xjsr305=strict&lt;/arg&gt;
                    &lt;/args&gt;
                    &lt;compilerPlugins&gt;
                        &lt;plugin&gt;spring&lt;/plugin&gt;
                    &lt;/compilerPlugins&gt;
                &lt;/configuration&gt;
                &lt;dependencies&gt;
        &lt;dependency&gt;
                        &lt;groupId&gt;org.jetbrains.kotlin&lt;/groupId&gt;
                        &lt;artifactId&gt;kotlin-maven-allopen&lt;/artifactId&gt;
                        &lt;version&gt;${kotlin.version}&lt;/version&gt;
                    &lt;/dependency&gt;
        &lt;/dependencies&gt;
      &lt;/plugin&gt;
    
      &lt;plugin&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;        
        &lt;configuration&gt;
          &lt;executable&gt;true&lt;/executable&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;io.fabric8&lt;/groupId&gt;
        &lt;artifactId&gt;fabric8-maven-plugin&lt;/artifactId&gt;
        &lt;version&gt;4.4.1&lt;/version&gt;
        &lt;configuration&gt;          
          &lt;generateRoute&gt;true&lt;/generateRoute&gt;
            &lt;enricher&gt;
              &lt;config&gt;
              &lt;fmp-service&gt;
                &lt;name&gt;ans-service&lt;/name&gt;
                &lt;type&gt;ClusterIP&lt;/type&gt;
              &lt;/fmp-service&gt;
              &lt;/config&gt;
            &lt;/enricher&gt;              
            &lt;enricher&gt;
              &lt;config&gt;
                &lt;fmp-maven-scm-enricher&gt;&gt;
                  &lt;scm-tag&gt;https&lt;/scm-tag&gt;
                &lt;/fmp-maven-scm-enricher&gt;&gt;
              &lt;/config&gt;
            &lt;/enricher&gt;
        &lt;/configuration&gt;
        &lt;executions&gt;
          &lt;execution&gt;
            &lt;goals&gt;
              &lt;goal&gt;resource&lt;/goal&gt;
              &lt;goal&gt;build&lt;/goal&gt;
            &lt;/goals&gt;
          &lt;/execution&gt;
        &lt;/executions&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
    &lt;/build&gt;  
&lt;/project&gt;




fabric8 deployment.yml fragment:

spec:
  template:
    spec:
      containers:
        - env:
          - name: SPRING_PROFILES_ACTIVE
          value: qa
          volumeMounts:
            - name: certs
              mountPath: /opt/certs
              readOnly: true
          livenessProbe:
            httpGet:
              path: /actuator/health
              port: 8080
              scheme: HTTPS
              initialDelaySeconds: 30
          readinessProbe:
            httpGet:
              path: /actuator/health
              port: 8080
              scheme: HTTPS
              initialDelaySeconds: 30
          resources:
            requests:
              memory: &quot;64Mi&quot;
            limits:
              memory: &quot;256Mi&quot;
          env:
            - name: JVM_OPTS
              value: &quot;-Xms64M -Xmx256M&quot;
      volumes:
        - name: certs
          secret:
            secretName: certs
            items:
              - key: ans.pfx
                path: ans.pfx
              - key: vb_pp_client_ans.jks
                path: vb_pp_client_ans.jks
              - key: vc_truststore.jks
                path: vc_truststore.jks




spring boot application.yml:

app:
  datasource:
    driver-class-name: oracle.jdbc.driver.OracleDriver
    url: jdbc:oracle:thin:@qgeno.cc.corp
    username: asdfgf
    password: asdfgf
    connection-test-query: SELECT 1 from dual
    pool-name: ANS_CP
    minimum-idle: 3
    maximum-pool-size: 20

alive:
  file: /opt/apps/xib/vc-ans/running.txt

spring:
  main:
    allow-bean-definition-overriding: true

vb:
  vb-url: &quot;https://asdfgf.cc.corp&quot;
  hc-check-msisdn: &quot;0821341111&quot;
  ssl-cert-password: &quot;asdfgf&quot;
  ssl-cert-alias: &quot;asdfgf&quot;
  keystore-path: &quot;/opt/certs/vb_pp_client_ans.jks&quot;
  
  repeat-caller-url: https://asdfgf.cc.corp

server:
  http:
    port: 8080
  ssl:
    enabled: true
    protocol: TLS
    key-alias: lkjhj
    key-store: /opt/certs/ans.pfx
    key-store-password: asdfgf
    trust-store: /opt/certs/vc_truststore.jks
    trust-store-password: asdfgf

logging:
  level:
    com.xib: DEBUG

management:
  server:
    ssl:
      key-store: /opt/certs/ans.pfx
      key-store-password: asdfgf
  endpoint:
    health:
      show-details: always
</code></pre>

user2094257
<p>Add below in the <code>application.yml</code></p>
<pre><code>management.endpoint.health.group.readiness.include=*
management.endpoint.health.group.readiness.show-details=always

management.endpoint.health.group.liveness.include=ping
management.endpoint.health.group.liveness.show-details=never
</code></pre>
<p>Use <code>/actuator/health/readiness</code> for readiness and <code>/actuator/health/liveness</code> for liveness in the deployment.yaml</p>
<pre><code>readinessProbe:
  httpGet:
    port: healthcheck
    path: /actuator/health/readiness
  initialDelaySeconds: 10
livenessProbe:
  httpGet:
    port: healthcheck
    path: /actuator/health/liveness
  initialDelaySeconds: 60
  periodSeconds: 1
</code></pre>
<p>Additionally, if Spring Security is present, you would need to add custom security configuration that allows unauthenticated access to the endpoints as shown in the following example:</p>
<pre><code>@Configuration(proxyBeanMethods = false)
public class ActuatorSecurity extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.requestMatcher(EndpointRequest.toAnyEndpoint()).authorizeRequests((requests) -&gt;
            requests.anyRequest().permitAll());
    }

}
</code></pre>
<p>If you deploy applications behind a firewall, you may prefer that all your actuator endpoints can be accessed without requiring authentication. You can do so by changing the <code>management.endpoints.web.exposure.include</code> property, as follows in</p>
<p><code>application.yaml</code></p>
<p><code>management.endpoints.web.exposure.include=*</code></p>
