Kubernetes 在为spring boot应用程序提供服务时,如何调试这个无法解释的Openshift 3 pod进入崩溃环?

Kubernetes 在为spring boot应用程序提供服务时,如何调试这个无法解释的Openshift 3 pod进入崩溃环?,kubernetes,maven-plugin,spring-boot-test,openshift-3,Kubernetes,Maven Plugin,Spring Boot Test,Openshift 3,我正在尝试将Spring引导应用程序移动到openshift 3集群上。我正在使用Maven fabric8插件生成大部分openshift样板配置,并执行S2I构建。当我的pod启动时,我可以在日志输出中看到应用程序启动了,但在spring启动后,应用程序立即默认为默认配置文件(我还没有设置配置文件),应用程序崩溃,我在Openshift日志中看到的唯一输出被终止。。。我在谷歌上找不到任何有价值的东西,除了它可能是openJDK,它试图获取比单个pod可用的内存更多的内存。我添加了一个fabr

我正在尝试将Spring引导应用程序移动到openshift 3集群上。我正在使用Maven fabric8插件生成大部分openshift样板配置,并执行S2I构建。当我的pod启动时,我可以在日志输出中看到应用程序启动了,但在spring启动后,应用程序立即默认为默认配置文件(我还没有设置配置文件),应用程序崩溃,我在Openshift日志中看到的唯一输出被终止。。。我在谷歌上找不到任何有价值的东西,除了它可能是openJDK,它试图获取比单个pod可用的内存更多的内存。我添加了一个fabric8片段,该片段限制了单个容器能够使用的内存,但在启动pod时仍然会出现相同的错误。我跑了一遍,看到出口代码143。我的想法已经没有了,如果您能告诉我如何进一步调试/如何解决此类问题,我将不胜感激?也不确定这是否相关,但即使my application.yml设置为启用SSL,fabric8创建的路由始终是HTTP URL而不是HTTPS URL。我想知道这是否可能是由于readinessProbe和wellnessProbe无法命中执行器端点而导致pod陷入崩溃的原因

控制台输出、maven pom文件、application.yml和fabric8配置如下所示

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 "docker-registry.default.svc:5000/cx-ans-prod/vc-ans@sha256:4f39366bddc1e4ce7ed3c7e320453fbe6e90c4100f860a82ec87b04e7fb7e5b1" already present on machine

C:\dev\xib-ans-bo>


                                                                                                    
                                                                                                                                                                                                                                                
                                                                                                                                            
pom.xml:

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

  <scm>
    <connection>scm:git:git://pgitap1zatcrh.vodacom.corp:XIB/xib-ans-bo.git</connection>    
    <url>git://pgitap1zatcrh.vodacom.corp:XIB/xib-ans-bo.git</url>
</scm>

  <properties>
        <java.version>1.8</java.version>
        <kotlin.version>1.3.61</kotlin.version>
    <fabric8.mode>openshift</fabric8.mode>    
    <fabric8.namespace>cx-ans-prod</fabric8.namespace>
    </properties>


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

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




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: "64Mi"
            limits:
              memory: "256Mi"
          env:
            - name: JVM_OPTS
              value: "-Xms64M -Xmx256M"
      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: "https://asdfgf.cc.corp"
  hc-check-msisdn: "0821341111"
  ssl-cert-password: "asdfgf"
  ssl-cert-alias: "asdfgf"
  keystore-path: "/opt/certs/vb_pp_client_ans.jks"
  
  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
控制台输出:
.   ____          _            __ _ _
/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/  ___)| |_)| | | | | || (_| |  ) ) ) )
'  |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
::弹簧靴::(v2.1.3.版本)
2020-06-27 10:14:06.297信息8---[main]com.xib.vodacom.ans.AnsApplicationKt:在vc-ans-1-bzlxc-debug上用PID 8启动AnsApplicationKt v1.0.9(/deployments/vc-ans-1.0.9.jar由?in/deployments启动)
2020-06-27 10:14:06.396调试8---[main]com.xib.vodacom.ans.AnsApplicationKt:使用Spring Boot v2.1.3.RELEASE运行,Spring v5.1.4.RELEASE
2020-06-27 10:14:06.397信息8---[main]com.xib.vodacom.ans.AnsApplicationKt:未设置活动配置文件,返回默认配置文件:默认
被杀死的
sh-4.2美元
oc描述吊舱输出:
机密(由机密填充的卷)
秘书姓名:certs
可选:false
default-token-8pts4:
类型:Secret(由Secret填充的卷)
SecretName:default-token-8pts4
可选:false
QoS等级:Burstable
节点选择器:节点角色.kubernetes.io/compute=true
容差:node.kubernetes.io/内存压力:NoSchedule
活动:
从消息中键入原因年龄
----     ------     ----             ----                                 -------
正常计划的6m默认计划程序已成功将cx ans prod/vc-ans-1-bzlxc分配给pocpap8zadsas.cc.corp
正常创建的5m(x3/6m)kubelet,asdf.cc.corp创建的容器
正常启动5m(x3/6m)kubelet,asdfgf.cc.corp启动集装箱
正常压井5m(x2/6m)kubelet,asdfgf.cc.corp压井容器,id为docker://spring-boot:Container 活动性探测失败。。容器将被终止并重新创建。
警告:kubelet,asdfgf.cc.corp准备就绪探测失败:获取https://192.168.31.110:8080/actuator/health: 拨打tcp 192.168.31.110:8080:连接:连接被拒绝
警告:kubelet,asdfgf.cc.corp活跃度探测失败:获取https://192.168.31.110:8080/actuator/health: 拨打tcp 192.168.31.110:8080:连接:连接被拒绝
正常拉出1米(x7/6米)kubelet,asdfgf.cc.corp容器映像“docker registry.default.svc:5000/cx ans prod/vc-ans@sha256:4f39366bddc1e4ce7ed3c7e320453fbe6e90c4100f860a82ec87b04e7fb7e5b1“已存在于机器上
C:\dev\xib ans bo>
pom.xml:
4.0.0
com.xib
vc ans
1.0.9
罐子
org.springframework.boot
spring启动程序父级
2.1.3.1发布
scm:git:git://pgitap1zatcrh.vodacom.corp:XIB/xib-ans-bo.git
git://pgitap1zatcrh.vodacom.corp:XIB/xib-ans-bo.git
1.8
1.3.61
openshift
cx ans产品
公地郎
公地郎
2.3
编译
tomcat注释api
org.apache.tomcat
公用记录
公用记录
org.springframework.boot
弹簧靴起动器执行器
编译
tomcat注释api
org.apache.tomcat
公用记录
公用记录
org.springframework.boot
弹簧靴启动器jdbc
编译
tomcat注释api
org.apache.tomcat
公用记录
公用记录
org.springframework.boot
SpringBootStarterWeb
编译
tomcat注释api
org.apache.tomcat
公用记录
公用记录
org.springframework.boot
s
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
readinessProbe:
  httpGet:
    port: healthcheck
    path: /actuator/health/readiness
  initialDelaySeconds: 10
livenessProbe:
  httpGet:
    port: healthcheck
    path: /actuator/health/liveness
  initialDelaySeconds: 60
  periodSeconds: 1
@Configuration(proxyBeanMethods = false)
public class ActuatorSecurity extends WebSecurityConfigurerAdapter {

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

}