git clone https://gitlab.com/obsidian.systems/tradecraft-docs.git
Modify these 3 files with the proper values for your setup:
tradecraft-config.yaml
tradecraft-ui-common-config.yaml
tradecraft-ui-backend-config.yaml
Suggested considerations:
Replace the OAuth URL as necessary in all three files.
tradecraft-config.yaml:
Use the correct network , either devnet , testnet or mainnet
network
devnet
testnet
mainnet
Put the password for the tradecraft OAuth user in tradecraft-secret.yaml
tradecraft
tradecraft-secret.yaml
... specific instructions coming soon.
Set the oauth username to the email address used during auth0 setup.
oauth
username
Set the oauth url to https://your-tenant-id.us.auth0.com/oauth/token
url
https://your-tenant-id.us.auth0.com/oauth/token
Add a line under extra_params for: "audience": "https://canton.network.global"
extra_params
"audience": "https://canton.network.global"
Set the client_id using the ID found in the auth0 dashboard on the page for the Tradecraft application settings.
client_id
tradecraft-ui-backend-config.yaml:
Set oauth_request_url to https://your-tenant-id.us.auth0.com/oauth/token
oauth_request_url
tradecraft-ui-common-config.yaml:
Set oauth_auth_url to https://your-tenant-id.us.auth0.com/authorize
oauth_auth_url
https://your-tenant-id.us.auth0.com/authorize
Set oauth_client_id using the same value as above.
oauth_client_id
You can find your Client ID here:
The config files can reference environment variables which you’ll likely want to supply through Kubernetes secrets, like so:
kubectl apply -f tradecraft-secret.yaml
Now go ahead and create the ConfigMaps on Kubernetes:
kubectl apply -f tradecraft-config.yaml kubectl apply -f tradecraft-ui-common-config.yaml kubectl apply -f tradecraft-ui-backend-config.yaml
Create a Deployment to start the Tradecraft containers:
kubectl apply -f tradecraft-deployment.yaml
To expose the deployment on the host we need a Service:
kubectl apply -f tradecraft-service.yaml
Finally, depending on how you expose things to the web, you probably need an Ingress. For example, if you use Traefik:
kubectl apply -f tradecraft-ingress.yaml
Last updated 1 month ago
Was this helpful?