/
pom.xml
89 lines (72 loc) · 2.37 KB
/
pom.xml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2019 Red Hat, Inc.
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at:
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat, Inc. - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>jkube-maven-sample-docker-hc</artifactId>
<groupId>org.eclipse.jkube</groupId>
<version>3.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>JKube Maven :: Sample :: Docker Health Check</name>
<description>Example using Docker Health Checks (minimum docker version: 1.24) </description>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>kubernetes-maven-plugin</artifactId>
<version>@jkube.version@</version>
<configuration>
<resources>
<labels>
<all>
<testProject>docker-health-check-sample</testProject>
</all>
</labels>
</resources>
<images>
<image>
<alias>dockerhc1</alias>
<name>img1</name>
<build>
<cmd>nc -ll -e -p 9000</cmd>
<healthCheck>
<cmd>echo "hello"</cmd>
</healthCheck>
</build>
</image>
<image>
<alias>dockerhc2</alias>
<name>img2</name>
<build>
<cmd>nc -ll -e -p 9000</cmd>
<healthCheck>
<cmd>echo "hello"</cmd>
<timeout>2h3m1s</timeout>
<interval>45000ms</interval>
<retries>5</retries>
</healthCheck>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<goals>
<goal>resource</goal>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>