k8s-ops
Collective useful k8s ops features built on top of awesome kubernetes-client
Installation
Install via npm:
$ npm i k8s-ops --save
Example
const Apis K8SAuthType Features DeploymentStatusType Transformers = const hpa: HPA deploy: Deploy pod: Pod = Features const namespace = 'kube-system' const apis = const hpa = hpa // Scale HPA with given min/max replicas // check if scale is set correctly const deploy = deploy // check if all pods are all up-to-date and available deploy //Using optional transformer to get more consize data and you can implement your own const pod = pod podres // use kubernetes-client's objects' feature directly by accessing .res