Compare commits
3 Commits
v3.1.7
...
v3.1.0-nat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
785488505a | ||
|
|
078fdf969e | ||
|
|
e428f7a05c |
@@ -90,6 +90,6 @@ jobs:
|
|||||||
run: kubectl get pod -n default -l app=${{ env.APP_NAME }}
|
run: kubectl get pod -n default -l app=${{ env.APP_NAME }}
|
||||||
|
|
||||||
- name: k8s Update Deployment
|
- name: k8s Update Deployment
|
||||||
run: kubectl rollout restart deployment ${{ env.APP_NAME }}-${{ gitea.ref_name }}
|
run: kubectl rollout restart deployment ${{ env.APP_NAME }}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# 基于 java25 构建
|
# 基于 java25 构建
|
||||||
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:25-jdk-slim
|
FROM ubuntu:jammy
|
||||||
# 基于构建上下文 . 进行COPY 文件到 /root目录下
|
# 基于构建上下文 . 进行COPY 文件到 /root目录下
|
||||||
COPY target/myk3sTest.jar /root/myk3sTest/
|
COPY target/myk3sTest /root/myk3sTest/
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
# 容器启动执行的命令
|
# 容器启动执行的命令
|
||||||
CMD java -jar -Xms20m -Xmx20m -Dspring.profiles.active=test /root/myk3sTest/myk3sTest.jar
|
CMD /root/myk3sTest/myk3sTest -XX:StartFlightRecording='filename=recording.jfr,dumponexit=true,duration=10s'
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /actuator/health
|
path: /test
|
||||||
port: 9090
|
port: 9090
|
||||||
initialDelaySeconds: 1
|
initialDelaySeconds: 1
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
|
|||||||
33
pom.xml
33
pom.xml
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<groupId>com.bamanker</groupId>
|
<groupId>com.bamanker</groupId>
|
||||||
<artifactId>myk3sTest</artifactId>
|
<artifactId>myk3sTest</artifactId>
|
||||||
<version>v1.1.9</version>
|
<version>v3.1.0-native</version>
|
||||||
<name>myk3sTest</name>
|
<name>myk3sTest</name>
|
||||||
<description>myk3sTest</description>
|
<description>myk3sTest</description>
|
||||||
<url/>
|
<url/>
|
||||||
@@ -70,11 +70,40 @@
|
|||||||
</resource>
|
</resource>
|
||||||
</resources>
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.graalvm.buildtools</groupId>
|
||||||
|
<artifactId>native-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<mainClass>com.bamanker.myk3stest.Myk3sTestApplication</mainClass>
|
||||||
|
<buildArgs>
|
||||||
|
<!--开启dashboard-->
|
||||||
|
<!-- <arg>-H:DashboardDump=dailylove -H:+DashboardAll</arg>-->
|
||||||
|
<arg->-H:+ReportExceptionStackTraces</arg->
|
||||||
|
<!--开启JFR-->
|
||||||
|
<arg>--enable-monitoring=jfr</arg>
|
||||||
|
<!-- <arg>--gc=G1</arg>-->
|
||||||
|
<!-- <arg>--pgo</arg>-->
|
||||||
|
<arg>-Ob</arg>
|
||||||
|
<!-- <arg>-march=native</arg>-->
|
||||||
|
<!-- <arg>-H:+BuildReport</arg>-->
|
||||||
|
</buildArgs>
|
||||||
|
<!--启动详细输出-->
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<!--配置jvm参数-->
|
||||||
|
<!-- <jvmArgs>
|
||||||
|
</jvmArgs>-->
|
||||||
|
<!--<agent>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
<options>
|
||||||
|
<option>experimental-class-loader-support</option>
|
||||||
|
</options>
|
||||||
|
</agent>-->
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<!--支持yaml读取pom的参数-->
|
<!--支持yaml读取pom的参数-->
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>3.2.0</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
<delimiters>
|
<delimiters>
|
||||||
|
|||||||
Reference in New Issue
Block a user