Skip to content

Commit 5e621d1

Browse files
committed
Update Blog “set-up-apache-skywalking-for-k8s-monitoring-in-hpe-greenlake-for-private-cloud-enterprise”
1 parent 055b358 commit 5e621d1

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

content/blog/set-up-apache-skywalking-for-k8s-monitoring-in-hpe-greenlake-for-private-cloud-enterprise.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ date: 2022-12-28T20:19:50.005Z
55
author: Guoping JIA
66
authorimage: /img/guoping.png
77
disable: false
8+
tags:
9+
- hpe-greenlake, hpe-greenlake-for-private-cloud-enterprise, Kubernetes,
10+
application performance monitoring, Apache SkyWalking
811
---
912
## Introduction
1013

11-
[HPE GreenLake for Private Cloud Enterprise](https://www.hpe.com/us/en/greenlake/private-cloud-enterprise.html) delivers a modern private cloud to support your app workloads running in any combination across your edges, colocations, and data centers. It contains one HPE service, called [HPE GreenLake for Containers](https://www.hpe.com/us/en/greenlake/containers.html), which provides an enterprise-grade container management service using open source Kubernetes. It allows customers to create a Kubernetes cluster, view details about existing clusters, and launch the service console.
14+
[HPE GreenLake for Private Cloud Enterprise](https://www.hpe.com/us/en/greenlake/private-cloud-enterprise.html) delivers a modern private cloud to support your app workloads running in any combination across your edges, colocations, and data centers. It contains one HPE service, called [HPE GreenLake for Private Cloud Enterprise: Containers](https://www.hpe.com/us/en/greenlake/containers.html), which provides an enterprise-grade container management service using open source Kubernetes. It allows customers to create a Kubernetes cluster, view details about existing clusters, and launch the service console.
1215

1316
Since Kubernetes is widely used for processing customer workloads, the non-availability of applications can adversely impact productivity, business continuity and user experience. To avoid this, enterprise must closely monitor the status of the objects managed and operations performed by Kubernetes, proactively capture abnormalities, and resolve them well before end-users notice. Though Kubernetes dramatically simplifies application deployment in containers and across clouds, it adds a new set of complexities for managing, securing and troubleshooting applications. Kubernetes monitoring is critical to managing application performance, service uptime and troubleshooting. Having a good application performance monitoring (APM) tool is becoming essential for Kubernetes monitoring.
1417

@@ -24,11 +27,11 @@ Apache SkyWalking is lightweight and scalable. It can be easily set up as a *sel
2427

2528
## Prerequisites
2629

27-
Before you start, make sure you meet the following requirements:
30+
Before I start, make sure the following requirements are met:
2831

29-
* A Kubernetes cluster needs to be created in HPE GreenLake for Private Cloud Enterprise. You need to download the *kubectl* binary, together with the *HPE kubectl plugin* and the *kubeconfig* file of the created cluster, from the launched service console. The downloaded *kubectl* binary and its plugin need to be set up in your environment. To simplify the setup process, you should export the environment variable `KUBECONFIG` and point it to the downloaded kubeconfig file. With these setups in place, you can access the Kubernetes cluster in the HPE GreenLake for Private Cloud Enterprise.
30-
* The [Helm CLI](https://helm.sh/docs/intro/install/) needs to be installed in your environment. This Helm CLI will be used for installing and setting up the Apache SkyWalking.
31-
* The [istioctl](https://istio.io/latest/docs/setup/getting-started/#download) needs to be installed as well in your environment. The istioctl client will be used for installing and set up `Istio`.
32+
* A Kubernetes cluster, being provisioned in HPE GreenLake for Private Cloud Enterprise;
33+
* The *kubectl*, together with the *HPE kubectl plugin* and the *kubeconfig* file of the Kubernetes cluster. You can download them from the launched service console in HPE GreenLake for Private Cloud Enterprise. To simplify the setup process, you can export the environment variable `KUBECONFIG` and point it to the downloaded *kubeconfig* file;
34+
* The *[Helm](https://helm.sh/docs/intro/install/)* CLI tool, version 3.8.1 or later.
3235

3336
With your user access setup, you should have access to permissions that can create and update the following resources in the Kubernetes cluster:
3437

@@ -37,16 +40,7 @@ With your user access setup, you should have access to permissions that can crea
3740

3841
## Set up Apache SkyWalking for Kubernetes monitoring
3942

40-
### Prerequisites
41-
42-
Before I start, make sure the following requirements a
43-
re met:
44-
45-
* A Kubernetes cluster, being provisioned in HPE GreenLake for Private Cloud Enterprise;
46-
* The *kubectl* CLI tool, version 1.23 or later, together with the *kubeconfig* files for accessing the Kubernetes cluster;
47-
* The *[Helm](https://helm.sh/docs/intro/install/)* CLI tool, version 3.8.1 or later.
48-
49-
Apache SkyWalking leverages Kubernetes [kube-state-metrics](https://github.com/kubernetes/kube-state-metrics) service for collecting metrics data from Kubernetes cluster. It then leverages *OpenTelemetry* collector to transfer the Kubernetes metrics to *OpenTelemetry* receiver for Kubernetes monitoring.
43+
Apache SkyWalking leverages Kubernetes [kube-state-metrics](https://github.com/kubernetes/kube-state-metrics) service for collecting metrics data from Kubernetes cluster. It then leverages *OpenTelemetry* collector to transfer the Kubernetes metrics to *OpenTelemetry* receiver in Apache SkyWalking Observability Analysis Platform (OAP) for Kubernetes monitoring.
5044

5145
![](/img/otel-collector.png)
5246

@@ -73,9 +67,9 @@ $ helm install skywalking skywalking –n skywalking \
7367
--set oap.env.SW_OTEL_RECEIVER_ENABLED_OC_RULES="k8s-cluster\,k8s-service\,k8s-node"
7468
```
7569

76-
After running above commands, the Apache SkyWalking is installed to the Kubernetes cluster's namespace *skywalking*. It creates the *elasticsearch* as the `StatefulSet`, running a pod on each worker node. It runs the Apache SkyWalking Observability Analysis Platform (OAP) with replicas as 2 to provide high availability to the pods.
70+
After running above commands, the Apache SkyWalking is installed to the Kubernetes cluster's namespace *skywalking*. It creates the *elasticsearch* as the `StatefulSet` resource, running a pod on each worker node. It runs the Apache SkyWalking OAP with replicas as 2 to provide high availability.
7771

78-
The last two options enable the *OpenTelemetry* receiver and define the metrics for Kubernetes service, service instance and endpoint. It requires Apache SkyWalking OAP to have access to Kubernetes API server to query the metadata.
72+
The last two options, *oap.env.SW_OTEL_RECEIVER=default* & *oap.env.SW_OTEL_RECEIVER_ENABLED_OC_RULES="k8s-cluster,k8s-service,k8s-node"*, enable the *OpenTelemetry* receiver and define the metrics for Kubernetes service, service instance and endpoint. It requires Apache SkyWalking OAP to have access to Kubernetes API server to query the metadata.
7973

8074
You can check the detailed Apache SkyWalking installation by typing the following *kubectl* command:
8175

@@ -141,7 +135,7 @@ External Traffic Policy: Cluster
141135
Events: <none>
142136
```
143137

144-
The SkyWalking UI can then be accessed in your browser by typing the address *gl2-caas.gl-hpe.local:10037*:
138+
As shown in the _**Annotations**_ section of the service description above, the SkyWalking UI can then be accessed in your browser by typing the address *gl2-caas.gl-hpe.local:10037*:
145139

146140
![](/img/sw-ui.png)
147141

@@ -349,11 +343,11 @@ NAME DESIRED CURREN
349343
replicaset.apps/otel-deployment-kubernetes-monitor-798cdd8486 1 1 1 96d
350344
```
351345

352-
After all setup steps are finished, the Kubernetes metrics will be showing up in Skywalking UI, under *Kubernetes* tab:
346+
After all setup steps are finished, the Kubernetes metrics will be showing up in SkyWalking UI, under *Kubernetes* tab:
353347

354348
![](/img/sw-k8s-clu.png)
355349

356-
You can check the Kubernetes overview from Skywalking UI:
350+
You can check the Kubernetes overview from SkyWalking UI:
357351

358352
![](/img/sw-k8s-overview.png)
359353

static/img/otel-collector.png

-4.16 KB
Loading

0 commit comments

Comments
 (0)