You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/a-guide-to-enable-managed-istio-service-mesh-in-a-kubernetes-cluster-on-hpe-greenlake-for-private-cloud-enterprise.md
In this blog post, we demonstrate how an end user can deploy a containerized application or a managed service on a Kubernetes-based container stack using the cluster add-on feature provided by **HPE GreenLake for Private Cloud Enterprise: Containers** and then access it over an external network or internet. The containers service evaluates the user’s environment and makes add-ons available to the user so that they can add the containerized application or managed service to the cluster as required.
24
24
25
25
For those of you who may be unfamiliar with the term, a **Service mesh** is a network of microservices that consist of distributed applications and communications between those applications. It is a dedicated infrastructure layer that facilitates service-to-service communications routed through the proxy, ensuring secure communication.
26
26
27
27
**Istio** is an open-source service mesh that provides a platform for distributed applications that includes API integrations with logging, telemetry, or policy systems. It provides a uniform and more efficient way to secure, connect, and monitor services. Istio automatically manages load balancing for HTTP, gRPC, WebSocket, and TCP traffic. For details, see **[The Istio service mesh](https://istio.io/latest/about/service-mesh/)**.
28
28
29
-
## **Enabling Istio service mesh add-on from a cluster**
29
+
## Enabling Istio service mesh add-on from a cluster
30
30
31
-
### **Step-1: Create a Kubernetes cluster from the containers page**
31
+
### Step-1: Create a Kubernetes cluster from the containers page
32
32
33
33
To create a cluster, you must have been assigned the roles of **Private Cloud Cluster Owner** and **Private Cloud Widget Viewer**.
34
34
@@ -41,7 +41,7 @@ As indicated above, there are multiple clusters deployed in parallel for multipl
41
41
42
42

43
43
44
-
### **Step-2: Enabling an add-on from a cluster**
44
+
### Step-2: Enabling an add-on from a cluster
45
45
46
46
* On the **Containers** main page, click a cluster row to open the cluster details screen.
47
47
* On the cluster details screen, click the **Add-ons** tab.
@@ -65,7 +65,7 @@ As indicated above, there are multiple clusters deployed in parallel for multipl
### **Step-3: Launching the Kiali dashboard - the console for Istio service mesh**
68
+
### Step-3: Launching the Kiali dashboard - the console for Istio service mesh
69
69
70
70
**Kiali** is an open-source project that provides observability for the Istio service mesh.
71
71
@@ -79,18 +79,18 @@ The **Kiali dashboard** launches in a new web page.
79
79
80
80
**Note**: To take advantage of the Istio features, pods in the mesh must be running an Istio sidecar proxy. Injection of the proxy can be done either on a per-pod basis or at namespace level. To enable side car injection, refer to the [setup instructions](https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/). For information about using Kiali, see the **[Kiali documentation](https://kiali.io/docs/)**.
81
81
82
-
### **Step-4: Download scoped kubeconfig from the container platform page**
82
+
### Step-4: Download scoped kubeconfig from the container platform page
83
83
84
84
* From the **Clusters** tab, select the '**hpe**' Kubernetes cluster and click **Launch Service Console**. This will direct you to the container platform page.
85
85
* Click on Download **kubeconfig**.
86
86
87
87
**Note**: Launching the service console from HPE GreenLake Central is configured through SAML SSO and adds a session token to the kubeconfig file. You will need to download the kubeconfig file again if you want to continue to access the cluster when the session token expires after an hour.
88
88
89
-
### **Step-5: Deploying a sample Istio application: Bookinfo**
89
+
### Step-5: Deploying a sample Istio application: Bookinfo
90
90
91
91
This procedure follows the standard Istio documentation to deploy a sample application. To know more about Bookinfo Application, see the **[Istio documentation](https://istio.io/latest/docs/examples/bookinfo/)**.
92
92
93
-
#### **Use the following commands to create the namespace and label for Istio sidecar proxy injection to deploy the application in the bookinfo namespace**.
93
+
**Use the following commands to create the namespace and label for Istio sidecar proxy injection to deploy the application in the bookinfo namespace**.
94
94
95
95
```shellsession
96
96
$ kubectl create namespace bookinfo
@@ -104,7 +104,7 @@ NAME STATUS AGE LABELS
104
104
bookinfo Active 105s gl.hpe.com/namespaceid=10d70074-0c2b-4221-804e-1437ed1842ca,hpe.com/cluster=stub,hpe.com/namespacetype=Tenant,hpe.com/tenant=bookinfo,hpe.com/version=6.2.0,hpecp.hpe.com/hpecptenant=hpecp-tenant-106,istio-injection=enabled,kubernetes.io/metadata.name=bookinfo,serving.kubeflow.org/inferenceservice=enabled
105
105
```
106
106
107
-
#### **Deploy** the **Bookinfo** application using the YAML manifest file i.e. **services/istio/release-1.16/samples/bookinfo/bookinfo.yaml** from the [](https://github)**[Github repository](https://github.com/cxteamtrials/caas-trials-content)**.
107
+
**Deploy the Bookinfo application using the YAML manifest file i.e. services/istio/release-1.16/samples/bookinfo/bookinfo.yaml from the [](https://github)**[Github repository](https://github.com/cxteamtrials/caas-trials-content)**.
108
108
109
109
```shellsession
110
110
$ kubectl apply -f bookinfo.yaml -n bookinfo
@@ -124,7 +124,7 @@ serviceaccount/bookinfo-productpage created
124
124
deployment.apps/productpage-v1 created
125
125
```
126
126
127
-
#### **Confirm all pods and services are deployed successfully**.
127
+
**Confirm all pods and services are deployed successfully**.
## **Monitor the sample application using the Kiali dashboard**
188
+
## Monitor the sample application using the Kiali dashboard
189
189
190
190
Enter **bookinfo** into the field Filter by Namespace. The Kiali overview screen displays the details about the namespace bookinfo. It shows that 4 applications are running in the **namespace bookinfo** with no inbound traffic.
191
191
@@ -207,7 +207,7 @@ In the **Services** tab from the left navigation menu, after selecting the **nam
0 commit comments