hazelcast / hazelcast/hazelcast-code-samples

There is no way to provide other port than 5701 in the kubernetes example

Open
#278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
558
Forks
600
PR merge metrics
No merged PRs in 30d

Description

If I use an example from https://github.com/hazelcast/hazelcast-code-samples/tree/master/hazelcast-integration/kubernetes as is it works fine.
But if I change the port to some other for example 5800 then nodes start but they are not in cluster.

here it is my hazelcast.yaml:
```
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: hazelcast
labels:
app: hazelcast
spec:
replicas: 3
serviceName: hazelcast-service
selector:
matchLabels:
app: hazelcast
template:
metadata:
labels:
app: hazelcast
spec:
containers:
- name: hazelcast
image: hazelcast/hazelcast:3.10.3
ports:
- name: hazelcast
containerPort: 5800
livenessProbe:
httpGet:
path: /hazelcast/health/node-state
port: 5800
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /hazelcast/health/node-state
port: 5800
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 1
volumeMounts:
- name: hazelcast-storage
mountPath: /data/hazelcast
env:
- name: JAVA_OPTS
value: "-Dhazelcast.rest.enabled=true -Dhazelcast.config=/data/hazelcast/hazelcast.xml"
volumes:
- name: hazelcast-storage
configMap:
name: hazelcast-configuration

---

apiVersion: v1
kind: Service
metadata:
name: hazelcast-service
spec:
type: LoadBalancer
selector:
app: hazelcast
ports:
- protocol: TCP
port: 5800
```

and config.yaml:
```
apiVersion: v1
kind: ConfigMap
metadata:
name: hazelcast-configuration
data:
hazelcast.xml: |-



true


5800










```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.