thanos-operator

command module
v0.0.0-...-c5e5b36 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

[WIP]thanos-operator

Create gcs iam service-account

PROJECT_ID=$(gcloud config get-value core/project)
SERVICE_ACCOUNT_NAME="thanos-demo-gcs"

gcloud iam service-accounts create ${SERVICE_ACCOUNT_NAME} \
  --quiet \
  --display-name "thanos demo gcs"

gcloud projects add-iam-policy-binding ${SERVICE_ACCOUNT_NAME} \
  --quiet \
  --member="serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com" \
  --role roles/storage.objectCreator

gcloud projects add-iam-policy-binding ${SERVICE_ACCOUNT_NAME} \
  --quiet \
  --member "serviceAccount:${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com" \
  --role roles/storage.objectViewer

gcloud iam service-accounts keys create ${SERVICE_ACCOUNT_NAME}.json \
  --quiet \
  --iam-account ${SERVICE_ACCOUNT_NAME}@${PROJECT_ID}.iam.gserviceaccount.com

Create secret from iam json file

kubectl create secret generic ${SERVICE_ACCOUNT_NAME} \
  --from-file=${SERVICE_ACCOUNT_NAME}.json=${SERVICE_ACCOUNT_NAME}.json

Create bucket

BUCKET_NAME="orangesys-thanos-demo"
gsutil mb gs://${BUCKET_NAME}/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1beta1
Package v1beta1 contains API Schema definitions for the thanos v1beta1 API group +kubebuilder:object:generate=true +groupName=thanos.orangesys.io
Package v1beta1 contains API Schema definitions for the thanos v1beta1 API group +kubebuilder:object:generate=true +groupName=thanos.orangesys.io

Jump to

Keyboard shortcuts

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