cloudinfo

by Helm

Helm chartv0.10.0App 0.18.0

Cloud instance type and price information as a service

About this chart

Cloud Info Helm Chart

Cloud Info provides resource and pricing information about products available on supported cloud providers.

tl;dr:

$ helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
$ helm repo update
$ helm install banzaicloud-stable/cloudinfo

Introduction

This chart bootstraps a Cloud Info deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.10+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release banzaicloud-stable/cloudinfo

The command deploys Cloud Info on the Kubernetes cluster with the default configuration. The configuration section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the cloudinfo chart and their default values.

ParameterDescriptionDefault
frontend.image.repositoryFrontend container image repositorybanzaicloud/cloudinfo
frontend.image.tagFrontend container image tag0.6.0
frontend.image.pullPolicyFrontend container pull policyIfNotPresent
frontend.service.typeFrontend Kubernetes service type to useClusterIP
frontend.service.portFrontend Kubernetes service port to use80
frontend.deployment.labelsAdditional frontend deployment labels{}
frontend.deployment.annotationsAdditional frontend deployment annotations{}
scraper.image.repositoryScraper container image repositorybanzaicloud/cloudinfo
scraper.image.tagScraper container image tag0.6.0
scraper.image.pullPolicyScraper container pull policyIfNotPresent
scraper.deployment.labelsAdditional scraper deployment labels{}
scraper.deployment.annotationsAdditional scraper deployment annotations{}
app.logLevelLog levelinfo
app.basePathApplication base path/
app.vaultVault configuration{}
providers.[provider].enabledEnable a providerfalse
providers.[provider].*Provider specific configuration{}
metrics.enabledEnable application metricstrue
metrics.portMetrics service type port9900
metrics.serviceMonitor.enabledEnable serviceMonitortrue
metrics.serviceMonitor.additionalLabelsServiceMonitor additional labels{}

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm install --name my-release -f values.yaml banzaicloud-stable/cloudinfo

Tip: You can use the default values.yaml

Configuring a provider

providers:
    providerName:
        enabled: true
        
        # Provider specific configuration
        # accessKey: ""
        # secretKey: ""

Redis configuration

The application requires a Redis store at the moment. The chart can install it for you:

store:
    redis:
        enabled: true
        
redis:
    enabled: true

Alternatively, you can provide connection information for your own Redis instance:

store:
    redis:
        enabled: true
        host: "my-redis"
        port: 6379

Note: The application does not support Redis application at the moment.

Getting secrets from Vault

The application supports getting cloud provider secrets from Vault:

app:
    vault:
        address: "http://my-vault:8200"
        token: "my-token"
        secretPath: "secret/data/app/cloudinfo"

providers:
    providerName:
        enabled: true

Deploy cloudinfo with OpenTenant

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