kubesvc-beta

by Armory

Helm chartv0.1.2App 0.6.0-rc.40

An easy way to install armory's agent for kubernetes

About this chart

Helm Chart for kubernetes agent

Built with Helm v3.6.3

The main intention with this project is to provide an easy way of installing armory's Agent for Kubernetes

Features

  • Allows to easily deploy armory's agent for kubernetes with a single command
  • Allows to customize the agent settings passing a custom file

Requirements

  • possibly helm v3.6.3 (haven't tested with anything prior)
  • An existing kubernetes cluster and a namespace in case you don't want to use 'default'
  • A kubeconfig file in case the agent is set to run in 'infrastructure' mode

Usage

  • helm install release-name path-of-the-chart --namespace=your-namespace
  • helm unisntall release-name --namespace=your-namespace

The release name is used across some of the kubernetes resources that get created, you can also add --set imagePullSecrets=something to use docker registry credentials

Quick Installation

Note: you can also replace helm install by helm template in the below commands to get an output of the kubernetes manifests that are rendered e.g: helm template kubesvc ...

Create a namespace where the agent will be installed:

kubectl create namespace dev

With the selected AWS profile that has access to the target cluster Create a kubeconfig file

Note: skip this in case the agent is set to run in 'agent' mode

aws eks update-kubeconfig --name <target_cluster> 

Agent mode:

From the root of the chart project:

helm install kubesvc . --set mode=agent,clientId=<your-clientId>,secret=<your/secret> --namespace=dev

Infrastructure mode

helm install kubesvc . --set-file kubeconfig=$HOME/develop/config --set clientId=<your-clientId>,secret=<your/secret> --namespace=dev

Note: if cloudEnabled is set to false there is no need to provide clientId and secret but you need to set clouddriver's grpc host in grpcUrl such as --set grpcUrl= localhost:9090

Custom settings installation

You can also install using your own agent settings file if you would like greater flexibility:

helm template kubesvc . --set-file kubeconfig=$HOME/develop/config,kubesvcyml=/Users/armory/.spinnaker/kubesvc-local-hub.yml --namespace=dev

Note: make sure that your kubeconfigFile in your settings file matches the kubeconfig set in the 'kubeconfig' variable if not running with serviceAccount: true

This chart also supports passing of settings using helm variables present in the values.yml

OptionDefault
grpcUrlagents.cloud.armory.io:443
clientIdnull
secretnull
cloudEnabledtrue
kubernetesrefer to Kubernetes specific options in armory.io

License

© 2021 Armory Inc. All rights reserved.

Deploy kubesvc-beta with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubesvc-beta 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 chartkubesvc-beta is pinned at v0.1.2 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