https://github.com/liburdi/k8s-operator
https://github.com/liburdi/k8s-operator
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/liburdi/k8s-operator
- Owner: liburdi
- Created: 2023-12-07T08:47:36.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-22T06:00:14.000Z (over 1 year ago)
- Last Synced: 2026-01-14T18:24:33.012Z (5 months ago)
- Language: Go
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 基于go的k8s operator
#### 运行
```
kubectl apply -f serviceaccount.yaml
kubectl apply -f operator.yaml //会派生出job,取决于你的operator.yaml
```
#### 其他
`container/main.go` 是收到通知要去做的事情(job)
`cmd/main.go` 是`operator`的`main`文件,你可以完善此处,传入不同启动命令参数,可以触发不同的`job`