External Access to Management Center
Sometimes you may want to expose a Management Center onto an external IP address, one that’s accessible from outside of your cluster. Management Center supports multiple external access methods.
Configuring Hazelcast External Access
External connectivity defines how to expose Management Center:
Field | Description |
---|---|
|
Management Center external access methods:
|
|
Ingress exposes HTTP and HTTPS routes from outside the cluster to Management Center within the cluster. Traffic routing is controlled by rules defined on the Ingress resource. |
|
An OpenShift Container Platform Route exposes a service at a host name, so that external clients can reach it by name. |
Example Management Center Ingress Configuration
The example configuration below does the following:
-
Expose Management Center using Ingress defined on the Ingress.
apiVersion: hazelcast.com/v1alpha1
kind: ManagementCenter
metadata:
name: managementcenter
spec:
repository: "hazelcast/management-center"
licenseKeySecretName: hazelcast-license-key
externalConnectivity:
type: ClusterIP
ingress:
hostname: "example.hostname"
ingressClassName: nginx
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
hazelcastClusters:
- address: hazelcast
name: dev
Example Management Center LoadBalancer Configuration
The example configuration below does the following:
-
Expose Management Center using a dedicated load balancer for your Management Center
apiVersion: hazelcast.com/v1alpha1
kind: ManagementCenter
metadata:
name: managementcenter
spec:
repository: "hazelcast/management-center"
licenseKeySecretName: hazelcast-license-key
externalConnectivity:
type: LoadBalancer
hazelcastClusters:
- address: hazelcast
name: dev
Example Management Center Route Configuration
The example configuration below does the following:
-
Expose Management Center using default OpenShift Container Platform Route.
apiVersion: hazelcast.com/v1alpha1
kind: ManagementCenter
metadata:
name: managementcenter
spec:
repository: "hazelcast/management-center"
licenseKeySecretName: hazelcast-license-key
externalConnectivity:
type: ClusterIP
route:
hostname: ""
hazelcastClusters:
- address: hazelcast
name: dev