prod-repo-service
by Helm
Helm chartv2.0.5App 2.0.5
Product service of Choerodon.
About this chart
prod-repo-service
Product service of Choerodon.
Installing the Chart
To install the chart with the release name prod-repo-service:
$ helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n
$ helm repo update
$ helm install prod-repo-service c7n/prod-repo-service
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Uninstalling the Chart
$ helm delete prod-repo-service
Requirements
| Repository | Name | Version |
|---|---|---|
| https://openchart.choerodon.com.cn/choerodon/c7n | common | 1.x.x |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for pod assignment. Evaluated as a template. Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set |
| args | list | [] | Args for running the server container (set to default if not set). Use array form |
| automountServiceAccountToken | bool | false | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. |
| base.pullPolicy | string | "IfNotPresent" | Specify a imagePullPolicy |
| base.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. |
| base.registry | string | "registry.cn-shanghai.aliyuncs.com" | Java base image registry |
| base.repository | string | "c7n/javabase" | Java base image repository |
| base.tag | string | "jdk8u282-b08" | Java base image tag |
| command | list | [] | Command for running the server container (set to default if not set). Use array form |
| commonAnnotations | object | {} | Add annotations to all the deployed resources |
| commonLabels | object | {} | Add labels to all the deployed resources |
| containerPort.actuatorPort | int | 7145 | server management port |
| containerPort.serverPort | int | 7144 | server port |
| customLivenessProbe | object | {} | Custom Liveness |
| customReadinessProbe | object | {} | Custom Readiness |
| customStartupProbe | object | {} | Custom Startup probes |
| enableServiceLinks | bool | false | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to false. |
| extraEnv.DES_ENCRYPT_DES_IV | string | "HH123456" | |
| extraEnv.DES_ENCRYPT_DES_KEY | string | "uhNT5moFYsw1xYEQTaSkpUSXJLa7VcerZiXYOwiRo1kLRIkX4kw2UPlIt5cbHtXxIsJbeipgX5HerWoGeCpG" | |
| extraEnv.EUREKA_CLIENT_SERVICEURL_DEFAULTZONE | string | "http://register-server:8080" | |
| extraEnv.HARBOR_API_VERSION | string | "v1" | |
| extraEnv.HARBOR_BASE_URL | string | "https://registry.com" | |
| extraEnv.HARBOR_PASSWORD | string | "admin" | |
| extraEnv.HARBOR_USER_NAME | string | "admin" | |
| extraEnv.NEXUS_DEFAULT_ANONYMOUS_ROLE | string | "test" | |
| extraEnv.NEXUS_DEFAULT_ANONYMOUS_USER | string | "test" | |
| extraEnv.NEXUS_DEFAULT_BASE_URL | string | "https://localhost" | |
| extraEnv.NEXUS_DEFAULT_ENABLE_ANONYMOUS_FLAG | int | 0 | |
| extraEnv.NEXUS_DEFAULT_PASSWORD | string | "admin" | |
| extraEnv.NEXUS_DEFAULT_USER_NAME | string | "admin" | |
| extraEnv.NEXUS_PROXY_BASE | string | "https://localhost" | |
| extraEnv.NEXUS_PROXY_SERVLETURI | string | "/v1/nexus/proxy/*" | |
| extraEnv.NEXUS_PROXY_URIPREFIX | string | "/v1/nexus/proxy" | |
| extraEnv.SERVICES_GATEWAY_URL | string | "http://api.example.com" | |
| extraEnv.SERVICE_ROUTE | string | "/rdupm" | |
| extraEnv.SPRING_CLOUD_CONFIG_ENABLED | bool | false | |
| extraEnv.SPRING_CLOUD_CONFIG_URI | string | "http://register-server:8000" | |
| extraEnv.SPRING_DATASOURCE_PASSWORD | int | 123456 | |
| extraEnv.SPRING_DATASOURCE_URL | string | "jdbc:mysql://localhost:3306/hrds_prod_repo?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai" | |
| extraEnv.SPRING_DATASOURCE_USERNAME | string | "choerodon" | |
| extraEnv.SPRING_REDIS_DATABASE | int | 0 | |
| extraEnv.SPRING_REDIS_HOST | string | "localhost" | |
| extraEnv.SPRING_REDIS_PORT | int | 6379 | |
| extraEnvVarsCM | string | "" | ConfigMap with extra environment variables |
| extraEnvVarsSecret | string | "" | Secret with extra environment variables |
| extraVolumeMounts | list | [] | Extra volume mounts to add to server containers |
| extraVolumes | list | [] | Extra volumes to add to the server statefulset |
| fullnameOverride | string | nil | String to fully override common.names.fullname template |
| global.imagePullSecrets | list | [] | Global Docker registry secret names as an array |
| global.imageRegistry | string | nil | Global Docker image registry |
| global.storageClass | string | nil | Global StorageClass for Persistent Volume(s) |
| hostAliases | list | [] | server pod host aliases |
| image.pullPolicy | string | "IfNotPresent" | Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' |
| image.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. |
| image.registry | string | "registry.cn-shanghai.aliyuncs.com" | service image registry |
| image.repository | string | "c7n/prod-repo-service" | service image repository |
| image.tag | string | nil | service image tag. Default Chart.AppVersion |
| ingress.annotations | object | {} | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. |
| ingress.apiVersion | string | "" | Force Ingress API version (automatically detected if not set) |
| ingress.enabled | bool | false | Enable ingress record generation for Discourse |
| ingress.extraHosts | list | [] | An array with additional hostname(s) to be covered with the ingress record |
| ingress.extraPaths | list | [] | An array with additional arbitrary paths that may need to be added to the ingress under the main host |
| ingress.extraTls | list | [] | TLS configuration for additional hostname(s) to be covered with this ingress record |
| ingress.hostname | string | "server.local" | Default host for the ingress record |
| ingress.ingressClassName | string | "" | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) |
| ingress.path | string | "/" | Default path for the ingress record |
| ingress.pathType | string | "ImplementationSpecific" | Ingress path type |
| ingress.secrets | list | [] | Custom TLS certificates as secrets |
| ingress.selfSigned | bool | false | Create a TLS secret for this ingress record using self-signed certificates generated by Helm |
| ingress.tls | bool | false | Enable TLS configuration for the host defined at ingress.hostname parameter |
| initContainers | object | {} | Add init containers to the server pods. |
| initDatabases.affinity | object | {} | Affinity for pod assignment. Evaluated as a template. Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set |
| initDatabases.datasource.driver | string | "com.mysql.jdbc.Driver" | |
| initDatabases.datasource.password | string | "password" | |
| initDatabases.datasource.url | string | "jdbc:mysql://localhost:3306/?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai" | |
| initDatabases.datasource.username | string | "username" | |
| initDatabases.datasources.platform.driver | string | "com.mysql.jdbc.Driver" | |
| initDatabases.datasources.platform.password | string | "password" | |
| initDatabases.datasources.platform.url | string | "jdbc:mysql://localhost:3306/?useUnicode=true&characterEncoding=utf-8&useSSL=false&useInformationSchema=true&remarks=true&serverTimezone=Asia/Shanghai" | |
| initDatabases.datasources.platform.username | string | "username" | |
| initDatabases.enabled | bool | true | |
| initDatabases.exclusion | string | "" | Excluding update certain tables or fields: table1,table2.column1 |
| initDatabases.nodeSelector | object | {} | Node labels for pod assignment. Evaluated as a template. |
| initDatabases.pullPolicy | string | "IfNotPresent" | Specify a imagePullPolicy. Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' |
| initDatabases.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. |
| initDatabases.registry | string | "registry.cn-shanghai.aliyuncs.com" | DB tool image registry |
| initDatabases.repository | string | "c7n/dbtool" | DB tool image repository |
| initDatabases.tag | string | "0.7.5" | DB tool image tag. Default Chart.AppVersion |
| initDatabases.timeout | int | 1800 | |
| initDatabases.tolerations | list | [] | Tolerations for pod assignment. Evaluated as a template. |
| kubeVersion | string | nil | Force target Kubernetes version (using Helm capabilites if not set) |
| livenessProbe.enabled | bool | true | Enable livenessProbe |
| livenessProbe.failureThreshold | int | 5 | Failure threshold for livenessProbe |
| livenessProbe.initialDelaySeconds | int | 480 | Initial delay seconds for livenessProbe |
| livenessProbe.periodSeconds | int | 5 | Period seconds for livenessProbe |
| livenessProbe.successThreshold | int | 1 | Success threshold for livenessProbe |
| livenessProbe.timeoutSeconds | int | 3 | Timeout seconds for livenessProbe |
| nameOverride | string | nil | String to partially override common.names.fullname template (will maintain the release name) |
| nodeAffinityPreset.key | string | "" | Node label key to match |
| nodeAffinityPreset.type | string | "" | Node affinity type. Allowed values: soft, hard |
| nodeAffinityPreset.values | list | [] | Node label values to match |
| nodeSelector | object | {} | Node labels for pod assignment. Evaluated as a template. |
| persistence.accessModes | list | ["ReadWriteOnce"] | Persistent Volume Access Mode |
| persistence.annotations | object | {} | Persistent Volume Claim annotations |
| persistence.enabled | bool | false | If true, use a Persistent Volume Claim, If false, use emptyDir |
| persistence.existingClaim | string | nil | Enable persistence using an existing PVC |
| persistence.mountPath | string | "/data" | Data volume mount path |
| persistence.size | string | "8Gi" | Persistent Volume size |
| persistence.storageClass | string | nil | Persistent Volume Storage Class |
| podAffinityPreset | string | "" | Pod affinity preset. Allowed values: soft, hard |
| podAnnotations | object | {} | Pod annotations |
| podAntiAffinityPreset | string | "soft" | Pod anti-affinity preset. Allowed values: soft, hard |
| podLabels | object | {} | Pod labels |
| readinessProbe.enabled | bool | true | Enable readinessProbe |
| readinessProbe.failureThreshold | int | 5 | Failure threshold for readinessProbe |
| readinessProbe.initialDelaySeconds | int | 30 | Initial delay seconds for readinessProbe |
| readinessProbe.periodSeconds | int | 5 | Period seconds for readinessProbe |
| readinessProbe.successThreshold | int | 1 | Success threshold for readinessProbe |
| readinessProbe.timeoutSeconds | int | 3 | Timeout seconds for readinessProbe |
| replicaCount | int | 1 | Number of deployment replicas |
| resources.limits | object | {"memory":"2Gi"} | The resources limits for the init container |
| resources.requests | object | {"memory":"2Gi"} | The requested resources for the init container |
| schedulerName | string | nil | Scheduler name |
| securityContext | object | {"enabled":true,"fsGroup":33,"runAsUser":33} | Security Context |
| service.annotations | object | {} | Provide any additional annotations which may be required. This can be used to set the LoadBalancer service type to internal only. |
| service.enabled | bool | true | Set to true to enable service record generation |
| service.externalTrafficPolicy | string | "Cluster" | Enable client source IP preservation |
| service.loadBalancerIP | string | nil | loadBalancerIP for the server Service (optional, cloud specific) |
| service.loadBalancerSourceRanges | list | [] | Load Balancer sources |
| service.nodePort | object | {"actuator":30179,"server":30178} | Specify the nodePort value for the LoadBalancer and NodePort service types. |
| service.port | object | {"actuator":7145,"server":7144} | server Service port |
| service.type | string | "ClusterIP" | server Service type |
| serviceAccount.create | bool | false | Set to true to create serviceAccount |
| serviceAccount.name | string | "" | The name of the ServiceAccount to use. |
| sidecars | object | {} | Add sidecars to the server pods. |
| skywalking.collectorService | string | "oap.skywalking:11800" | Collector SkyWalking trace receiver service addresses. |
| skywalking.commandOverride | string | nil | String to fully override Skywalking Agent Configuration template |
| skywalking.enabled | bool | false | Enable skywalking |
| skywalking.pullPolicy | string | "IfNotPresent" | Specify a imagePullPolicy Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' |
| skywalking.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. |
| skywalking.registry | string | "registry.cn-shanghai.aliyuncs.com" | Skywalking image registry |
| skywalking.repository | string | "c7n/skywalking-agent" | Skywalking image repository |
| skywalking.sampleNPer3Secs | int | 9 | Negative or zero means off, by default. sampleNPer3Secs means sampling N TraceSegment in 3 seconds tops. |
| skywalking.serviceName | string | nil | The serviceName (Default .Chart.Name) to represent a logic group |
Deploy prod-repo-service with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has prod-repo-service 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 chartprod-repo-service is pinned at v2.0.5 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