skywalking
by KubeSphere
Apache SkyWalking APM System
About this chart
Forked from https://github.com/apache/skywalking-kubernetes/tree/master/chart/skywalking.
Apache Skywalking Helm Chart
Apache SkyWalking is application performance monitor tool for distributed systems, especially designed for microservices, cloud native and container-based (Docker, K8s, Mesos) architectures.
Introduction
This chart bootstraps a Apache SkyWalking deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.9.6+
- PV dynamic provisioning support on the underlying infrastructure (StorageClass)
- Helm 3
Installing the Chart
To install the chart with the release name my-release:
$ helm install my-release skywalking -n <namespace>
The command deploys Apache Skywalking on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm uninstall my-release -n <namespace>
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the Skywalking chart and their default values.
| Parameter | Description | Default |
|---|---|---|
nameOverride | Override name | nil |
serviceAccounts.oap | Name of the OAP service account to use or create | nil |
oap.name | OAP deployment name | oap |
oap.dynamicConfigEnabled | Enable oap dynamic configuration through k8s configmap | false |
oap.image.repository | OAP container image name | apache/skywalking-oap-server |
oap.image.tag | OAP container image tag | 6.1.0 |
oap.image.pullPolicy | OAP container image pull policy | IfNotPresent |
oap.ports.grpc | OAP grpc port for tracing or metric | 11800 |
oap.ports.rest | OAP http port for Web UI | 12800 |
oap.replicas | OAP k8s deployment replicas | 2 |
oap.service.type | OAP svc type | ClusterIP |
oap.javaOpts | Parameters to be added to JAVA_OPTSenvironment variable for OAP | -Xms2g -Xmx2g |
oap.antiAffinity | OAP anti-affinity policy | soft |
oap.nodeAffinity | OAP node affinity policy | {} |
oap.nodeSelector | OAP labels for master pod assignment | {} |
oap.tolerations | OAP tolerations | [] |
oap.resources | OAP node resources requests & limits | {} - cpu limit must be an integer |
oap.envoy.als.enabled | Open envoy als | false |
oap.env | OAP environment variables | [] |
ui.name | Web UI deployment name | ui |
ui.replicas | Web UI k8s deployment replicas | 1 |
ui.image.repository | Web UI container image name | apache/skywalking-ui |
ui.image.tag | Web UI container image tag | 6.1.0 |
ui.image.pullPolicy | Web UI container image pull policy | IfNotPresent |
ui.ingress.enabled | Create Ingress for Web UI | false |
ui.ingress.annotations | Associate annotations to the Ingress | {} |
ui.ingress.path | Associate path with the Ingress | / |
ui.ingress.hosts | Associate hosts with the Ingress | [] |
ui.ingress.tls | Associate TLS with the Ingress | [] |
ui.service.type | Web UI svc type | ClusterIP |
ui.service.externalPort | external port for the service | 80 |
ui.service.internalPort | internal port for the service | 8080 |
ui.service.externalIPs | external IP addresses | nil |
ui.service.loadBalancerIP | Load Balancer IP address | nil |
ui.service.annotations | Kubernetes service annotations | {} |
ui.service.loadBalancerSourceRanges | Limit load balancer source IPs to list of CIDRs (where available)) | [] |
elasticsearch.enabled | Spin up a new elasticsearch cluster for SkyWalking | true |
elasticsearch.clusterName | This will be used as the Elasticsearch cluster.name and should be unique per cluster in the namespace | elasticsearch |
elasticsearch.nodeGroup | This is the name that will be used for each group of nodes in the cluster. The name will be clusterName-nodeGroup-X | master |
elasticsearch.masterService | Optional. The service name used to connect to the masters. You only need to set this if your master nodeGroup is set to something other than master. See Clustering and Node Discovery for more information. | `` |
elasticsearch.roles | A hash map with the specific roles for the node group | master: truedata: trueingest: true |
elasticsearch.replicas | Kubernetes replica count for the statefulset (i.e. how many pods) | 3 |
elasticsearch.minimumMasterNodes | The value for discovery.zen.minimum_master_nodes. Should be set to (master_eligible_nodes / 2) + 1. Ignored in Elasticsearch versions >= 7. | 2 |
elasticsearch.esMajorVersion | Used to set major version specific configuration. If you are using a custom image and not running the default Elasticsearch version you will need to set this to the version you are running (e.g. esMajorVersion: 6) | "" |
elasticsearch.esConfig | Allows you to add any config files in /usr/share/elasticsearch/config/ such as elasticsearch.yml and log4j2.properties. See values.yaml for an example of the formatting. | {} |
elasticsearch.extraEnvs | Extra environment variables which will be appended to the env: definition for the container | [] |
elasticsearch.extraVolumes | Templatable string of additional volumes to be passed to the tpl function |
Deploy skywalking with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has skywalking on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartskywalking is pinned at v3.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply