choerodon-iam

by Helm

Helm chartv2.0.8App 2.0.8

IAM of Choerodon.

About this chart

choerodon-iam

IAM of Choerodon.

Installing the Chart

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

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

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

Uninstalling the Chart

$ helm delete choerodon-iam

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.actuatorPortint8031server management port
containerPort.serverPortint8030server 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.BUY_SAAS_URLstring"http://192.168.17.180:81/market-home"
extraEnv.CHOERODON_FIX_DATA_FLAGbooltrue
extraEnv.CHOERODON_GATEWAY_URLstring"http://api.example.com"
extraEnv.CHOERODON_GUIDE_DOCstring"http://open.app.example.com/"
extraEnv.CHOERODON_HELP_DOCstring"http://open.app.example.com/"
extraEnv.CHOERODON_OPEN_PLATFORM_OAUTH_CLIENTIDstring"choerodon"
extraEnv.CHOERODON_OPEN_PLATFORM_OAUTH_PUBLICKEYstring"XXXX"
extraEnv.CHOERODON_OPEN_PLATFORM_OAUTH_SECRETstring"XXXX"
extraEnv.CHOERODON_OPEN_PLATFORM_OAUTH_URLstring"https://gateway.open.hand-china.com"
extraEnv.CHOERODON_ORGANIZATION_LINK_COMPLETEstring"http://app.example.com/#/iam/invite-user"
extraEnv.CHOERODON_PROJECT_INVITE_URLstring"http://app.example.com/#/iam/invite-user"
extraEnv.CHOERODON_REGISTER_LOGIN_URLstring"http://open.app.example.com/"
extraEnv.CHOERODON_REGISTER_URLstring"http://open.app.example.com/#/iam/register-saas?crowdId="
extraEnv.CHOERODON_YQCLOUD_CLIENTstring"client"
extraEnv.CHOERODON_YQCLOUD_EMAILstring"[email protected]"
extraEnv.CHOERODON_YQCLOUD_HOSTstring"http://api.example.yqcloud.com"
extraEnv.CHOERODON_YQCLOUD_PASSWORDstring"password"
extraEnv.CHOERODON_YQCLOUD_SECRETstring"secret"
extraEnv.CHOERODON_YQCLOUD_SKIPboolfalse
extraEnv.CHOERODON_YQCLOUD_SYNC_ALLboolfalse
extraEnv.CHOERODON_YQCLOUD_TENANTIDstring"258196267824443392"
extraEnv.CHOERODON_YQCLOUD_USERNAMEstring"username"
extraEnv.EUREKA_CLIENT_SERVICEURL_DEFAULTZONEstring"http://register-server:8000/eureka/"
extraEnv.EUREKA_INSTANCE_PREFER_IP_ADDRESSbooltrue
extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_CONNECT_TIMEOUTint2000
extraEnv.FEIGN_CLIENT_CONFIG_DEFAULT_READ_TIMEOUTint5000
extraEnv.HUAWEI_ACCESS_KEYstring"769001d5-a6b8-442a-ba42-ae6eacdf0fsfs"
extraEnv.HUAWEI_LOGIN_URLstring"http://app.example.com/"
extraEnv.HUAWEI_REGISTER_URLstring"http://app.example.com/#/saas/register-saas?instanceId="
extraEnv.HZERO_CAPTCHA_TEST_DISABLEboolfalse
extraEnv.HZERO_ENABLE_DATA_PERMISSIONbooltrue
extraEnv.HZERO_IAM_USERNAME_REGEXstringnil
extraEnv.HZERO_IMPORT_INIT_TABLEboolfalse
extraEnv.HZERO_PERMISSION_CLEAN_PERMISSIONboolfalse
extraEnv.HZERO_PERMISSION_PARSE_PERMISSIONbooltrue
extraEnv.HZERO_PERMISSION_SKIP_PARSE_SERVICESstring"register,gateway,oauth,swagger"
extraEnv.HZERO_RESOURCE_PATTERNstring"/v1/*,/hzero/*,/iam/v1/*,/iam/hzero/*,/choerodon/v1/*"
extraEnv.HZERO_START_INIT_CLIENTbooltrue
extraEnv.HZERO_START_INIT_FIELD_PERMISSIONbooltrue
extraEnv.HZERO_START_INIT_LDAPbooltrue
extraEnv.HZERO_START_INIT_OPEN_LOGIN_WAYbooltrue
extraEnv.HZERO_START_INIT_PASSWORD_POPLICYbooltrue
extraEnv.HZERO_START_INIT_USERbooltrue
extraEnv.LOG_LEVELstring"info"
extraEnv.ORDER_SDK_CLIENT_IDstring"client"
extraEnv.ORDER_SDK_MY_PRODUCTstring"http://open.com/my-product/my-authorize"
extraEnv.ORDER_SDK_PRIVATE_KEYstring"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCPMC7J03sCye9nkkhOyeuZDZVHqcHm40OvN5QB9ibpzR-OjMDVewws1y4qUZjZpNXI0eO9Sk1I--kqG5OTcfQVeRrnLwhAgLRsMXR0aOTXFcxla3lm5IlIDWXZX2umvwCzhlM0XtbK92JBToF1XLPuvnxkn8o1jbZhjbqml3h-3oz8MS8vk8bMMaS3tfMk_05OPdhM0iog3Nxb4ftMo-Fgk4e3o7NCm7U2zxA4MXQHshCYpE1m2GTvH4wACJL9xmu95vwOF-Wh1km3BF3VQas758bPXD4EUqH6KDv0Aw1GLe3TlD75s_NlbDJyMV9g7BnFYg9hUtLX3kj2XGJ2xwRRAgMBAAECggEAT-0PUO1RTr81eVS4M_KWJfrlBvmFGMJm95lIbsfd9MfhA4sh4IgsxaLfTBP8BBD0nII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VTNxe3T__tvqGaSDXaS-gP2qN6BQ-NA-CsjMoJQnHbBLrH3_BzFrZ74ukjveNNJtI"
extraEnv.ORDER_SDK_PRODUCT_NUMstring"test0401"
extraEnv.ORDER_SDK_REMOTE_HOSTstring"http://example.open.com"
extraEnv.ORDER_SDK_REMOTE_PUBLIC_KEYstring"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsZo4hqbtu20WotJVixSIH7z4bfFhmcstQPrsW9wH-h2N-GHJrO3bDvKEtieZrcN9LuA05J0NtgcORedEWM7ZwMg9OCNh0LJkliItyhXoS-OS73szd3G7GfAGxoGtPffuAgK2TT1hhaZuDcqUBr4NXogJxxu9_FJyU7X_Ui7FyFmDXXi9u8IkR0Ev78oNZPE7a8g6urQup_3cXSoYrUOS4xWB07ObA7VKrEYXZ7kT-CWSc-uGMaztdTIpCD_TPETGJ3LcJsi54n0njFIe2BpVJOf_HLBhh4axP-2z6DqGa3SmtvnDBYLVZMOmKaoG9DwRflmB_J7tSfD3nb7C7-ddlwIDAQAB"
extraEnv.ORDER_SDK_SECRETstring"secret"
extraEnv.SERVICES_FRONT_URLstring"http://c7n.app.example.com/"
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_platform?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_PORTint6379
extraEnv.TENANT_INIT_ASPECTboolfalse
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 templ

Deploy choerodon-iam with OpenTenant

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