supersetscalers

command module
v0.0.0-...-4384b37 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

SupersetScalers

License

概述

SupersetScalers是一个插件式方案的kubernetes水平pod autoscaler控制器. 您可以使用HPAScaler在 kubernetes 中定义的支持scale资源(例如DeploymentStatefulSet以及ReplicaSet)的任何种类的对象。

安装

  1. 安装CRD
kubectl apply -f config/crd/k8s.q1.com_hpascalers.yaml
  1. 安装RBAC
# create ClusterRole 
kubectl apply -f config/rbac/role.yaml

# create ServiceAccount
kubectl apply -f config/rbac/service_account.yaml

# create ClusterRolebinding 
kubectl apply -f config/rbac/role_binding.yaml
  1. 部署supersetscaler-controller
kubectl apply -f config/deploy/deploy.yaml
  1. 验证安装
kubectl get deploy supersetscaler-controller -n kube-system -o wide 

➜  supersetscaler-controller git:(master) ✗ kubectl get deploy supersetscaler-controller -n kube-system
NAME                            DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
supersetscaler-controller         1         1         1            1           49s

例子

请试用示例文件夹中的示例

Plugin

  • rabbitmq
  • rocketmq
  • kafka
  • redis
  • http
  • shell
  • python
  • lua

Makefile help

Usage:
  make <target>

General
  help             Display this help.

Development
  manifests        Generate ClusterRole and CustomResourceDefinition objects.
  generate         Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
  fmt              Run go fmt against code.
  vet              Run go vet against code.
  test             Run tests.

Build
  build            Build manager binary.
  run              Run a controller from your host.
  docker-build     Build docker image with the manager.
  docker-push      Push docker image with the manager.

Deployment
  install          Install CRDs into the K8s cluster specified in ~/.kube/config.
  uninstall        Uninstall CRDs from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
  deploy           Deploy controller to the K8s cluster specified in ~/.kube/config.
  undeploy         Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
  controller-gen   Download controller-gen locally if necessary.
  envtest          Download envtest-setup locally if necessary.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=k8s.q1.com
Package v1 contains API Schema definitions for the v1 API group +kubebuilder:object:generate=true +groupName=k8s.q1.com
lua

Jump to

Keyboard shortcuts

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