rocket

module
v0.0.0-...-ef63bee Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0

README

Rocket

Rockethextech 平台的核心服务。负责所有 CRD 的管理工作

快速开始

你需要一个Kubernetes集群来运行。 你可以使用 k3d 来运行一个本地集群进行测试。

通过以下命令生成 token
# linux
echo "$(head -c 6 /dev/urandom | md5sum | head -c 6)"."$(head -c 16 /dev/urandom | md5sum | head -c 16)"

# mac os
echo "$(head -c 6 /dev/urandom | md5 | head -c 6)"."$(head -c 16 /dev/urandom | md5 | head -c 16)"
获取集群的 APISERVER 地址
export ROCKET01=$(docker inspect k3d-rocket01-server-0 --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}')
export ROCKET02=$(docker inspect k3d-rocket02-server-0 --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}')
在集群里运行
  1. . 通过指定 IMG 变量来构建并推送镜像:
make all IMG=<some-registry>/rocket:tag
  1. 安装 CRD 到集群:
make install
  1. 卸载 CRD
make uninstall
  1. 安装 OpenKruise

针对 k3s 集群中安装 OpenKruise 需要指定配置 --set daemon.socketLocation="/run/k3s"

Roadmap
  • 支持 Deployment
  • 支持 CloneSet
  • 支持 CronJob
  • 支持 StatefulSet
  • 支持 kruise StatefulSet
  • 支持 Job

License

Copyright 2023.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
api
v1alpha1
Package v1alpha1 contains API Schema definitions for the rocket v1alpha1 API group +kubebuilder:object:generate=true +groupName=rocket.hextech.io
Package v1alpha1 contains API Schema definitions for the rocket v1alpha1 API group +kubebuilder:object:generate=true +groupName=rocket.hextech.io
client
clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
clientset/versioned/typed/rocket/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
clientset/versioned/typed/rocket/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
cmd
pkg
agent/distribution
TODO: 存在一个问题,如果修改集群后立即删除,可能会因为控制器处理缓慢而这时又停止了控制器导致资源未被删除
TODO: 存在一个问题,如果修改集群后立即删除,可能会因为控制器处理缓慢而这时又停止了控制器导致资源未被删除

Jump to

Keyboard shortcuts

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