choerodon-message

by Helm

Helm chartv2.0.4App 2.0.4

Message service of Choerodon.

About this chart

choerodon-message

Message service of Choerodon.

Installing the Chart

To install the chart with the release name choerodon-message:

$ helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n
$ helm repo update
$ helm install choerodon-message c7n/choerodon-message

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Uninstalling the Chart

$ helm delete choerodon-message

Requirements

RepositoryNameVersion
https://openchart.choerodon.com.cn/choerodon/c7ncommon1.x.x

Values

KeyTypeDefaultDescription
affinityobject{}Affinity for pod assignment. Evaluated as a template. Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
argslist[]Args for running the server container (set to default if not set). Use array form
automountServiceAccountTokenboolfalseAutomountServiceAccountToken indicates whether a service account token should be automatically mounted.
base.pullPolicystring"IfNotPresent"Specify a imagePullPolicy
base.pullSecretslist[]Optionally specify an array of imagePullSecrets.
base.registrystring"registry.cn-shanghai.aliyuncs.com"Java base image registry
base.repositorystring"c7n/javabase"Java base image repository
base.tagstring"jdk8u282-b08"Java base image tag
commandlist[]Command for running the server container (set to default if not set). Use array form
commonAnnotationsobject{}Add annotations to all the deployed resources
commonLabelsobject{}Add labels to all the deployed resources
containerPort.actuatorPortint8121server management port
containerPort.serverPortint8120server port
customLivenessProbeobject{}Custom Liveness
customReadinessProbeobject{}Custom Readiness
customStartupProbeobject{}Custom Startup probes
enableServiceLinksboolfalseEnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to false.
extraEnv.EUREKA_CLIENT_SERVICEURL_DEFAULTZONEstring"http://register-server:8000/eureka/"
extraEnv.EUREKA_INSTANCE_LEASE_EXPIRATION_DURATION_IN_SECONDSint45
extraEnv.EUREKA_INSTANCE_LEASE_RENEWAL_INTERVAL_IN_SECONDSint30
extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_CONNECT_TIMEOUTint2000
extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_READ_TIMEOUTint5000
extraEnv.HZERO_RESOURCE_PATTERNstring"/v1/*,/hzero/*,/iam/v1/*,/iam/hzero/*,/choerodon/v1/*"
extraEnv.HZERO_SMS_FAKEboolfalse
extraEnv.HZERO_WEBSOCKET_OAUTHURLstring"http://choerodon-oauth/oauth/api/user"
extraEnv.LOG_LEVELstring"info"
extraEnv.SPRING_CLOUD_CONFIG_ENABLEDboolfalse
extraEnv.SPRING_CLOUD_CONFIG_URIstring"http://dev.hzero.org:8010/"
extraEnv.SPRING_DATASOURCE_CONNECTION_TIMEOUTint30000
extraEnv.SPRING_DATASOURCE_MAXIMUM_POOL_SIZEint200
extraEnv.SPRING_DATASOURCE_MINIMUM_IDLEint20
extraEnv.SPRING_DATASOURCE_PASSWORDstring"password"
extraEnv.SPRING_DATASOURCE_URLstring"jdbc:mysql://localhost:3306/hzero_message?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai"
extraEnv.SPRING_DATASOURCE_USERNAMEstring"choerodon"
extraEnv.SPRING_REDIS_DATABASEint1
extraEnv.SPRING_REDIS_HOSTstring"localhost"
extraEnv.SPRING_REDIS_POOL_MAX_ACTIVEint50
extraEnv.SPRING_REDIS_POOL_MAX_IDLEint50
extraEnv.SPRING_REDIS_POOL_MAX_WAITint5000
extraEnv.SPRING_REDIS_PORTint6379
extraEnvVarsCMstring""ConfigMap with extra environment variables
extraEnvVarsSecretstring""Secret with extra environment variables
extraVolumeMountslist[]Extra volume mounts to add to server containers
extraVolumeslist[]Extra volumes to add to the server statefulset
fullnameOverridestringnilString to fully override common.names.fullname template
global.imagePullSecretslist[]Global Docker registry secret names as an array
global.imageRegistrystringnilGlobal Docker image registry
global.storageClassstringnilGlobal StorageClass for Persistent Volume(s)
hostAliaseslist[]server pod host aliases
image.pullPolicystring"IfNotPresent"Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
image.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
image.registrystring"registry.cn-shanghai.aliyuncs.com"service image registry
image.repositorystring"c7n/choerodon-iam-service-hand"service image repository
image.tagstringnilservice image tag. Default Chart.AppVersion
ingress.annotationsobject{}Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.
ingress.apiVersionstring""Force Ingress API version (automatically detected if not set)
ingress.enabledboolfalseEnable ingress record generation for Discourse
ingress.extraHostslist[]An array with additional hostname(s) to be covered with the ingress record
ingress.extraPathslist[]An array with additional arbitrary paths that may need to be added to the ingress under the main host
ingress.extraTlslist[]TLS configuration for additional hostname(s) to be covered with this ingress record
ingress.hostnamestring"server.local"Default host for the ingress record
ingress.ingressClassNamestring""IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
ingress.pathstring"/"Default path for the ingress record
ingress.pathTypestring"ImplementationSpecific"Ingress path type
ingress.secretslist[]Custom TLS certificates as secrets
ingress.selfSignedboolfalseCreate a TLS secret for this ingress record using self-signed certificates generated by Helm
ingress.tlsboolfalseEnable TLS configuration for the host defined at ingress.hostname parameter
initContainersobject{}Add init containers to the server pods.
initDatabases.affinityobject{}Affinity for pod assignment. Evaluated as a template. Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
initDatabases.datasource.driverstring"com.mysql.jdbc.Driver"
initDatabases.datasource.passwordstring"password"
initDatabases.datasource.urlstring"jdbc:mysql://localhost:3306/?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai"
initDatabases.datasource.usernamestring"username"
initDatabases.enabledbooltrue
initDatabases.exclusionstring""Excluding update certain tables or fields: table1,table2.column1
initDatabases.nodeSelectorobject{}Node labels for pod assignment. Evaluated as a template.
initDatabases.pullPolicystring"IfNotPresent"Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
initDatabases.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
initDatabases.registrystring"registry.cn-shanghai.aliyuncs.com"DB tool image registry
initDatabases.repositorystring"c7n/dbtool"DB tool image repository
initDatabases.tagstring"0.9.2"DB tool image tag. Default Chart.AppVersion
initDatabases.timeoutint1800
initDatabases.tolerationslist[]Tolerations for pod assignment. Evaluated as a template.
kubeVersionstringnilForce target Kubernetes version (using Helm capabilites if not set)
livenessProbe.enabledbooltrueEnable livenessProbe
livenessProbe.failureThresholdint5Failure threshold for livenessProbe
livenessProbe.initialDelaySecondsint480Initial delay seconds for livenessProbe
livenessProbe.periodSecondsint5Period seconds for livenessProbe
livenessProbe.successThresholdint1Success threshold for livenessProbe
livenessProbe.timeoutSecondsint3Timeout seconds for livenessProbe
nameOverridestringnilString to partially override common.names.fullname template (will maintain the release name)
nodeAffinityPreset.keystring""Node label key to match
nodeAffinityPreset.typestring""Node affinity type. Allowed values: soft, hard
nodeAffinityPreset.valueslist[]Node label values to match
nodeSelectorobject{}Node labels for pod assignment. Evaluated as a template.
persistence.accessModeslist["ReadWriteOnce"]Persistent Volume Access Mode
persistence.annotationsobject{}Persistent Volume Claim annotations
persistence.enabledboolfalseIf true, use a Persistent Volume Claim, If false, use emptyDir
persistence.existingClaimstringnilEnable persistence using an existing PVC
persistence.mountPathstring"/data"Data volume mount path
persistence.sizestring"8Gi"Persistent Volume size
persistence.storageClassstringnilPersistent Volume Storage Class
podAffinityPresetstring""Pod affinity preset. Allowed values: soft, hard
podAnnotationsobject{}Pod annotations
podAntiAffinityPresetstring"soft"Pod anti-affinity preset. Allowed values: soft, hard
podLabelsobject{}Pod labels
readinessProbe.enabledbooltrueEnable readinessProbe
readinessProbe.failureThresholdint5Failure threshold for readinessProbe
readinessProbe.initialDelaySecondsint30Initial delay seconds for readinessProbe
readinessProbe.periodSecondsint5Period seconds for readinessProbe
readinessProbe.successThresholdint1Success threshold for readinessProbe
readinessProbe.timeoutSecondsint3Timeout seconds for readinessProbe
replicaCountint1Number of deployment replicas
resources.limitsobject{"memory":"2Gi"}The resources limits for the init container
resources.requestsobject{"memory":"2Gi"}The requested resources for the init container
schedulerNamestringnilScheduler name
securityContextobject{"enabled":true,"fsGroup":33,"runAsUser":33}Security Context
service.annotationsobject{}Provide any additional annotations which may be required. This can be used to set the LoadBalancer service type to internal only.
service.enabledbooltrueSet to true to enable service record generation
service.externalTrafficPolicystring"Cluster"Enable client source IP preservation
service.loadBalancerIPstringnilloadBalancerIP for the server Service (optional, cloud specific)
service.loadBalancerSourceRangeslist[]Load Balancer sources
service.nodePortobject{"actuator":30127,"server":30126}Specify the nodePort value for the LoadBalancer and NodePort service types.
service.portobject{"actuator":8121,"server":8120}server Service port
service.typestring"ClusterIP"server Service type
serviceAccount.createboolfalseSet to true to create serviceAccount
serviceAccount.namestring""The name of the ServiceAccount to use.
sidecarsobject{}Add sidecars to the server pods.
skywalking.collectorServicestring"oap.skywalking:11800"Collector SkyWalking trace receiver service addresses.
skywalking.commandOverridestringnilString to fully override Skywalking Agent Configuration template
skywalking.enabledboolfalseEnable skywalking
skywalking.pullPolicystring"IfNotPresent"Specify a imagePullPolicy Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
skywalking.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
skywalking.registrystring"registry.cn-shanghai.aliyuncs.com"Skywalking image registry
skywalking.repositorystring"c7n/skywalking-agent"Skywalking image repository
skywalking.sampleNPer3Secsint9Negative or zero means off, by default. sampleNPer3Secs means sampling N TraceSegment in 3 seconds tops.
skywalking.serviceNamestringnilThe serviceName (Default .Chart.Name) to represent a logic group providing the same capabilities/logic. Suggestion: set a unique name for every logic service group, service instance nodes share the same code,Max length is 50(UTF-8 char).
skywalking.tagstring"8.10.0"Skywalking image tag
startupProbe.enabledboolfalseEnable startupProbe
startupProbe.failureThresholdint60Failure threshold for startupProbe
startupProbe.initialDelaySecondsint0Initial delay seconds for startupProbe
startupProbe.periodSecondsint5Period seconds for startupProbe
startupProbe.successThresholdint1

Deploy choerodon-message with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has choerodon-message 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 chartchoerodon-message is pinned at v2.0.4 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