Crates.io | fleet_apiserver |
lib.rs | fleet_apiserver |
version | |
source | src |
created_at | 2024-11-25 07:37:22.745493 |
updated_at | 2024-12-04 01:35:43.32346 |
description | Kubernetes apiserver for fleet |
homepage | |
repository | https://gitee.com/iscas-system/apiserver |
max_upload_size | |
id | 1459997 |
Cargo.toml error: | TOML parse error at line 21, column 1 | 21 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
提供多种控制容器生命周期的apiserver参考实现。
cargo add k8s_apiserver
use k8s_apiserver::cores::apiserver::ApiServer;
use k8s_apiserver::cores::config::DefaultConfig;
use k8s_apiserver::cores::handlers::DefaultHandler;
use std::sync::Arc;
use env_logger;
#[actix_web::main]
async fn main()
{
env_logger::init();
let config = DefaultConfig::new();
let server = ApiServer::new(config);
Arc::new(server).start("0.0.0.0:8080", DefaultHandler::new()).await;
}