crane

by KubeSphere

Helm chartv0.5.2App v0.5.2

Crane (FinOps Crane) is an opensource project which manages cloud resource on Kubernetes stack, it is inspired by FinOps concepts.

About this chart

Crane

TL;DR

helm install crane -n crane-system --create-namespace stable/crane

Introduction

This chart bootstraps Crane Components on a Kubernetes cluster using the Helm package manager.

Learn more: https://github.com/gocrane/crane

Prerequisites

  • Kubernetes 1.18+
  • Helm 3+

Install Chart

helm install crane -n crane-system --create-namespace stable/crane

See configuration below.

See helm install for command documentation.

Uninstall Chart

helm uninstall crane -n crane-system

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

See helm uninstall for command documentation.

Configuration

The following table lists the configurable parameters of the Crane chart and their default values.

ParameterDescriptionDefault
craned.image.repositoryImage name of Craneddocker.io/gocrane/craned
craned.image.tagImage tag of Craned. Optional, given app version of Helm chart is used by default``
craned.image.pullPolicyImage pullPolicy of CranedIfNotPresent
craned.replicaCountReplica count of Craned1
craned.containerArgsContainer's command line arguments to pass to Craned{ "prometheus-address": "http://prometheus-server.crane-system.svc.cluster.local:8080", "feature-gates": "Analysis=true,TimeSeriesPrediction=true,Autoscaling=true", "v": "2"}
craned.podAnnotationsPod annotations of Craned{}
craned.resourcesPod resources of Craned{}
craned.nodeSelectorNode selectors of Craned deployment{}
craned.tolerationsTolerations of Craned deployment{}
craned.affinityAffinity of Craned deployment{}
craned.nodeSelectorNode selectors of Craned{}
cranedDashboard.image.repositoryImage name of Craned Dashboarddocker.io/gocrane/craned
cranedDashboard.image.pullPolicyImage pullPolicy of Craned DashboardIfNotPresent
scheduler.enableWhether to deploy Schedulertrue
scheduler.image.repositoryImage name of Scheduler.docker.io/gocrane/crane-scheduler
scheduler.image.tagImage tag of Scheduler. Optional, given app version of Helm chart is used by default0.0.23
scheduler.replicaCountReplica count of Scheduler1
controller.enableWhether to deploy Scheduler-controllertrue
controller.image.repositoryImage name of Scheduler-controller.docker.io/gocrane/crane-scheduler-controller
controller.image.tagImage tag of Scheduler-controller. Optional, given app version of Helm chart is used by default0.0.23
controller.replicaCountReplica count of Scheduler-controller1
global.prometheusAddrAddress of Prometheushttp://prometheus-server.crane-system.svc.cluster.local:8080

Deploy crane with OpenTenant

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