Skip to content

Commit c909b60

Browse files
K8s (#410)
* VSCode * Initial * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots * Screenshots
1 parent 6bcba02 commit c909b60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+185
-89
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ hibernateDB
1818
springHibernateDB
1919
osgi/felix-cache/
2020
.java-version
21+
*.code-workspace

hazelcast-integration/kubernetes/samples/springboot-k8s-hello-world/README.md

Lines changed: 83 additions & 27 deletions

hazelcast-integration/kubernetes/samples/springboot-k8s-hello-world/deployment.yaml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,38 @@ spec:
6262
targetPort: 5701
6363
---
6464
# =========================================================
65-
# 3rd action == Set of pods for Hazelcast Management Center
65+
# 3rd action == A pod for Hazelcast Management Center
6666
# =========================================================
6767
---
68-
apiVersion: apps/v1beta1
68+
apiVersion: apps/v1
6969
kind: Deployment
7070
metadata:
7171
name: pod-hazelcast-management-center
7272
spec:
73-
replicas: 1
73+
selector:
74+
matchLabels:
75+
app: pod-hazelcast-management-center
7476
template:
7577
metadata:
7678
labels:
7779
app: pod-hazelcast-management-center
7880
spec:
7981
containers:
80-
- image: hazelcast/management-center:3.12.5
82+
- image: "springboot-k8s-hello-world/the-management-center"
83+
# Always from local, never from Dockerhub
84+
imagePullPolicy: Never
85+
# Url to check every 10 seconds if the container is ok
86+
livenessProbe:
87+
httpGet:
88+
path: /health
89+
port: 8081
8190
name: container-hazelcast-management-center
91+
# Url to check the container is up
92+
readinessProbe:
93+
httpGet:
94+
path: /health
95+
port: 8081
96+
initialDelaySeconds: 30
8297
---
8398
# =========================================================
8499
# 4th action == HTTP to Hazelcast Management Center

hazelcast-integration/kubernetes/samples/springboot-k8s-hello-world/pom.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,27 @@
2525
<java.version>8</java.version>
2626

2727
<!-- Latest versions -->
28-
<dockerfile-maven-plugin.version>1.4.12</dockerfile-maven-plugin.version>
29-
<hazelcast.version>3.12.2</hazelcast.version>
30-
<hazelcast-kubernetes.version>1.5.1</hazelcast-kubernetes.version>
31-
<spring-boot.version>2.1.7.RELEASE</spring-boot.version>
28+
<dockerfile-maven-plugin.version>1.4.13</dockerfile-maven-plugin.version>
29+
<!-- Do not increase minor version without also changing 'the-management-center/Dockerfile' -->
30+
<hazelcast.version>4.0</hazelcast.version>
31+
<hazelcast-kubernetes.version>2.0.1</hazelcast-kubernetes.version>
32+
<spring-boot.version>2.2.5.RELEASE</spring-boot.version>
3233
</properties>
3334

3435
<modules>
3536
<module>the-client</module>
3637
<module>the-server</module>
38+
<!-- Temporary until https://github.com/hazelcast/management-center-docker/issues/22 but mentioned in README.md -->
39+
<module>the-management-center</module>
3740
</modules>
3841

3942
<dependencies>
40-
<!-- Hazelcast bits, the server, the client and Kubernetes connectivity -->
43+
<!-- The main Hazelcast client & server jar, and the Kubernetes connectivity module -->
4144
<dependency>
4245
<groupId>com.hazelcast</groupId>
4346
<artifactId>hazelcast</artifactId>
4447
<version>${hazelcast.version}</version>
4548
</dependency>
46-
<dependency>
47-
<groupId>com.hazelcast</groupId>
48-
<artifactId>hazelcast-client</artifactId>
49-
<version>${hazelcast.version}</version>
50-
</dependency>
5149
<dependency>
5250
<groupId>com.hazelcast</groupId>
5351
<artifactId>hazelcast-kubernetes</artifactId>
77.5 KB
138 KB
490 KB
385 KB
625 KB

0 commit comments

Comments
 (0)