choerodon-oauth
by Helm
Helm chartv2.0.3App 2.0.3
Oauth service of Choerodon.
About this chart
choerodon-oauth
Oauth service of Choerodon.
Installing the Chart
To install the chart with the release name choerodon-oauth:
$ helm repo add c7n https://openchart.choerodon.com.cn/choerodon/c7n
$ helm repo update
$ helm install choerodon-oauth c7n/choerodon-oauth
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Uninstalling the Chart
$ helm delete choerodon-oauth
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 | 8021 | server management port |
| containerPort.serverPort | int | 8020 | 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.CHOERODON_COOKIE_SAMESITE | string | "lax" | |
| extraEnv.CHOERODON_COOKIE_SECURE | bool | false | |
| extraEnv.EUREKA_CLIENT_SERVICEURL_DEFAULTZONE | string | "http://dev.hzero.org:8000/eureka/" | |
| extraEnv.EUREKA_INSTANCE_LEASE_EXPIRATION_DURATION_IN_SECONDS | int | 45 | |
| extraEnv.EUREKA_INSTANCE_LEASE_RENEWAL_INTERVAL_IN_SECONDS | int | 30 | |
| extraEnv.EUREKA_INSTANCE_PREFER_IP_ADDRESS | bool | true | |
| extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_CONNECT_TIMEOUT | int | 2000 | |
| extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_READ_TIMEOUT | int | 5000 | |
| extraEnv.HZERO_GATEWAY_URL | string | "http://api.example.com" | |
| extraEnv.HZERO_OAUTH_BASE_URL | string | "http://api.example.com/oauth" | |
| extraEnv.HZERO_OAUTH_CUSTOM_RESOURCE_MATCHER | bool | false | |
| extraEnv.HZERO_OAUTH_ENABLE_ALWAYS_CAPTCHA | bool | false | |
| extraEnv.HZERO_OAUTH_LOGIN_DEFAULT_CLIENT_ID | string | "choerodonparent" | |
| extraEnv.HZERO_OAUTH_LOGIN_DEFAULT_TEMPLATE | string | "slide" | |
| extraEnv.HZERO_OAUTH_LOGIN_ENABLE_HTTPS | bool | false | |
| extraEnv.HZERO_OAUTH_LOGIN_PAGE | string | "/choerodon/login" | |
| extraEnv.HZERO_OAUTH_LOGIN_SUCCESS_URL | string | "http://api.example.com" | |
| extraEnv.HZERO_OAUTH_LOGIN_SUPPORT_FIELDS | string | "username,email,phone" | |
| extraEnv.HZERO_OAUTH_LOGOUT_CLEAR_TOKEN | bool | true | |
| extraEnv.HZERO_OAUTH_NOT_CHECK_CLIENT_EQUALS | bool | false | |
| extraEnv.HZERO_OAUTH_SSO_ENABLED | bool | true | |
| extraEnv.LOG_LEVEL | string | "info" | |
| extraEnv.SPRING_DATASOURCE_MAXIMUM_POOL_SIZE | int | 200 | |
| extraEnv.SPRING_DATASOURCE_MINIMUM_IDLE | int | 20 | |
| extraEnv.SPRING_DATASOURCE_PASSWORD | string | "hzero" | |
| extraEnv.SPRING_DATASOURCE_URL | string | "jdbc:mysql://db.hzero.org:3306/hzero_platform?useUnicode=true&characterEncoding=utf-8&useSSL=false" | |
| extraEnv.SPRING_DATASOURCE_USERNAME | string | "hzero" | |
| extraEnv.SPRING_REDIS_DATABASE | int | 3 | |
| extraEnv.SPRING_REDIS_HOST | string | "redis.hzero.org" | |
| 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/choerodon-oauth" | 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. |
| 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":30099,"server":30098} | Specify the nodePort value for the LoadBalancer and NodePort service types. |
| service.port | object | {"actuator":8021,"server":8020} | 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 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.tag | string | "8.10.0" | Skywalking image tag |
| startupProbe.enabled | bool | false | Enable startupProbe |
| startupProbe.failureThreshold | int | 60 | Failure threshold for startupProbe |
| startupProbe.initialDelaySeconds | int | 0 | Initial delay seconds for startupProbe |
| startupProbe.periodSeconds | int | 5 | Period seconds for startupProbe |
| startupProbe.successThreshold | int | 1 | Success threshold for startupProbe |
| startupProbe.timeoutSeconds | int | 3 | Timeout seconds for startupProbe |
| tolerations | list | [] | Tolerations for pod assignment. Evaluated as a template. |
| updateStrategy.rollingUpdate | object | {"maxSurge":"100%","maxUnavailable":0} | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. |
| updateStrategy.type | string | "RollingUpdate" | Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. |
| volumePermissionsEnabled | bool | false | Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section. |
| workingDir | string | "/opt/choerodon" | Container's working directory(Default mountPath). |
Maintainers
| Name | Url | |
|---|---|---|
| choerodon | [email protected] | https://choerodon.io |
Deploy choerodon-oauth with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has choerodon-oauth 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 chartchoerodon-oauth is pinned at v2.0.3 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