Install Orchestrate components on SifyCI (Cloudian)ΒΆ

  • Create namespace

kubectl create ns aizen

If you have Docker credential information, first create kubernetes secret for accessing Aizen images

kubectl create secret docker-registry aizenrepo-creds
--docker-username=aizencorp
--docker-password=<YOUR DOCKER CREDENTIALS>
-n aizen

Deploy core components (Choose the relevant auth properties based on the auth type required)

Important

Decide the basic authentication type that you would like to use for accessing Aizen gui. There are different authentication type that can be specified

  • ldap (default) - LDAP and Active directory

  • auth0 - OAuth based authentication like Github,Google, GitLab and so on

  • keycloak - An open source for identity and access management (Single Sign On)

  • azure - Microsoft Entra ID based authentication

NAMESPACE=aizen
INFRA_NAMESPACE=aizen-infra

STORAGE_CLASS=
INGRESS_HOST=
BUCKET_NAME=
CLUSTER_NAME=

CLOUD_ENDPOINT_URL=
CLOUD_ACCESSKEY_ID=
CLOUD_SECRET_KEY=
CLOUD_PROVIDER_REGION=
CLOUD_PROVIDER_TYPE=minio

#Specify the endpoint ip http(s)://endpointIP
CLOUD_ENDPOINT_IP=

#Options are: ldap,keycloak,azure,auth0
AUTH_TYPE=ldap

SECURE_HTTPS=false
INGRESS_ENABLED=false
GATEWAY_ENABLED=true
GATEWAY_CLASSNAME=istio

#specify external name http(s)://dnsORingresshost
AIZEN_EXTERNAL_BASE_URL=

#Strong encrypted string
JWT_SECRET=

#IMAGE
IMAGE_REPO=aizencorp
IMAGE_REPO_SECRET=
IMAGE_TAG=1.0.0

#PVC
STORAGE_PERSISTENCE_SIZE=50Gi

if [[ "$GATEWAY_CLASSNAME" = "istio" ]]; then
  GATEWAY_CLASSNAME=istio
  GATEWAY_NAMESPACE=istio-system
  GATEWAY_NAME=istio-gateway
else
  GATEWAY_CLASSNAME=nginx
  GATEWAY_NAMESPACE=nginx-gateway
  GATEWAY_NAME=aizen-nginx-gateway
fi

if [[ -n "$AIZEN_EXTERNAL_BASE_URL" ]]; then
   GATEWAY_HOST="${AIZEN_EXTERNAL_BASE_URL#*//}"
fi

if [[ -n "$CLOUD_ENDPOINT_IP" ]]; then
   CLOUD_ENDPOINT_IPONLY="${CLOUD_ENDPOINT_IP#*//}"
fi

if [[ "$AUTH_TYPE" = "ldap" ]]; then
   LDAP_SERVER_HOST="ldap://aizen-openldap-service.aizen-infra.svc.cluster.local:1389"
   LDAP_BIND_DN="uid={username}\,ou=users\,dc=aizencorp\,dc=local\,dc=com|uid={username}\,ou=people\,dc=aizencorp\,dc=local\,dc=com"
   LDAP_USER_DN="ou=users\,dc=aizencorp\,dc=local\,dc=com"
   LDAP_ADMIN_DN="cn=admin\,dc=aizencorp\,dc=local\,dc=com"
   LDAP_ADMIN_DNPWD="admin"
   LDAP_GROUP_DN="ou=groups\,dc=aizencorp\,dc=local\,dc=com"
   LDAP_ALLOWED_GROUPS="cn=dbgrp\,ou=groups\,dc=aizencorp\,dc=local\,dc=com"
   LDAP_SEARCH_FILTER="(uid={username})"
   AIZEN_ADMIN_USER="aizenadmin"
elif [[ "$AUTH_TYPE" = "oauth" ]]; then
   AUTH0_DOMAIN=""
   AUTH0_AUDIENCE=""
   AUTH0_CLIENT_ID="test"
   AUTH0_CLIENT_SECRET="test"
   AIZEN_ADMIN_USER="aizenadmin"
   AUTH0_CALLBACK_URL="1.2.3.4/ns/console/hub/oauth_callback"
elif [[ "$AUTH_TYPE" = "keycloak" ]]; then
   KEYCLOAK_URL=http://1.2.3.4:8080
   KEYCLOAK_CLIENT_ID=aizengui
   KEYCLOAK_REALM=aizenrealm
   AIZEN_ADMIN_USER="aizenadmin"
elif [[ "$AUTH_TYPE" = "azure" ]]; then
   AZUREAPP_CLIENT_ID=yyyyy
   AZUREAPP_TENANT_ID=xxxxx
   AIZEN_ADMIN_USER="aizenadmin"
fi

kubectl get ns ${NAMESPACE} >/dev/null 2>&1 || kubectl create ns ${NAMESPACE}

#You don't need to change anything below this line
helm -n $NAMESPACE install workflow aizenworkflow/workflow --version $IMAGE_TAG \
--set core.enabled=true,\
core.storage.volume_size=$STORAGE_PERSISTENCE_SIZE,\
global.ingress.enabled=$INGRESS_ENABLED,\
global.gateway.enabled=$GATEWAY_ENABLED,\
global.gateway.classname=$GATEWAY_CLASSNAME,\
global.gateway.name=$GATEWAY_NAME,\
global.gateway.namespace=$GATEWAY_NAMESPACE,\
global.gateway.host=$GATEWAY_HOST,\
global.clustername=$CLUSTER_NAME,\
global.s3.secrets.enabled=true,\
global.s3.endpoint_url=$CLOUD_ENDPOINT_URL,\
global.s3.endpoint_ip=$CLOUD_ENDPOINT_IP,\
global.s3.secrets.values.s3_access_key=$CLOUD_ACCESSKEY_ID,\
global.s3.secrets.values.s3_secret_key=$CLOUD_SECRET_KEY,\
global.customer_bucket_name=$BUCKET_NAME,\
global.storage_class=$STORAGE_CLASS,\
global.secure_https=$SECURE_HTTPS,\
global.cloud_provider_type=$CLOUD_PROVIDER_TYPE,\
global.cloud_provider_region=$CLOUD_PROVIDER_REGION,\
global.image_registry=$IMAGE_REPO,\
global.image_secret=$IMAGE_REPO_SECRET,\
global.image_tag=$IMAGE_TAG,\
global.ingress.host=$INGRESS_HOST,\
global.aizengui.admin_user=$AIZEN_ADMIN_USER,\
global.aizenauth.auth_mode=$AUTH_TYPE,\
global.aizenauth.secrets.jwt_secret=$JWT_SECRET,\
global.secure_https=$SECUTE_HTTPS,\
global.aizen_external_base_url=$AIZEN_EXTERNAL_BASE_URL,\

******#Below properties are required for LDAP*******
global.aizenauth.ldap.server_host=$LDAP_SERVER_HOST,\
global.aizenauth.ldap.admin_dn=$LDAP_ADMIN_DN,\
global.aizenauth.ldap.user_search_base=$LDAP_USER_DN,\
global.aizenauth.ldap.user_search_filter=$LDAP_SEARCH_FILTER,\
global.aizenauth.ldap.secrets.ldap_admin_password=$LDAP_ADMIN_DNPWD,\

******#Below properties are required for Keycloak*******
global.aizenauth.keycloak.url=$KEYCLOAK_URL,\
global.aizenauth.keycloak.realm=$KEYCLOAK_REALM,\
global.aizenauth.keycloak.client_id=$KEYCLOAK_CLIENT_ID,\
global.aizenauth.keycloak.secrets.keycloak_client_secret=$JWT_SECRET,\

*******#Below properties are required for Auth0*******
global.aizenauth.auth0.domain=$AUTH0_DOMAIN,\
global.aizenauth.auth0.audience=$AUTH0_AUDIENCE,\
global.aizenauth.auth0.secrets.auth0_client_id=$AUTH0_CLIENT_ID,\
global.aizenauth.auth0.secrets.auth0_client_secret=$AUTH0_CLIENT_SECRET,\

*******#Below properties are required for Azure*******
global.aizenauth.azure.tenant_id=$AZUREAPP_TENANT_ID,\
global.aizenauth.azure.client_id=$AZUREAPP_CLIENT_ID,\
  • Check the status of all core components

kubectl -n aizen get pods