Install Otomi with Helm
Add the Otomi repository
helm repo add otomi https://otomi.io/otomi-core
helm repo update
See helm repo for command documentation.
k8sVersion: "1.23" # currently 1.18, 1.19, 1.20, 1.21, 1.22 and 1.23 are supported
name: # the name of your cluster
provider: # choose between aws, azure, google, digitalocean or custom
To view the required
values.yaml file with detailed comments, view and download the chart's latest values.yaml. Run the following command to view all the values (which might be overwhelming):
helm show values otomi/otomi
To test wether the input values are correct run the following command:
helm template -f values.yaml otomi/otomi
Install the Chart
Install the chart with the following command:
helm install -f values.yaml otomi otomi/otomi
Monitoring the chart install
The chart deploys a Job (
otomi) in the
default namespace. Monitor the chart install using
# get the status of the job
kubectl get job otomi -w
# watch the helm chart install status:
watch helm list -Aa
Or view detailed info about kubernetes resources with k9s
Installing from source
As an alternative, you can also clone the otomi-core source code from the Github and install otomi using the chart source code.
git clone https://github.com/redkubes/otomi-core.git
Now customize the
Use the following command to install the chart with the name
my-otomi-release (a custom name that you choose).
helm install -f values.yaml my-otomi-release chart/otomi
helm uninstall my-otomi-release
Doing a Helm uninstall will only remove the job used to deploy Otomi. It will not remove all the installed components. If you would like to do a complete uninstall, we advise to first clone the
otomi/values repository (to secure the configuration) and then uninstall using Otomi CLI.
You can optionally configure Otomi to use an external IDP (Azure AD), use an external Key Management Service (KMS) provider for SOPS and use a DNS zone in combination with LetsEncrpt certificates. Below you can find detailed instructions on how to set up Azure AD as an external IDP and configure KMS. We will soon add more instructions for other IDPs, such as Amazon Incognito, Google Identity, and Okta.
Use DNS and Let's Encrypt
By default, Otomi uses the public IP address of the load balancer for nameresolving using nip.io. To use DNS with LetsEncrypt, follow these instructions:
To install Otomi with DNS and Let's Encrypt, use the following values:
# Configure cert-manager
stage: staging # defaults to 'production' when commented out
# Configure DNS
# domainFilters: 
# zoneIdFilters: 
# provider: # provide one of the following below: aws|azure|google
# # next two keys are optional for explicit access with an iam role
# # (if no metadata exists with implicit role access to manage dns)
# accessKeySecret: ''
# secretAccessKey: ''
# # region is always needed
# region: eu-central-1
# role: '' # optional ARN, may be set explicitly if no metadata can be accessed
# aadClientId: ''
# aadClientSecret: ''
# tenantId: '' # optional
# subscriptionId: '' # optional
# serviceAccountKey: ''
# project: ''
Use Azure AD as IDP
The authentication of brokered identities through Azure AD requires a service principal with certain Azure AD API permissions. An app registration needs to be created with the following API permissions:
|API / Permission name||Type||Description|
|Microsoft Graph / email||Delegated||View users' email address|
|Microsoft Graph / openid||Delegated||Sign users in|
|Microsoft Graph / profile||Delegated||View users' basic profile|
|Microsoft Graph / User.Read||Delegated||Sign in and read user profile|
And the following token configurations:
|Claim||Description||Token type||Optional settings|
|family_name||Provides the last name, surename, or family name||ID||-|
|given_name||Provides the first or "give" name of the user||ID||-|
|groups||Optional formatting for group claims||ID, Access, SAML||Default|
|upn||An identifier for the user that can be used ...||ID||Default|
Note that the group type should be set to 'security groups'.
At the 'Authentication' tab you should be able to set the following callback URL§s and enable that both "Access tokens" and "ID tokens" are issued and public client flows are allowed:
To install Otomi with Azure Active Directory as IdP instead of (default) Keycloak, use the following values:
# IDP group id used to identify global admin
# IDP group id used to identify team admin
otomi-idp is the default KeyCloak alias (shown as login title). To use another alias, add the following to the chart values:
Use KMS to manage keys for encryption
If you would like the secrets in the
values repository to be encrypted, you will have to setup an account with your Key Management Service (KMS) provider. It is needed by sops, the tool used for encryption.
Find quickstart documentation below on how to setup KMS access per supported provider:
Follow the instructions of the provider of your choosing and jot down the credentials obtained for the next steps.
To install Otomi with SOPS/KMS, use the following values:
provider: "" # provider can be one of aws|azure|google|vault
# keys: ''
# accessKey: ''
# secretKey: ''
# region: ''
# keys: ''
# tenantID: ''
# clientID: ''
# clientSecret: ''
# keys: ''
# accountJson: ''
# project: ''
# token: ''
But you can also enable SOPS/KMS after installing Otomi using Otomi Console.