k8s 1.27.0+dev.2 copy "k8s: ^1.27.0+dev.2" to clipboard
k8s: ^1.27.0+dev.2 copied to clipboard

Kubernetes client library for Dart. Maintained by Kubeec Team.

k8s-dart Logo

CI Coverage License: MIT pub


A Dart library for the Kubernetes API.

Warning

Work in Progress

We keep working on it until we have all the features of the officially-supported Kubernetes JavaScript client.

Developed with 💙 by Kubeec Team

Installation 💻 #

For quick start, please use this package as a library

With Dart:

dart pub add k8s

With Flutter:

flutter pub add k8s

For more information, please visit the pub-web.flutter-io.cn

Quick Start 🚀 #

List pods for all namespaces:

import 'package:k8s/k8s.dart';

Future<void> main() async {
  final kubernetes = Kubernetes();
  await kubernetes.initDefault();
  final coreV1Api = kubernetes.client.getCoreV1Api();
  final pods = await coreV1Api.listPodForAllNamespaces();
  print('All namespaces have ${pods.data?.items.length} pods.');
}
3
likes
140
pub points
58%
popularity
screenshot

Publisher

verified publisherfatihsever.com

Kubernetes client library for Dart. Maintained by Kubeec Team.

Repository (GitHub)
View/report issues

Topics

#kubernetes

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, dio, json_annotation, kubeconfig, logging, path, socks5_proxy

More

Packages that depend on k8s