Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s operator: baseline #1243

Merged
merged 15 commits into from
Mar 6, 2023

Conversation

machinly
Copy link
Collaborator

@machinly machinly commented Feb 2, 2023

这个 PR 中实现了一个 pika-operator mvp 版本,主要实现了 pika 单实例服务在 k8s 上的快速部署,采用了常见的 operator 模型。

主要功能:

  • 部署 Pika 单实例
  • 支持 PVC
  • 支持 ConfigMap 的配置
  • 常见k8s部署配置的支持

其他功能请移步 #1238 进行讨论

使用方式可以参考

  • operator/READMD.md

核心逻辑位于

  • operator/api/v1alpha1
  • operator/controllers

相关 issues

@kernelai kernelai mentioned this pull request Feb 6, 2023
@machinly machinly changed the title [WIP] pika-operator mvp 版本 pika-operator mvp 版本 Feb 11, 2023
@wanghenshui
Copy link
Collaborator

@fancy-rabbit
@agnees
@ahern88
@chenbt-hz
@lqxhub

有没有懂k8s的可以帮忙review一下

@wanghenshui
Copy link
Collaborator

wanghenshui commented Mar 6, 2023

operator能不能加个流水线编译

@machinly
Copy link
Collaborator Author

machinly commented Mar 6, 2023

operator能不能加个流水线编译

没问题,我来加一下。

另外 workflows 现在的结构是以编译环境命名的,是不是以子工具拆分会比较好,类似下面这样。

.
└── workflows
    ├── codis.yml
    ├── operator.yml
    └── pika.yml

如果可以的话我就新建一个 operator.yml

@wanghenshui
Copy link
Collaborator

operator能不能加个流水线编译

没问题,我来加一下。

另外 workflows 现在的结构是以编译环境命名的,是不是以子工具拆分会比较好,类似下面这样。

.
└── workflows
    ├── codis.yml
    ├── operator.yml
    └── pika.yml

如果可以的话我就新建一个 operator.yml
可以,一块改了吧

@wanghenshui wanghenshui changed the title pika-operator mvp 版本 operator: baseline Mar 6, 2023
@wanghenshui wanghenshui changed the title operator: baseline k8s operator: baseline Mar 6, 2023
@AlexStocks
Copy link
Collaborator

AlexStocks commented Mar 6, 2023

目前来看这个工作是很有意义的,等下周周会详细讨论下吧。

@wanghenshui wanghenshui merged commit d4ca2b8 into OpenAtomFoundation:unstable Mar 6, 2023
@machinly machinly deleted the pika_operator_mvp branch March 7, 2023 02:17
@machinly machinly mentioned this pull request Mar 8, 2023
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
* feat: operator base code from operator-sdk
* feat: add sample pika CRD define
* chore: add event,statefulset,pod role for operator
* feat: add hard code for create pika standalone sts/ svc
* feat: add finalizer to control delete order
* feat: replace hardcode statefulset template
* feat: add external config support
* test: add test for factor/pika/pika_controller
* build: add operator build workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants