alibaba-sentinel

by ygqygq2

Helm chartv0.1.1App 1.8.9Verified publisher

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

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
nameOverrideString to partially override fullname template (will maintain the release name)""
fullnameOverrideString to fully override fullname template""
namespaceOverrideString to fully override common.names.namespace""
kubeVersionForce target Kubernetes version (using Helm capabilities if not set)""
clusterDomainKubernetes Cluster Domaincluster.local
extraDeployExtra objects to deploy (value evaluated as a template)[]
commonLabelsAdd labels to all the deployed resources{}
commonAnnotationsAdd annotations to all the deployed resources{}

Alibaba Sentinel parameters

NameDescriptionValue
image.registryAlibaba Sentinel image registryghcr.io
image.repositoryAlibaba Sentinel image repositorydocker-autodevops/alibaba-sentinel
image.tagAlibaba Sentinel image tag (immutable tags are recommended)1.8.9
image.digestImage digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyAlibaba Sentinel image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
hostAliasesDeployment pod host aliases[]
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
extraEnvVarsExtra environment variables to be set on Alibaba Sentinel containers[]
extraEnvVarsCMName of existing ConfigMap containing extra environment variables""
extraEnvVarsSecretName of existing Secret containing extra environment variables""

Alibaba Sentinel deployment parameters

NameDescriptionValue
replicaCountNumber of Alibaba Sentinel replicas to deploy1
statefulset.enabledUse StatefulSet instead of Deploymentfalse
podLabelsAdditional labels for Alibaba Sentinel pods{}
podAnnotationsAnnotations for Alibaba Sentinel pods{}
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set.""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set.[]
affinityAffinity for pod assignment{}
hostNetworkSpecify if host network should be enabled for podfalse
hostIPCSpecify if host IPC should be enabled for podfalse
nodeSelectorNode labels for pod assignment. Evaluated as a template.{}
tolerationsTolerations for pod assignment. Evaluated as a template.[]
priorityClassNamePriority class name""
podSecurityContext.enabledEnabled Alibaba Sentinel pods' Security Contextfalse
podSecurityContext.fsGroupSet Alibaba Sentinel pod's Security Context fsGroup1001
podSecurityContext.sysctlssysctl settings of the Alibaba Sentinel pods[]
containerSecurityContext.enabledEnabled Alibaba Sentinel containers' Security Contextfalse
containerSecurityContext.runAsUserSet Alibaba Sentinel container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet Alibaba Sentinel container's Security Context runAsNonRoottrue
resources.limitsThe resources limits for the Alibaba Sentinel container{}
resources.requestsThe requested resources for the Alibaba Sentinel container{}
customLivenessProbeOverride default liveness probe{}
customReadinessProbeOverride default readiness probe{}
customStartupProbeOverride default startup probe{}
healthCheck简化的健康检测,支持 tcp、http,具体查看 values.yaml
autoscaling.vpa.enabledEnable VPAfalse
autoscaling.hpa.enabledEnable HPAfalse
autoscaling.hpa.minReplicasMinimum number of replicas to scale back""
autoscaling.hpa.maxReplicasMaximum number of replicas to scale out""
autoscaling.hpa.targetCPUTarget CPU utilization percentage""
autoscaling.hpa.targetMemoryTarget Memory utilization percentage""
extraVolumesArray to add extra volumes[]
extraVolumeMountsArray to add extra mount[]
serviceAccount.createEnable creation of ServiceAccount for podfalse
serviceAccount.nameThe name of the ServiceAccount to use.""
serviceAccount.annotationsAnnotations for service account. Evaluated as a template.{}
serviceAccount.automountServiceAccountTokenAuto-mount the service account token in the podfalse
sidecarsSidecar parameters[]
sidecarSingleProcessNamespaceEnable sharing the process namespace with sidecarsfalse
initContainersExtra init containers[]
pdb.createCreated a PodDisruptionBudgetfalse
pdb.minAvailableMin number of pods that must still be available after the eviction1
pdb.maxUnavailableMax number of pods that can be unavailable after the eviction0

Traffic Exposure parameters

NameDescriptionValue
service.typeService typeClusterIP
service.portsService portssee values.yaml
service.loadBalancerIPLoadBalancer service IP address""
service.sessionAffinitySession Affinity for Kubernetes service, can be "None" or "ClientIP"None
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
service.annotationsService annotations{}
service.externalTrafficPolicyEnable 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartalibaba-sentinel is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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