alibaba-sentinel
by ygqygq2
Chart for Alibaba Sentinel Dashboard
About this chart
Alibaba Sentinel
Alibaba Sentinel 是面向分布式、多语言异构化服务架构的流量治理组件,主要以流量为切入点,从流量路由、流量控制、流量整形、熔断降级、系统自适应过载保护、热点流量防护等多个维度来帮助开发者保障微服务的稳定性。
TL;DR
$ helm repo add ygqygq2 https://ygqygq2.github.io/charts/
$ helm install my-release ygqygq2/alibaba-sentinel
Introduction
此 Chart 用于在 Kubernetes 集群上使用 Helm 包管理器部署 Alibaba Sentinel Dashboard。
Prerequisites
- Kubernetes 1.23+
- Helm 3.8.0+
Installing the Chart
To install the chart with the release name my-release:
$ helm repo add ygqygq2 https://ygqygq2.github.io/charts/
$ helm install my-release ygqygq2/alibaba-sentinel
These commands deploy Alibaba Sentinel Dashboard on the Kubernetes cluster in the default configuration.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Parameters
Global parameters
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Common parameters
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override fullname template (will maintain the release name) | "" |
fullnameOverride | String to fully override fullname template | "" |
namespaceOverride | String to fully override common.names.namespace | "" |
kubeVersion | Force target Kubernetes version (using Helm capabilities if not set) | "" |
clusterDomain | Kubernetes Cluster Domain | cluster.local |
extraDeploy | Extra objects to deploy (value evaluated as a template) | [] |
commonLabels | Add labels to all the deployed resources | {} |
commonAnnotations | Add annotations to all the deployed resources | {} |
Alibaba Sentinel parameters
| Name | Description | Value |
|---|---|---|
image.registry | Alibaba Sentinel image registry | ghcr.io |
image.repository | Alibaba Sentinel image repository | docker-autodevops/alibaba-sentinel |
image.tag | Alibaba Sentinel image tag (immutable tags are recommended) | 1.8.9 |
image.digest | Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Alibaba Sentinel image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
hostAliases | Deployment pod host aliases | [] |
command | Override default container command (useful when using custom images) | [] |
args | Override default container args (useful when using custom images) | [] |
extraEnvVars | Extra environment variables to be set on Alibaba Sentinel containers | [] |
extraEnvVarsCM | Name of existing ConfigMap containing extra environment variables | "" |
extraEnvVarsSecret | Name of existing Secret containing extra environment variables | "" |
Alibaba Sentinel deployment parameters
| Name | Description | Value |
|---|---|---|
replicaCount | Number of Alibaba Sentinel replicas to deploy | 1 |
statefulset.enabled | Use StatefulSet instead of Deployment | false |
podLabels | Additional labels for Alibaba Sentinel pods | {} |
podAnnotations | Annotations for Alibaba Sentinel pods | {} |
podAffinityPreset | Pod affinity preset. Ignored if affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if affinity is set. | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if affinity is set. | [] |
affinity | Affinity for pod assignment | {} |
hostNetwork | Specify if host network should be enabled for pod | false |
hostIPC | Specify if host IPC should be enabled for pod | false |
nodeSelector | Node labels for pod assignment. Evaluated as a template. | {} |
tolerations | Tolerations for pod assignment. Evaluated as a template. | [] |
priorityClassName | Priority class name | "" |
podSecurityContext.enabled | Enabled Alibaba Sentinel pods' Security Context | false |
podSecurityContext.fsGroup | Set Alibaba Sentinel pod's Security Context fsGroup | 1001 |
podSecurityContext.sysctls | sysctl settings of the Alibaba Sentinel pods | [] |
containerSecurityContext.enabled | Enabled Alibaba Sentinel containers' Security Context | false |
containerSecurityContext.runAsUser | Set Alibaba Sentinel container's Security Context runAsUser | 1001 |
containerSecurityContext.runAsNonRoot | Set Alibaba Sentinel container's Security Context runAsNonRoot | true |
resources.limits | The resources limits for the Alibaba Sentinel container | {} |
resources.requests | The requested resources for the Alibaba Sentinel container | {} |
customLivenessProbe | Override default liveness probe | {} |
customReadinessProbe | Override default readiness probe | {} |
customStartupProbe | Override default startup probe | {} |
healthCheck | 简化的健康检测,支持 tcp、http,具体查看 values.yaml | |
autoscaling.vpa.enabled | Enable VPA | false |
autoscaling.hpa.enabled | Enable HPA | false |
autoscaling.hpa.minReplicas | Minimum number of replicas to scale back | "" |
autoscaling.hpa.maxReplicas | Maximum number of replicas to scale out | "" |
autoscaling.hpa.targetCPU | Target CPU utilization percentage | "" |
autoscaling.hpa.targetMemory | Target Memory utilization percentage | "" |
extraVolumes | Array to add extra volumes | [] |
extraVolumeMounts | Array to add extra mount | [] |
serviceAccount.create | Enable creation of ServiceAccount for pod | false |
serviceAccount.name | The name of the ServiceAccount to use. | "" |
serviceAccount.annotations | Annotations for service account. Evaluated as a template. | {} |
serviceAccount.automountServiceAccountToken | Auto-mount the service account token in the pod | false |
sidecars | Sidecar parameters | [] |
sidecarSingleProcessNamespace | Enable sharing the process namespace with sidecars | false |
initContainers | Extra init containers | [] |
pdb.create | Created a PodDisruptionBudget | false |
pdb.minAvailable | Min number of pods that must still be available after the eviction | 1 |
pdb.maxUnavailable | Max number of pods that can be unavailable after the eviction | 0 |
Traffic Exposure parameters
| Name | Description | Value |
|---|---|---|
service.type | Service type | ClusterIP |
service.ports | Service ports | see values.yaml |
service.loadBalancerIP | LoadBalancer service IP address | "" |
service.sessionAffinity | Session Affinity for Kubernetes service, can be "None" or "ClientIP" | None |
service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
service.annotations | Service annotations | {} |
service.externalTrafficPolicy | Enable client source IP preservation |
Deploy alibaba-sentinel with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has alibaba-sentinel 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 chartalibaba-sentinel is pinned at v0.1.1 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