mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Signed-off-by: devOpsHelm <devops+1@hazelcast.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: hazelcast
|
||||
version: 3.0.1
|
||||
version: 3.0.2
|
||||
appVersion: "4.0"
|
||||
tillerVersion: ">=2.7.2"
|
||||
kubeVersion: ">=1.9.0-0"
|
||||
|
||||
@@ -42,16 +42,16 @@ To access Hazelcast Management Center:
|
||||
{{- if contains "LoadBalancer" .Values.mancenter.service.type }}
|
||||
*) Check Management Center external IP:
|
||||
$ export MANCENTER_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "mancenter.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
||||
*) Open Browser at: http://$MANCENTER_IP:{{ .Values.mancenter.service.port }}{{- if .Values.mancenter.contextPath }}{{ .Values.mancenter.contextPath }}{{- else }}/hazelcast-mancenter{{- end }}
|
||||
*) Open Browser at: http://$MANCENTER_IP:{{ .Values.mancenter.service.port }}{{ .Values.mancenter.contextPath }}
|
||||
{{- else if contains "ClusterIP" .Values.mancenter.service.type }}
|
||||
*) Forward port from POD:
|
||||
$ export POD=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ template "hazelcast.name" . }},role=mancenter" -o jsonpath="{.items[0].metadata.name}")
|
||||
$ kubectl port-forward --namespace {{ .Release.Namespace }} $POD 8080:8080
|
||||
*) Open Browser at: http://127.0.0.1:8080{{- if .Values.mancenter.contextPath }}{{ .Values.mancenter.contextPath }}{{- else }}/hazelcast-mancenter{{- end }}
|
||||
*) Open Browser at: http://127.0.0.1:8080{{ .Values.mancenter.contextPath }}
|
||||
{{- else if contains "NodePort" .Values.mancenter.service.type }}
|
||||
*) Check Node IP and Port:
|
||||
$ export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
||||
$ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "mancenter.fullname" . }})
|
||||
*) Open Browser at: http://$NODE_IP:$NODE_PORT{{- if .Values.mancenter.contextPath }}{{ .Values.mancenter.contextPath }}{{- else }}/hazelcast-mancenter{{- end }}
|
||||
*) Open Browser at: http://$NODE_IP:$NODE_PORT{{ .Values.mancenter.contextPath }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -32,7 +32,7 @@ spec:
|
||||
- |
|
||||
set -ex
|
||||
# Get the HTTP Response Code of the Health Check
|
||||
HEALTH_CHECK_HTTP_RESPONSE_CODE=$(curl --write-out %{http_code} --silent --output /dev/null {{ template "mancenter.fullname" . }}:{{ .Values.mancenter.service.port }}{{- if .Values.mancenter.contextPath }}{{ .Values.mancenter.contextPath }}{{- else }}/hazelcast-mancenter{{- end }}/health)
|
||||
HEALTH_CHECK_HTTP_RESPONSE_CODE=$(curl --write-out %{http_code} --silent --output /dev/null {{ template "mancenter.fullname" . }}:{{ .Values.mancenter.service.port }}{{ .Values.mancenter.contextPath }}/health)
|
||||
# Test the currect number of Hazelcast members
|
||||
test ${HEALTH_CHECK_HTTP_RESPONSE_CODE} -eq 200
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user