Thank you for reading this post, don't forget to subscribe!
За основу взят helm chart https://github.com/hazelcast/charts/tree/master/stable/hazelcast
Добавляем helm репозиторий и выкачиваем содержимое чарта:
helm repo add hazelcast https://hazelcast-charts.s3.amazonaws.com/
helm repo update
helm pull hazelcast/hazelcast
tar zxvf hazelcast-3.6.1.tgz
rm -f hazelcast-3.6.1.tgz
Переходим в разархивированную директорию и правим следующие блоки параметров в файле values.yaml:
### Persistence включается только для веб-панели.
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 |
# Management Center persistence properties persistence: # enabled is a flag to enable persistence for Management Center enabled: true # existingClaim is a name of the existing Persistence Volume Claim that will be used for persistence # if not defined, a new Persistent Value Claim is created with the default name # existingClaim: # accessModes defines the access modes for the created Persistent Volume Claim accessModes: - ReadWriteOnce # size is the size of Persistent Volume Claim size: 8Gi # storageClass defines the storage class used for Management Center. Read more at: https://kubernetes.io/docs/concepts/storage/storage-classes/ storageClass: "nfs-storageclass" ---- # ingress configuration for mancenter ingress: enabled: true annotations: {} hosts: - hazelcastmgr.test.local # tls: # - secretName: hazelcast-ingress-tls # hosts: # - hazelcast-mancenter.cluster.domain --- # Configure resource requests and limits for hazelcast # ref: http://kubernetes.io/docs/user-guide/compute-resources/ resources: requests: memory: 256Mi cpu: 100m limits: memory: 1024Mi cpu: 200m --- # Configure resource requests and limits for mancenter. # ref: http://kubernetes.io/docs/user-guide/compute-resources/ # resources: requests: memory: 256Mi cpu: 100m limits: memory: 1024Mi cpu: 200m |
Создаем отдельный namespace:
kubectl create ns hazelcast
Переходим в директорию с распакованным чартом и устанавливаем его:
helm upgrade --install hazelcast ./ -f ./values.yaml -n hazelcast
Переходим в браузере по адресу http://hazelcastmgr.prod.test.local