Quick Start

Quick Start guide for Crane

Welcome to Crane! In this document, we will work through how to install Crane and visit Crane Dashboard in your local environments:

  • Create a local running Kubernetes cluster by Kind
  • Install Prometheus and Grafana by Helm
  • Install Crane by Helm
  • Visit Crane Dashboard via kubectl port-forward

Please referring to Installation to know more about how to install crane 。

Prerequisites

  • kubectl
  • Kubernetes 1.18+
  • Helm 3.1.0
  • Kind 0.16+

Installation

Following command will install Crane with dependencies applications(Prometheus/Grafana).

  1. curl -sf https://raw.githubusercontent.com/gocrane/crane/main/hack/local-env-setup.sh | sh -

Make sure all pods are running:

  1. $ export KUBECONFIG=${HOME}/.kube/config_crane
  2. $ kubectl get deploy -n crane-system
  3. NAME READY STATUS RESTARTS AGE
  4. crane-agent-5r9l2 1/1 Running 0 4m40s
  5. craned-6dcc5c569f-vnfsf 2/2 Running 0 4m41s
  6. fadvisor-5b685f4cd6-xpxzq 1/1 Running 0 4m37s
  7. grafana-64656f6d54-6l24j 1/1 Running 0 4m46s
  8. metric-adapter-967c6d57f-swhfv 1/1 Running 0 4m41s
  9. prometheus-kube-state-metrics-7f9d78cffc-p8l7c 1/1 Running 0 4m46s
  10. prometheus-node-exporter-4wk8b 1/1 Running 0 4m40s
  11. prometheus-server-fb944f4b7-4qqlv 2/2 Running 0 4m46s

Visit Crane Dashboard

  1. kubectl -n crane-system port-forward service/craned 9090:9090

Visit dashboard via here

Quick Start - 图1