seata-server

by ygqygq2

Helm chartv1.0.0App 2.2.0Verified publisher

A Helm chart for seata-server

About this chart

seata-server

seata-server (pronounced "engine-x") is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server).

TL;DR

$ helm repo add ygqygq2 https://ygqygq2.github.io/charts/
$ helm install my-release ygqygq2/seata-server

Introduction

seata-server 参考 Bitnami 作为一个通用模板,可用于新 chart 的快速制作,仅需将 app-name 名字替换下即可。

This chart bootstraps a seata-server Open Source deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters. This Helm chart has been tested on top of Bitnami Kubernetes Production Runtime (BKPR). Deploy BKPR to get automated TLS certificates, logging and monitoring for your applications.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.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/seata-server

These commands deploy seata-server Open Source 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[]

Common parameters

NameDescriptionValue
nameOverrideString to partially override nginx.fullname template (will maintain the release name)""
fullnameOverrideString to fully override nginx.fullname template""
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{}

seata-server parameters

NameDescriptionValue
image.registryseata-server image registrydocker.io
image.repositoryseata-server image repositorybitnami/nginx
image.tagseata-server image tag (immutable tags are recommended)1.21.5-debian-10-r3
image.pullPolicyseata-server image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
image.debugSet to true if you would like to see extra information on logsfalse
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 seata-server containers[]
extraEnvVarsCMConfigMap with extra environment variables""
extraEnvVarsSecretSecret with extra environment variables""

seata-server deployment parameters

NameDescriptionValue
replicaCountNumber of seata-server replicas to deploy1
podLabelsAdditional labels for seata-server pods{}
podAnnotationsAnnotations for seata-server 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{}
nodeSelectorNode labels for pod assignment. Evaluated as a template.{}
tolerationsTolerations for pod assignment. Evaluated as a template.{}
priorityClassNamePriority class name""
podSecurityContext.enabledEnabled seata-server pods' Security Contextfalse
podSecurityContext.fsGroupSet seata-server pod's Security Context fsGroup1001
podSecurityContext.sysctlssysctl settings of the seata-server pods[]
containerSecurityContext.enabledEnabled seata-server containers' Security Contextfalse
containerSecurityContext.runAsUserSet seata-server container's Security Context runAsUser1001
containerSecurityContext.runAsNonRootSet seata-server container's Security Context runAsNonRoottrue
containerPorts.httpSets http port inside seata-server container8080
containerPorts.httpsSets https port inside seata-server container""
resources.limitsThe resources limits for the seata-server container{}
resources.requestsThe requested resources for the seata-server container{}
customLivenessProbeOverride default liveness probe{}
customReadinessProbeOverride default readiness probe{}
healthCheck简化的健康检测,支持 tcp、http,具体查看 values.yaml
lifecycleHooksfor the haproxy container(s) to automate configuration before or after startup{}
autoscaling.enabledEnable autoscaling for seata-server deploymentfalse
autoscaling.minReplicasMinimum number of replicas to scale back""
autoscaling.maxReplicasMaximum number of replicas to scale out""
autoscaling.targetCPUTarget CPU utilization percentage""
autoscaling.targetMemoryTarget Memory utilization percentage""
extraVolumesArray to add extra volumes[]
extraVolumeMountsArray to add extra mount[]
serviceAccount.createEnable creation of ServiceAccount for nginx podfalse
serviceAccount.nameThe name of the ServiceAccount to use.""
serviceAccount.annotationsAnnotations for service account. Evaluated as a template.{}
serviceAccount.autoMountAuto-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 typeLoadBalancer
service.portService HTTP port80
service.httpsPortService HTTPS port443
service.nodePortsSpecify the nodePort(s) value(s) for the LoadBalancer and NodePort service types.{}
service.targetPortTarget port reference value for the Loadbalancer service types can be specified explicitly.{}
service.loadBalancerIPLoadBalancer service IP address""
service.annotationsService annotations{}
service.externalTrafficPolicyEnable client source IP preservationCluster
ingress.enabledSet to true to enable ingress record generationfalse
ingress.pathTypeIngress path type`Impl

Deploy seata-server with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has seata-server 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 chartseata-server is pinned at v1.0.0 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