프로젝트
GitHub에서 보기
Pscheidl/rust-kubernetes-operator-example
소개
An example of a Kubernetes operator implemented in Rust
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalRust Kubernetes operator example
A Kubernetes operator built on top of kube-rs project. There is an explanatory article available.
Steps to run on Linux:
- Install Rust
- Install Kubernetes, K3S.io is an excellent choice, installed simply
with
curl -sfL https://get.k3s.io | sh -. Make sure tosudo chown $USER /etc/rancher/k3s/k3s.yamlif you're accessing the Kubernetes cluster using the kubeconfig at/etc/rancher/k3s/k3s.yamlas non-root user. Also,export KUBECONFIG=/etc/rancher/k3s/k3s.yaml, so the operator can find the kubeconfig. - Use
kubectl apply -f echoes.example.com.yamlto create the CustomResourceDefinition inside Kubernetes. - Build the project with
cargo build. If the build fails, make surelibssl-devis available. - Run the operator using
cargo run. It will run outside of the Kubernetes cluster and connect to the Kubernetes REST API using the account inside theKUBECONFIGautomatically.
Finally, a custom Echo resource can be created with kubectl apply -f echo-example.yaml. A new deployment of two pods
with Echo REST API service will be created. This can be checked with the kubectl get pods
or kubectl get deployments command.

관련 프로젝트 살펴보기
불러오는 중…