-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: dashanji <dashanjic@gmail.com>
- Loading branch information
Showing
24 changed files
with
3,327 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
OWNERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: v2 | ||
name: skywalking-swck | ||
home: https://github.com/apache/skywalking-swck | ||
version: 0.7.0 | ||
description: Apache SkyWalking Cloud on Kubernetes | ||
icon: https://raw.githubusercontent.com/apache/skywalking-kubernetes/master/logo/sw-logo-for-chart.jpg | ||
sources: | ||
- https://github.com/apache/skywalking-kubernetes | ||
maintainers: | ||
- name: hanahmily | ||
email: hanahmily@gmail.com | ||
- name: dashanji | ||
email: dashanjic@gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
Apache Skywalking-SWCK Helm Chart | ||
|
||
[Apache Skywalking-SWCK](https://github.com/apache/skywalking-swck) is a platform for the SkyWalking user that provisions, upgrades, maintains SkyWalking relevant components, and makes them work natively on Kubernetes. | ||
|
||
## Introduction | ||
|
||
This chart bootstraps a [SWCK Operator](https://github.com/apache/skywalking-swck/blob/master/docs/operator.md) deployment and a [SWCK Adapter](https://github.com/apache/skywalking-swck/blob/master/docs/custom-metrics-adapter.md) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes 1.24.0+ | ||
- Helm 3 | ||
|
||
## Installing the Chart | ||
|
||
To install the chart with the release name `my-release`: | ||
|
||
```shell | ||
$ helm install my-release skywalking-swck -n <namespace> | ||
``` | ||
|
||
The command deploys Apache SkyWalking-SWCK on the Kubernetes cluster in the default configuration. The [configuration](#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: | ||
|
||
```shell | ||
$ helm uninstall my-release -n <namespace> | ||
``` | ||
|
||
The command removes all the SkyWalking-SWCK components associated with the chart and deletes the release. | ||
|
||
## Configuration | ||
|
||
There are two major components in swck, namely operator and custom metrics adapter. The following table lists the configurable parameters of the two components and their default values. | ||
|
||
| Parameter | Description | Default | | ||
|--------------------------------------------------------------|--------------------------------------------------------------------------------------------------|--------------------------------------| | ||
| `fullnameOverride` | Override fullname | `nil` | | ||
| `adapter.enabled` | Enable the custom metrics adapter. | `false` | | ||
| `adapter.namespace` | Namespace of adapter deployment | `skywalking-custom-metrics-system` | | ||
| `adapter.replicaCount` | The replicas of adapter | `1` | | ||
| `adapter.serviceAccountName` | The service account name of adapter | `skywalking-custom-metrics-apiserver` | | ||
| `adapter.image.repository` | Adapter container image name | `docker.io/apache/skywalking-swck` | | ||
| `adapter.image.pullPolicy` | Adapter container image pull policy | `IfNotPresent` | | ||
| `adapter.image.tag` | Adapter container image tag | `v0.7.0` | | ||
| `adapter.service.port` | The port for the adapter service | `6.1.0` | | ||
| `adapter.oap.service.name` | The service name of OAP | `skywalking-system-oap` | | ||
| `adapter.oap.service.namespace` | The service namespace of OAP | `skywalking-system` | | ||
| `adapter.oap.service.port` | The service port of OAP | `12800` | | ||
| `adapter.resources.limits.cpu` | The limits of cpu in the adapter | `100m` | | ||
| `adapter.resources.limits.memory` | The limits of memory in the adapter | `200Mi` | | ||
| `adapter.resources.requests.cpu` | The requests of cpu in the adapter | `100m` | | ||
| `adapter.resources.requests.memory` | The requests of memory in the adapter | `200Mi` | | ||
| `adapter.affinity` | The affinity policy of adapter | `{}` | | ||
| `operator.replicaCount` | The replicas of operator | `1` | | ||
| `operator.serviceAccountName` | The service account name of operator | `skywalking-swck-controller-manager` | | ||
| `operator.image.repository` | Operator container image name | `docker.io/apache/skywalking-swck` | | ||
| `operator.image.pullPolicy` | Operator container image pull policy | `IfNotPresent` | | ||
| `operator.image.tag` | Operator container image tag | `v0.7.0` | | ||
| `operator.metrics.service.port` | The port for the operator metrics service | `8443` | | ||
| `operator.webhook.service.port` | The port for the operator web hook service | `9443` | | ||
| `operator.resources.limits.cpu` | The limits of cpu in the operator | `200m` | | ||
| `operator.resources.limits.memory` | The limits of memory in the operator | `300Mi` | | ||
| `operator.resources.requests.cpu` | The requests of cpu in the operator | `200m` | | ||
| `operator.resources.requests.memory` | The requests of memory in the operator | `300Mi` | | ||
| `operator.affinity` | The affinity policy of operator | `{}` | | ||
|
||
|
||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example, | ||
|
||
```console | ||
$ helm install myrelease skywalking-swck --set fullnameOverride=newskywalking-swck --set adapter.enabled=true | ||
``` | ||
|
||
Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example, | ||
|
||
```console | ||
$ helm install my-release skywalking-swck -f values.yaml | ||
``` | ||
|
||
> **Tip**: You can use the default [values.yaml](values.yaml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{{/* | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
************************************************************************ | ||
* * | ||
* SkyWalking-SWCK Helm Chart by SkyWalking Team * | ||
* * | ||
************************************************************************ | ||
|
||
Thank you for installing {{ .Chart.Name }}. | ||
|
||
Your release is named {{ .Release.Name }}. | ||
|
||
Learn more, please visit https://github.com/apache/skywalking-swck/tree/master/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{{/* | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You under the Apache License, Version 2.0 | ||
(the "License"); you may not use this file except in compliance with | ||
the License. You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/}} | ||
|
||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "skywalking-swck.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "skywalking-swck.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "skywalking-swck.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "skywalking-swck.labels" -}} | ||
helm.sh/chart: {{ include "skywalking-swck.chart" . }} | ||
{{ include "skywalking-swck.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "skywalking-swck.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "skywalking-swck.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
Oops, something went wrong.