devops-service-business

by Helm

Helm chartv2.0.13App 2.0.13

DevOps Service is the continuous delivery service of Choerodon.

About this chart

devops-service-business

DevOps Service is the continuous delivery service of Choerodon.

Installing the Chart

To install the chart with the release name devops-service-business:

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

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

Uninstalling the Chart

$ helm delete devops-service-business

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 devops-service-business 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 devops-service-business 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.actuatorPortint8061DevOps server management port
containerPort.serverPortint8060DevOps server 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.AGENT_CERTMANAGERURLstring"https://openchart.choerodon.com.cn/choerodon/c7n/"cert-manager helm chart url
extraEnv.AGENT_REPOCONCURRENCYSYNCSIZEint1Agent repo concurrency syncsize
extraEnv.AGENT_REPOURLstring"https://openchart.choerodon.com.cn/choerodon/c7n/"agent helm chart url
extraEnv.AGENT_SERVICEURLstring"ws://devops.example.com/websocket"devops-service-business websocket url
extraEnv.AGENT_VERSIONstring"2.0.0"choerodon-cluster-agent version
extraEnv.C7N_AGENT_BINARY_URLstring"http://example.com/c7n-agent-2.0.0"host agent url
extraEnv.C7N_AGENT_VERSIONstring"2.0.0"host agent version
extraEnv.CHOERODON_RESOURCE_JWT_IGNOREstring"/workflow/**, /sonar/**, /ci, /sonar/info, /v2/api-docs, /agent/**, /ws/**, /gitlab/email, /webhook/**, /v2/choerodon/**, /choerodon/**, /actuator/**, /prometheus, /devops/**, /pre_stop"Ignore the interface path of verification
extraEnv.CI_DFAULT_RULE_NUMBERint4
extraEnv.EUREKA_CLIENT_SERVICEURL_DEFAULTZONEstring"http://register-server:8000/eureka/"Eureka client service url
extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_CONNECT_TIMEOUTint2000feign client config default connect timeout
extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_READ_TIMEOUTint5000feign client config default read timeout
extraEnv.JAVA_OPTSstring"-XX:MaxRAMPercentage=90.0"
extraEnv.LOG_LEVELstring"info"
extraEnv.NEXUS_PROXY_URIPREFIXstring"/rdupm/v1/nexus/proxy"
extraEnv.SERVICES_FRONT_URLstring"http://app.example.com"Choerodon front url
extraEnv.SERVICES_GATEWAY_URLstring"http://api.example.com"Choerodon api url
extraEnv.SERVICES_GITLAB_INTERNALSSHURLstringnilGitlab ssh internal url
extraEnv.SERVICES_GITLAB_PROJECTLIMITint0Gitlab users can create the number of project
extraEnv.SERVICES_GITLAB_SSHURLstring"[email protected]"Gitlab ssh url
extraEnv.SERVICES_GITLAB_URLstring"http://git.example.com"Gitlab http(s) url
extraEnv.SERVICES_HELM_PASSWORDstringnilHelm chart password
extraEnv.SERVICES_HELM_URLstring"http://helm.example.com"Helm chart url
extraEnv.SERVICES_HELM_USERNAMEstringnilHelm chart username
extraEnv.SPRING_CLOUD_CONFIG_ENABLEDboolfalsewhether to enable the configuration center
extraEnv.SPRING_CLOUD_CONFIG_URIstring"http://register-server:8000"configuration center url
extraEnv.SPRING_DATASOURCE_PASSWORDstring"password"Datasource password
extraEnv.SPRING_DATASOURCE_URLstring"jdbc:mysql://localhost:3306/devops_service?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai"Datasource url
extraEnv.SPRING_DATASOURCE_USERNAMEstring"choerodon"Datasource username
extraEnv.SPRING_REDIS_DATABASEint9Redis database
extraEnv.SPRING_REDIS_HOSTstring"localhost"Redis host
extraEnv.SPRING_REDIS_PORTint6379Redis port
extraEnvVarsCMstring""ConfigMap with extra environment variables
extraEnvVarsSecretstring""Secret with extra environment variables
extraVolumeMountslist[]Extra volume mounts to add to devops-service-business containers
extraVolumeslist[]Extra volumes to add to the devops-service-business 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[]devops-service-business 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"DevOps service image registry
image.repositorystring"c7n/devops-service-business"DevOps service image repository
image.tagstringnilDevOps service 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 devops-service-business 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.datasources.platform.driverstring"com.mysql.jdbc.Driver"
initDatabases.datasources.platform.passwordstring"password"
initDatabases.datasources.platform.urlstring"jdbc:mysql://localhost:3306/?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai"
initDatabases.datasources.platform.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.7.5"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":"3Gi"}The resources limits for the init container
resources.requestsobject{"memory":"3Gi"}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 devops-service-business Service (optional, cloud specific)
service.loadBalancerSourceRangeslist[]Load Balancer sources
service.nodePortobject`{"actuator":301

Deploy devops-service-business with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has devops-service-business 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 chartdevops-service-business is pinned at v2.0.13 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