argon-broker

by deployment-aqua

Helm chartv1.0.9App 2022.4

A Helm chart for the Argon Broker Deployment

About this chart

Argon Broker Deployment

Prerequisite

  • obtain Argon Token
  • url and credentials for Bitbucket server

Installation / Upgrade

helm repo add argon https://helm.aquasec.com
helm repo update
HELM_RELEASE=argon-broker
helm upgrade -i $HELM_RELEASE argon/argon-broker --namespace argon --create-namespace \
   [ --set key1=val1,key2=val2 ] [ -f my-values.yaml ] [ <helm parameters> ] 

Basic helm values

  • Setting .url deploys Argon Broker for that server. Example: --set bitbucket.url=https://bitbucket.example.com --set gitlab.url=https://gitlab.example.com will deploy two Argon Brokers for Bitbucket and Gitlab
  • You must specify at least one .url, otherwise nothing will be deployed
Value KeyDescriptionMandatory
global
global.argonServerAddress of Argong Broker Server, default https://app-broker.argon.ioyes
global.tokenArgon Tokenyes
global.envsglobal envs for all pods like http_proxyno
global.registryregistry to pull images from (default docker.io)no
bitbucket
bitbucket.urlBitbucket URL, ex. https://bitbucket.example.com:7990yes, if Bitbucket Broker enabled
bitbucket.usernameBitbucket usernameyes, if Bitbucket Broker enabled
bitbucket.passwordBitbucket passwordyes, if Bitbucket Broker enabled
gitlab
gitlab.urlGitlab URL, ex. https://gitlab.example.comyes, if Gitlab Broker enabled
gitlab.tokenGitlab tokenyes, if Gitlab Broker enabled
jfrog
jfrog.urlJfrog Artifactory URL, ex. https://jfrog.example.comyes, if Jfrog Broker enabled
jfrog.tokenJfrog Artifactory tokenyes, if Jfrog Broker enabled
azure devops
azure.urlAzure Devops URL, ex. https://azure.example.comyes, if Azure Devops Broker enabled
azure.tokenAzure Devops tokenyes, if Azure Devops enabled
jenkins
jenkins.urlJenkins URL, ex. https://jenkins.example.comyes, if Jenkins Broker enabled
jenkins.tokenJenkins tokenyes, if Jenkins Broker enabled
nexus
nexus.urlNexus URL, ex. https://nexus.example.comyes, if Nexus Broker enabled
nexus.tokenNexus tokenyes, if Nexus Broker enabled
jira
jira.urlJira URL, ex. https://jira.example.comyes, if Jira Broker enabled
jira.tokenJira tokenyes, if Jira enabled

Additional helm values

In addition to the values above it is possible to specify:

  • custom ca and client ssl certificates for servers
  • kubernetes scheduler values - resources, nodeSelector, affinity, tolleration

refer to values.yaml and templates

Example

  • add helm repository
helm repo add argon https://helm.aquasec.com

Simple Connect to Bitbucket server

helm upgrade -i argon-broker argon/argon-broker --namespace argon --create-namespace \
  --set global.token=***** \
  --set bitbucket.url="https://bitbucket.example.com" \
  --set bitbucket.username=bitbucket \
  --set bitbucket.password=******

Install multiple releases per repo provider

Install different helm releases for each repo provider

bitbucket

helm upgrade -i argon-broker-bitbucket argon/argon-broker --namespace argon --create-namespace
--set global.token=*****
--set bitbucket.url="https://bitbucket.example.com"
--set bitbucket.username=bitbucket
--set bitbucket.password=******

jfrog

helm upgrade -i argon-broker-jfrog argon/argon-broker --namespace argon --create-namespace
--set global.token=*****
--set jfrog.url="https://jfrog.example.com"
--set jfrog.token=*****

Advanced run with HTTP_PROXY and ssl certificates

  • create values file my-env-values.yaml:
global:
  argonServer: https://app-broker.argon.io
  token: ***** 
  envs:
    http_proxy: proxy.example.com:3128
    https_proxy: proxy.example.com:3128
    no_proxy: .example.com

gitlab:
  url: https://gitlab.example.com
  token: *****
  ssl:
    ca: -|
      -----BEGIN CERTIFICATE-----
      ***** ca-cert-content
      -----END CERTIFICATE
    cert: -|
      -----BEGIN CERTIFICATE-----
      ***** client-cert
      -----END CERTIFICATE-----
    key: -|
      -----BEGIN RSA PRIVATE KEY-----
      ***** private-key-content
      -----END RSA PRIVATE KEY-----
  • run helm
helm upgrade -i argon-broker argon/argon-broker --namespace argon --create-namespace -f my-env-values.yaml

Deploy argon-broker with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has argon-broker 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 chartargon-broker is pinned at v1.0.9 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