zctl

command module
v0.0.0-...-25d94f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

zctl

ZincObserve CLI tool for easy setup and installation of ZincObserve

Create IAM role, policy and s3 bucket on Amazon EKS and install

zctl --name=zo1 --k8s=eks install zctl --name=zo1 --namespace=zns1 --k8s=eks install zctl --name=zo1 --namespace=zns1 --ingress-class=nginx --host=https://myurl.com --k8s=eks install

zctl --name=zo1 --k8s=eks --ingester=2 --router=2 --querier=2 install

Will install minio and use it for object storage on any k8s and install

zctl --name=zo1 --k8s=plain --storage=minio install

zctl --name=zo1 --k8s=eks --bucket=bucket1 install

zctl --name=zo1 --k8s=eks --bucket=bucket1 --iam-role=rolearn install

zctl --name=zo1 delete

zctl --name=zo1 --image=tag update

Steps

  1. Check if OIDC provider exists
  2. Create a bucket
  3. Create IAM policy
  4. Create IAM role
  5. Install helm chart

Mimnimum Items to specify

  1. image.repository
  2. image.tag
  3. ServiceAccount.Annotations["eks.amazonaws.com/role-arn"]
  4. config.ZOS3BUCKETNAME

Install

  1. Check if a configmap exists with the name zincobserve-setup. If the configmap exists then a setup has already been done.
  2. If configmap does not exist then proceed
  3. get namespace and releaseName
  4. Generate a random install identifier.
  5. Create a configmap with name zincobserve-setup with releasename and install identifier
  6. bucketname should be

configmap should have following values . e.g

setup_data: { "identifier": "15096452", "release_name": "zo1" "bucket_name": "zinc-observe-15096452-dev2-zo1", "iam_role: "zinc-observe-15096452-dev2-zo1" }

What is working today

Install on EKS

zctl install --k8s=eks --name=zo1

Uninstall a release in EKS

zctl uninstall --k8s=eks --name=zo1

AWS

Install

zctl install --k8s=eks --name=zo1

Uninstall

zctl uninstall --k8s=eks --name=zo1

GCP

Install

  1. Get project ID

gcloud auth application-default login

gcloud config get-value project

zctl install --k8s=gke --name=zo1 --namespace=zo1 --gcp_project_id=zinc1-342016

This will create:

  1. A GCS bucket
  2. An IAM service account
  3. Grant IAM service account permissions to the GCS bucket
  4. Create HMAC keys (S3 access key and secret) for the service account

Uninstall

zctl uninstall --k8s=gke --name=zo1

Plain k8s install

Install

zctl install --k8s=plain --name=zo1 --storage_provider=minio --install_minio=true

zctl install --k8s=plain --name=zo1 --storage_provider=minio --install_minio=true

Uninstall

zctl uninstall --k8s=plain --name=zo1

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL