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

Kubernetes client library for Dart. Maintained by Nopso 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 Nopso

Documentation 📝 #

Please visit the official documentation.

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.dev

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('There are a total of ${pods.data?.items.length} in all namespaces.');
}
5
likes
120
points
3
downloads
screenshot

Publisher

verified publisherfatihsever.com

Weekly Downloads

Kubernetes client library for Dart. Maintained by Nopso team.

Repository (GitHub)
View/report issues

Topics

#kubernetes

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

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

More

Packages that depend on k8s