Install with Helm
Use Helm to customize the settings of your Gloo Mesh Core installation.
Gloo Mesh Core deploys alongside your Istio installations in single or multicluster environments, and gives you instant insights into your Istio environment through a custom dashboard. You can follow this guide to customize settings for an advanced Gloo Mesh Core installation. To learn more about the benefits and architecture, see About.
Gloo Mesh Core is available as a technical preview. To receive a Gloo Mesh Core license and release build to test with, contact an account representative.
Before you begin
If you have not already, install
helm
, the Kubernetes package manager.- Set your Gloo license key as an environment variable. If you do not have one, contact an account representative. If you prefer to specify license keys in a secret instead, see Licensing.
export GLOO_MESH_CORE_LICENSE_KEY=<GLOO_MESH_CORE_LICENSE_KEY>
Install Gloo Mesh Core
Deploy the Gloo Mesh Core components into one cluster that runs Istio, or across a multicluster Istio environment.
Single cluster
Install all Gloo Mesh Core components in the same cluster as your Istio service mesh.
Create or use an existing Kubernetes cluster, and save the name of the cluster as an environment variable. Note: The cluster name must be alphanumeric with no special characters except a hyphen (-), lowercase, and begin with a letter (not a number).
export CLUSTER_NAME=<cluster_name>
- Set the Gloo version. This example uses the latest version. You can find other versions in the Changelog documentation. Append
-fips
for a FIPS-compliant image, such as2.5.0-beta2-fips
. Do not includev
before the version number.export GLOO_VERSION=2.5.0-beta2
Add and update the Helm repository for Gloo Mesh Core.
helm repo add gloo-platform https://storage.googleapis.com/gloo-platform/helm-charts helm repo update
Prepare a Helm values file to provide your customizations. To get started, you can use the minimum settings in the following example file as a basis. These settings enable all components that are required for a single-cluster Gloo Mesh Core installation.
cat >gloo-mesh-core-single.yaml <<EOF common: cluster: ${CLUSTER_NAME} glooAgent: enabled: true relay: serverAddress: gloo-mesh-mgmt-server.gloo-mesh:9900 runAsSidecar: true glooAnalyzer: enabled: true runAsSidecar: true glooMgmtServer: createGlobalWorkspace: true enabled: true insights: enabled: true policyApis: enabled: false registerCluster: true glooInsightsEngine: enabled: true runAsSidecar: false glooUi: enabled: true licensing: glooMeshCoreLicenseKey: ${GLOO_MESH_CORE_LICENSE_KEY} prometheus: enabled: true redis: deployment: enabled: true telemetryCollector: enabled: true config: exporters: otlp: endpoint: gloo-telemetry-gateway.gloo-mesh:4317 telemetryCollectorCustomization: pipelines: logs/analyzer: enabled: true telemetryGateway: enabled: false EOF
Edit the file to provide your own details, such as the following optional settings. You can see all possible fields for the Helm chart that you can set by running
helm show values gloo-platform/gloo-platform --version v2.5.0-beta2 > all-values.yaml
. You can also see these fields in the Helm values documentation.Field Decription glooMgmtServer.resources.limits
Add resource limits for the gloo-mesh-mgmt-server
pod, such ascpu: 1000m
andmemory: 1Gi
.glooMgmtServer.serviceOverrides.metadata.annotations
Add annotations for the management server load balancer as needed, such as AWS-specific load balancer annotations. For more information, see Deployment and service overrides. glooUi.auth
Set up OIDC authorization for the Gloo UI. For more information, see UI authentication. prometheus.enabled
Enable or disable the default Prometheus instance. Prometheus is required to scrape metrics from specific workloads to visualize workload communication in the Gloo UI Graph. redis
Disable the default Redis deployment and provide your own backing database as needed. For more information, see Backing databases. Install the Gloo CRDs.
helm upgrade -i gloo-platform-crds gloo-platform/gloo-platform-crds \ --namespace=gloo-mesh \ --create-namespace \ --version=$GLOO_VERSION \ --set installEnterpriseCrds=false
Use the customizations in your Helm values file to install the Gloo Mesh Core components in your cluster.
helm upgrade -i gloo-mesh-core gloo-platform/gloo-platform \ -n gloo-mesh \ --version $GLOO_VERSION \ --values gloo-mesh-core-single.yaml
Verify that Gloo Mesh Core installed correctly. This check might take a few seconds to verify that:
- Your Gloo Mesh Core product license is valid and current.
- The Gloo CRDs installed at the correct version.
- The Gloo pods are running and healthy.
- The Gloo agent is running and connected to the management server.
meshctl check
Multicluster
In a multicluster setup, you deploy the Gloo Mesh Core control plane into a dedicated management cluster, and the Gloo data plane into one or more workload clusters that run Istio service meshes.
Install the control plane
Deploy the Gloo Mesh Core control plane into a dedicated management cluster.
Create or use at least two existing Kubernetes clusters. The instructions in this guide assume one management cluster and two workload clusters. Note: The cluster name must be alphanumeric with no special characters except a hyphen (-), lowercase, and begin with a letter (not a number).
Set the names of your clusters from your infrastructure provider. If your clusters have different names, specify those names instead.
export MGMT_CLUSTER=mgmt export REMOTE_CLUSTER1=cluster1 export REMOTE_CLUSTER2=cluster2
- Save the kubeconfig contexts for your clusters. Run
kubectl config get-contexts
, look for your cluster in theCLUSTER
column, and get the context name in theNAME
column. Note: Do not use context names with underscores. The generated certificate that connects workload clusters to the management cluster uses the context name as a SAN specification, and underscores in SAN are not FQDN compliant. You can rename a context by runningkubectl config rename-context "<oldcontext>" <newcontext>
.export MGMT_CONTEXT=<management-cluster-context> export REMOTE_CONTEXT1=<remote-cluster1-context> export REMOTE_CONTEXT2=<remote-cluster2-context>
Prepare a Helm values file to provide your customizations. To get started, you can use the minimum settings in the following example file as a basis. These settings enable all components that are required for a Gloo Mesh Core control plane installation.
cat >control-plane.yaml <<EOF common: cluster: ${MGMT_CLUSTER} glooMgmtServer: enabled: true policyApis: enabled: false glooInsightsEngine: enabled: true runAsSidecar: false glooUi: enabled: true licensing: glooMeshCoreLicenseKey: ${GLOO_MESH_CORE_LICENSE_KEY} prometheus: enabled: true telemetryCollector: enabled: true telemetryGateway: enabled: true telemetryGatewayCustomization: pipelines: logs/redis_stream: enabled: true EOF
Edit the file to provide your own details, such as the following optional settings. You can see all possible fields for the Helm chart that you can set by running
helm show values gloo-platform/gloo-platform --version v2.5.0-beta2 > all-values.yaml
. You can also see these fields in the Helm values documentation.Field Decription glooMgmtServer.relay
Secure the relay connection between the Gloo management server and agents. By default, Gloo Mesh Core generates self-signed certificates and keys for the root CA and uses these credentials to derive the intermediate CA, server and client TLS certificates. This setup is not recommended for production. Instead, use your preferred PKI provider to generate and store your credentials, and to have more control over the certificate management process.. glooMgmtServer.resources.limits
Add resource limits for the gloo-mesh-mgmt-server
pod, such ascpu: 1000m
andmemory: 1Gi
.glooMgmtServer.serviceOverrides.metadata.annotations
Add annotations for the management server load balancer as needed, such as AWS-specific load balancer annotations. For more information, see Deployment and service overrides. glooUi.auth
Set up OIDC authorization for the Gloo UI. For more information, see UI authentication. prometheus.enabled
Disable the default Prometheus instance as needed to provide your own. Otherwise, you can keep the default Prometheus server enabled, and deploy a production-level server to scrape metrics from the server. For more information, see the Prometheus customization options. redis
Disable the default Redis deployment and provide your own backing database as needed. For more information, see Backing databases. Install the Gloo CRDs.
helm upgrade -i gloo-platform-crds gloo-platform/gloo-platform-crds \ --namespace=gloo-mesh \ --create-namespace \ --kube-context $MGMT_CONTEXT \ --version=$GLOO_VERSION \ --set installEnterpriseCrds=false
Use the customizations in your Helm values file to install the Gloo Mesh Core control plane components in your management cluster.
helm upgrade -i gloo-mesh-core gloo-platform/gloo-platform \ --kube-context $MGMT_CONTEXT \ -n gloo-mesh \ --version $GLOO_VERSION \ --values control-plane.yaml
Note: For quick testing, you can create an insecure connection between the management server and workload agents by including the
--set common.insecure=true
and--set glooMgmtServer.insecure=true
flags.Verify that the control plane pods have a status of
Running
.kubectl get pods -n gloo-mesh --context $MGMT_CONTEXT
Save the external address and port that your cloud provider assigned to the Gloo OpenTelemetry (OTel) gateway service. The OTel collector agents in each workload cluster send metrics to this address.
Save the external address and port that your cloud provider assigned to the
gloo-mesh-mgmt-server
service. Thegloo-mesh-agent
agent in each workload cluster accesses this address via a secure connection.
Install the data plane
Register each workload cluster with the Gloo Mesh Core control plane by deploying Gloo data plane components. A deployment named gloo-mesh-agent
runs the Gloo agent in each workload cluster.
For the workload cluster that you want to register with Gloo Mesh Core, set the following environment variables. You update these variables each time you follow these steps to register another workload cluster.
export REMOTE_CLUSTER=$REMOTE_CLUSTER1 export REMOTE_CONTEXT=$REMOTE_CONTEXT1
In the management cluster, create a
KubernetesCluster
resource to represent the workload cluster and store relevant data, such as the workload cluster’s local domain.kubectl apply --context $MGMT_CONTEXT -f- <<EOF apiVersion: admin.gloo.solo.io/v2 kind: KubernetesCluster metadata: name: ${REMOTE_CLUSTER} namespace: gloo-mesh spec: clusterDomain: cluster.local EOF
Prepare a Helm values file to provide your customizations. To get started, you can use the minimum settings in the following example file as a basis. These settings enable all components that are required to install the Gloo data plane components in the workload cluster.
cat >data-plane.yaml <<EOF common: cluster: ${REMOTE_CLUSTER} glooAgent: enabled: true relay: serverAddress: ${MGMT_SERVER_NETWORKING_ADDRESS} glooAnalyzer: enabled: true runAsSidecar: true telemetryCollector: enabled: true config: exporters: otlp: endpoint: ${TELEMETRY_GATEWAY_ADDRESS} telemetryCollectorCustomization: pipelines: logs/analyzer: enabled: true EOF
Edit the file to provide your own details, such as the following optional settings. You can see all possible fields for the Helm chart that you can set by running
helm show values gloo-platform/gloo-platform --version v2.5.0-beta2 > all-values.yaml
. You can also see these fields in the Helm values documentation.Field Decription glooAgent.relay
Provide the certificate and secret details that correspond to your management server relay settings. glooAgent.resources.limits
Add resource limits for the gloo-mesh-mgmt-server
pod, such ascpu: 500m
andmemory: 512Mi
.Install the Gloo CRDs.
helm upgrade -i gloo-platform-crds gloo-platform/gloo-platform-crds \ --namespace=gloo-mesh \ --create-namespace \ --kube-context $REMOTE_CONTEXT \ --version=$GLOO_VERSION \ --set installEnterpriseCrds=false
Use the customizations in your Helm values file to install the Gloo Mesh Core data plane components in your workload cluster.
helm upgrade -i gloo-mesh-core gloo-platform/gloo-platform \ --kube-context $REMOTE_CONTEXT \ -n gloo-mesh \ --version $GLOO_VERSION \ --values data-plane.yaml
Verify that the Gloo data plane components are healthy. If not, try debugging the agent.
gloo check --kubecontext $REMOTE_CONTEXT
Repeat steps 1 - 7 to register each workload cluster with Gloo.
Verify that your multicluster Gloo Mesh Core setup installed correctly. Note that this check might take a few seconds to verify that:
- Your Gloo Mesh Core product license is valid and current.
- The Gloo CRDs installed at the correct version.
- The Gloo pods are running and healthy.
- The Gloo agent is running and connected to the management server.
meshctl check --kubecontext $MGMT_CONTEXT
Next steps
Now that you have Gloo Mesh Core up and running, check out the following guides to expand your service mesh capabilities.
- Explore Gloo Mesh Core insights that can help you improve your Istio configuration and security posture.
- Find out more about hardened Istio
n-4
version support built into Solo Istio images. - Use Gloo Mesh Core to quickly install and manage your service mesh for you with service mesh lifecycle management.
- Monitor and observe your Istio environment with Gloo Mesh Core’s built-in telemetry tools.
- When it’s time to upgrade Gloo Mesh Core, see the upgrade guide.