Saravanan666/pypi-org huggingface dataset:
Package: kubes
KubesPurposeskubes lsto list pods(default), ns, secrets etc.kubes cxto list all namespaces or switch one.kubes logto show logs by a number of the tail or streaming with--follow.kubes cpto copy a file or directory between pod and local.kubes runto interact with a pod.The program is usingstdoutandstderrwhich means it's able to support the next level deployment scripting.InstallationpipinstallkubesInstruction-kubes ls <subjects>This command render the form with color, and trackSTATUScolumn. If the status is not in [Running,Active], it will be marked by red.Usagekubes.py [-h] {ls,cx,log,image,cp,run,describe} ...

optional arguments:
  -h, --help            show this help message and exit

subcommands:
  List Subjects

  {ls,cx,log,image,cp,run,describe}
    ls                  List Subject [default value: pods]
    cx                  List namespaces or switch the context to one of them
    log                 Show logs
    image               Get image info
    cp                  Download file or directory
    run                 Execute pod with command default: bash
    describe            Describe Subject [default value: pods]Update Logs#dateversion72021/12/24v1.2.062021/11/26v1.1.052021/05/17v1.0.142021/05/16v1.0.032021/05/15v0.1.022021/05/13v0.0.612021/05/13v0.0.11.2.0Add shortcut for get image infoAdd describe subjectsUpdatelsmethodformatsevicesfor ingress purposeformat Non-sevices as json if pods was specified1.1.0Use full pod name to check pods instead of name without hash1.0.1Removed detect command timeout in 10 seconds to avoid copy files overtime1.0.0First release versionUpdate README.md0.1.0Restructure arguments by group0.0.6Add streaming arguments and add tail numbers for pods logsDye the pods status if it shows not RunningIf you like my work, please consider buying me a coffee orPayPalThanks for your support! Cheers! 🎉
Package: kubescaler
KubeScalerMake your Kubernetes cluster YUGE! Or Smol. :)This is a set of helper Python classes that make it easy to add elasticity, or scaling
up and down, of your Kubernetes clusters in Python. We currently have support for the clouds
we use, namely:Google (GKE)Amazon (EKS)🚧️under development🚧️This tool is under development and is not ready for production use. Documentation
and examples coming soon!😁️ Contributors 😁️We use theall-contributorstool to generate a contributors graphic below.Vanessasaurus💻Md Rajib Hossen💻TODOfix up GKE scale function to only be one function, we don't need to reset max and min againrun experiments for scaling on EKSLicenseHPCIC DevTools is distributed under the terms of the MIT license.
All new contributions must be made under this license.SeeLICENSE,COPYRIGHT, andNOTICEfor details.SPDX-License-Identifier: (MIT)LLNL-CODE- 842614
Package: kubeseal-auto
kubeseal-autokubeseal-autois an interactive wrapper for kubeseal binary used to encrypt secrets forsealed-secrets.InstallationThe recommended way to install this script ispipx:pipxinstallkubeseal-autoUsageBy default, the script will check the version of sealed-secret controller and download the corresponding kubeseal binary to ~/bin directory.To run the script in fully interactive mode:kubeseal-autoAdditionally, a "detached" mode is supported:# Download sealed-secrets certificate for local signingkubeseal-auto--fetch# Generate SealedSecret with local certificatekubeseal-auto--cert<kubectl-context>-kubeseal-cert.crtNote: In the detached mode kubeseal-auto will not download the kubeseal binary and will look for it in the system $PATH.To select kubeconfig context:kubeseal-auto--selectTo append or change key values in the existing secret:kubeseal-auto--editsecret-name.yamlTo reencrypt all secrets in a directory (not working in a detached mode):kubeseal-auto--re-encrypt/path/to/directoryTo back up the encryption and decryption keys (not working in a detached mode):kubeseal-auto--backupContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Package: kubesh
KubeshKubesh is a shell for Kubernetes users and administrators.Planned features:Status bar:Kubernetes query commands:list podslist namespaceslist nodesHow to use itRun from  the docker imagedockerrun--privileged-v"$HOME/.kube/config":/app/kube_config-itjoaompinto/kubeshInstall using Python3.6+How to install# Last Releasepip3install--userkubesh# Development Releasepip3install--userhttps://github.com/joaompinto/kubesh/archive/master.zip
Package: kubeshell
kubeshell is a command line tool to interactively shell in to (and out
of) kubernetes pods.~$ kubeshell
 Pick your pod:
    NAME                                                              READY   STATUS             RESTARTS   AGE

 => some-pod-7f9b5f475wdcmv                                           1/1     Running            0          26h
    some-other-pod-556p4cfw                                           0/1     CrashLoopBackOff   83         7h10m
    yet-another-pod-589cf77568-rjzkv                                  0/1     Running            82         7h4m
    exitInstallYou can install from pypi as follows$ pip install kubeshellOR, clone the repo$ git clone https://github.com/roubles/kubeshell
$ cd kubeshell
$ python setup.py installUsageusage: kubeshell [-h] [-s SHELL] [-n NAMESPACE] [substring]

interactively shell into k8s pods

positional arguments:
  substring             substring to filter pods

optional arguments:
  -h, --help            show this help message and exit
  -s SHELL, --shell SHELL
                        Which shell to use
  -n NAMESPACE, --namespace NAMESPACE
                        Which namespace to use
Package: kubestatus
Kubernetes Namespace Status ViewerThis Python script provides a continually updating display of the status of various Kubernetes objects within a specified namespace. The script useskubectlto fetch data and displays it in a formatted table using therichlibrary.FeaturesDisplay status of Pods, Services, Deployments, and Container Image Counts.Auto-refreshes every 5 seconds for real-time status updates.Option to specify a Kubernetes namespace or auto-select the namespace of the first pod.RequirementsPython 3kubectlconfigured for access to a Kubernetes clusterrichlibrary installed (install viapip install rich)UsageRunning the Script:To specify a namespace:python kube_status.py -n <your_namespace>To use the default namespace (the namespace of the first pod from the current context):python kube_status.pyStopping the Script:PressCtrl+Cto exit the continuous update loop.DistributionThe package can be built and distributed using the providedMakefile.setuptools,twineandwheelshould already be installed locally. The following commands are available:make clean: Clean up previous build artifacts.make build: Build the package into a distributable format.make upload: Upload the package to PyPI.make dist: Run thecleanandbuildsteps sequentially.make all: Clean, build, and upload the package to PyPI.Before runningmake upload, ensure that you have registered an account onPyPIand configured your.pypircfile with your credentials.Functionsget_kubectl_output: Executes a kubectl command and returns its output.get_default_namespace: Determines the default namespace based on the first pod's namespace.create_pods_table: Creates a table displaying the status of Pods.create_services_table: Creates a table displaying the status of Services.create_deployments_table: Creates a table displaying the status of Deployments.create_image_count_table: Creates a table displaying the count of unique container images.main: The main loop of the script, updating and displaying status tables.LicenseThis script is released under the MIT License.
Package: kubesurveyor
KubesurveyorGood enough Kubernetes namespace visualization tool.No provisioning to a cluster required, only Kubernetes API is scrapped.Installationsudo apt-get install graphviz
pip install kubesurveyorUsageExport path to a custom certification authority, if you use one for your Kubernetes cluster APIexport REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crtAlternatively, ignore K8S API certificate errors using--insecureor-kkubesurveyor <namespace> --insecureShow<namespace>namespace as adotlanguage graph, using currently active K8S config contextkubesurveyor <namespace>Specify context to be used, if there are multiple in the K8S config filekubesurveyor <namespace> --context <context>Dump crawled namespace data to aYAMLformat for later processingkubesurveyor <namespace> --context <context> --save > namespace.yamlLoad fromYAMLfile, show asdotlanguage graphcat namespace.yaml | kubesurveyor <namespace> --loadLoad fromYAMLfile and render aspngvisualization to a current working directorycat namespace.yaml | kubesurveyor <namespace> --load --out pngIf you want to generate architecture image fromdotdefinition by hand, usedotdirectlydot -Tpng k8s.dot > k8s.pngLimitations:unconnected pods, services are not showncould have problems with deployments created by Tillernumber of replicas is not tracked
Package: kubesync
KubesyncKubesync synchronization tool between kubernetes pods or pods and your host.InstallFrom PypiThe script isavailable on PyPI. To install with pip:pipinstallkubesyncFrom Source Codegitclonehttps://github.com/ahmetkotan/kubesynccdkubesync
pythonsetup.pybuild
pythonsetup.pyinstallUsageFirst, you must start watcher withkubesync watchcommand and then create selectors withkubesync createcommand.If you want to ignoring some directory or files, create.kubesyncignorefile like.gitignorein source path.DemoWatchStart watching for real-time synchronizations.kubesync watch --help--pid-fileWatcher PID save to where if you want keep pid, otherwise save to~/.kubesync/kubesync.pidfile.kubesyncwatch--pid-file=kubesync.pidCreateCreate real-time synchronization.kubesync create --help-l, --selectorPod label selector parameter-c, --containerPod container name-s, --srcSource path from your host-d, --destDestination path from pod container-n, --nameSynchronization name. This is not required. This will be created automatically if you don't define it.kubesynccreate--selector=app=kubesync-example-cnginx-s$(pwd)/examples/nginx-app/html\-d/usr/share/nginx/html/--nameexampleSyncUse sync if you want to once move your files to pod container. This doesn't work as real-time. It moves files and shuts.kubesync sync --help-l, --selectorPod label selector parameter-c, --containerPod container name-s, --srcSource path from your host-d, --destDestination path from pod containerkubesyncsync--selector=app=kubesync-example-cnginx-s$(pwd)/examples/nginx-app/html\-d/usr/share/nginx/html/CloneUse clone If you want to reverse synchronization. It's mean, this container path synchronizations to your host path.kubesync clone --help-l, --selectorPod label selector parameter-c, --containerPod container name-s, --srcSource path from your host-d, --destDestination path from pod containerkubesyncclone--selector=app=kubesync-example-cnginx-s$(pwd)/examples/nginx-app/html\-d/usr/share/nginx/html/GetGet your all synchronization configurations.kubesyncgetDeleteDelete your synchronization configuration.kubesync delete --helpkubesyncdeleteexampleCleanDelete all your synchronization configurations.kubesyncclean
Package: kubetemplate
# KubetemplateKubernetes specific helpers and Jinja templatingUsage `kubet [-h] [-i INPUT_T] [-o OUTPUT_T]``-h` help`-i` input target path, defaults to targets in .kubetemplate file`-o` output target path if input target path specified, defaults to same directoryPut a `.kubetemplate` file in your project root. It looks like this:```yamlcompiler:targets:- path: appto: app.compiled- path: filesoutput_prefix: 'pan.'```This can be used, for example, to [generate a Kubernetes secret that contains Google service account credentials](https://github.com/hasura/kubetemplate/tree/master/example).
Package: kubetest
kubetestKubetest is apytestplugin that makes it easier to manage a Kubernetes
cluster within your integration tests. While you can use theKubernetes Python clientdirectly, this plugin provides some cluster and object management on top of that so you can
spend less time setting up and tearing down tests and more time actually writing your tests.
In particular, this plugin is useful for testing your Kubernetes infrastructure (e.g., ensure
it deploys and behaves correctly) and for testing disaster recovery scenarios (e.g. delete a
pod or deployment and inspect the aftermath).Features:Simple API for common cluster interactions.Uses the Kubernetes Python client as the backend, so more complex custom
actions are possible.Load Kubernetes manifest YAMLs into their Kubernetes models.Each test is run in its own namespace and the namespace is created and
deleted automatically.Detailed logging to help debug error cases.Wait functions for object readiness and for object deletion.Get container logs and search for expected logging output.Plugin-managed RBAC permissions at test-case granularity using pytest markers.For more information, see thekubetest documentation.InstallationThis plugin can be installed withpippip install kubetestNote that thekubetestpackage has entrypoint hooks defined in itssetup.pywhich allow it to be automatically made available to pytest. This means that it will run
whenever pytest is run. Sincekubetestexpects a cluster to be set up and to be given
configuration for that cluster, pytest will fail if those are not present. It is therefore
recommended to only installkubetestin a virtual environment or other managed environment,
such as a CI pipeline, where you can assure that cluster access and configuration are
available.DocumentationSee thekubetest documentation pagefor details on command line usage,
available fixtures and markers, and general pytest integration.FeedbackFeedback for kubetest is greatly appreciated! If you experience any issues, find the
documentation unclear, have feature requests, or just have questions about it, we'd
love to know. Feel free to open an issue for any feedback you may have.Licensekubetest is released under theGPL-3.0license.
Package: kubetop
What is this?kubetop is a top(1)-like tool forKubernetes.Usage Sample$kubetopOutput Samplekubetop - 13:02:57
Node 0 CPU%   9.80 MEM% 57.97 (   2 GiB/   4 GiB)  POD%  7.27 (  8/110) Ready
Node 1 CPU%  21.20 MEM% 59.36 (   2 GiB/   4 GiB)  POD%  3.64 (  4/110) Ready
Node 2 CPU%  99.90 MEM% 58.11 (   2 GiB/   4 GiB)  POD%  7.27 (  8/110) Ready
Pods:       20 total        0 running        0 terminating        0 pending
                 POD               (CONTAINER)        %CPU         MEM   %MEM
s4-infrastructure-3073578190-2k2vw                    75.5  782.05 MiB  20.76
                      (subscription-converger)        72.7  459.11 MiB
                                 (grid-router)         2.7   98.07 MiB
                                         (web)         0.1   67.61 MiB
                        (subscription-manager)         0.0   91.62 MiB
                       (foolscap-log-gatherer)         0.0   21.98 MiB
                                       (flapp)         0.0   21.46 MiB
                              (wormhole-relay)         0.0   22.19 MiBInstallingTo install the latest version of kubetop using pip:$ pip install kubetopTestingkubetop uses pyunit-style tests.
After installing the development dependencies, you can run the test suite with trial:$ pip install kubetop[dev]
$ trial kubetopVersionkubetop uses theCalVerversioning convention.
The first three segments of a kubetop version tell you the year (two digit), month, and day that version was released.
The fourth segment of a kubetop version is a bugfix release counter.
It is present if a new release is made that diffs from a previous release only by including one or more bug fixes.
For each bug fix release, the fourth segment is incremented.Licensetxkube is open source software released under the MIT License.
See the LICENSE file for more details.
Package: kubetwo
kubetwokubetwo is a simple CLI tool to create Kubernetes clusters on AWS EC2 with just one command.kubetwo will interact with Terraform and Ansible (Kubespray) for provisioning.RequirementsTo use kubetwo, following tools are necessary.Python (3.6 and newer)Terraform (1.0.0 and newer)Quick Start1. PrerequisitesFirst, please installkubetwopackage using pip or pip3 depending on your environment.pipinstallkubetwoFor kubetwo to interact with Terraform, it's necessary to set environment variables about AWS credentials.exportAWS_ACCESS_KEY_ID="your_anaccesskey"exportAWS_SECRET_ACCESS_KEY="your_asecretkey"exportAWS_DEFAULT_REGION="your_region"Then, you need to create SSH key without password for Ansible to access the EC2.ssh-keygen-trsa-b4096-f~/.ssh/kubetwo_id_rsaThen set these SSH keys as environment variables.exportSSH_PUBLIC_KEY_PATH="~/.ssh/kubetwo_id_rsa.pub"exportSSH_PRIVATE_KEY_PATH="~/.ssh/kubetwo_id_rsa"2 Spin up Kubernetes clusterBy running the followingkubetwo createcommand, kubetwo will spin up AWS EC2 with Terraform and set up Kubernetes cluster with Ansible (Kubespray v2.16.0).kubetwocreate--cluster-namekubetwo-cluster3. Access to the Kubernetes clusterAfter the Kubernetes cluster is created, you can see admin.conf in the workspace.
SettingKUBECONFIGwill allow you to access the Kubernetes cluster.exportKUBECONFIG=$(pwd)/kubetwo_cluster/admin.confLet's check the Kubernetes cluster from your local machine. (If you don't havekubectl, please install it)kubectlgetnodes4. Clean upYou can clean up newly created resources withkubetwo deletecommand.
It will also delete workspace of kubetwo on your machine.kubetwodelete--cluster-namekubetwo-clusterCommandskubetwo createIt will spin up AWS EC2 and create Kubernetes cluster.ParametersNameTypeDefaultDescriptioncluster-namestring-Kubernetes cluster nameamistringami-0c3fd0f5d33134a76Amazon Machine Image of EC2 instanceinstance-typestringt3.mediumInstance type of EC2 instancecontrol-planeint1Number of control planesworker-nodeint1Number of worker nodesopen-portsstring80,443Worker node ports to open for global (-1 will open all ports)approvebooleanfalseIf true, kubetwo won't prompt you to approve for executionExamplekubetwocreate\--cluster-namekubetwo-cluster\--control-plane1\--worker-node1\--open-ports80,443kubetwo scaleIt will scale in/out worker nodes in Kubernetes cluster.ParametersNameTypeDefaultDescriptioncluster-namestring-Kubernetes cluster nameworker-nodeint-Number of worker nodesapprovebooleanfalseIf true, kubetwo won't prompt you to approve for executionExamplekubetwoscale--cluster-namekubetwo-cluster--worker-node2kubetwo deleteIt will remove newly created AWS resources and Kubernetes cluster. And also clean up the workspace of kubetwo on local machine.ParametersNameTypeDefaultDescriptioncluster-namestring-Kubernetes cluster nameapprovebooleanfalseIf true, kubetwo won't prompt you to approve for executionExamplekubetwodelete--cluster-namekubetwo-cluster
Package: kubewait
Maintainer: Joe Black <joeblack949@gmail.com>Repository:https://www.github.com/joeblackwaslike/kubewaitDescriptionThis project is designed to be used to pause init as an init container until
required Kubernetes apps/services are up and ready.Names passed tokubewaitcan be the names ofDeploymentsorStatefulSets.UsageapiVersion:v1kind:Podmetadata:name:kubewaitannotations:pod.beta.kubernetes.io/init-containers:|-[{"name": "kubewait","image": "callforamerica/kubewait","imagePullPolicy": "IfNotPresent","args": ["app1", "app2"],"env": [{"name": "NAMESPACE","valueFrom": {"fieldRef": {"apiVersion": "v1","fieldPath": "metadata.namespace"}}}]}]spec:containers:-name:nginximage:nginxports:-containerPort:80
Package: kube-web-view
Kubernetes Web ViewKubernetes Web View allows to list and view all Kubernetes resources (incl. CRDs) with permalink-friendly URLs in a plain-HTML frontend.
This tool was mainly developed to provide a web-version ofkubectlfor troubleshooting and supporting colleagues.
See theKubernetes Web View Documentationandtry out the live demo.Goals:handling of any API resource: both core Kubernetes and CRDspermalink-friendly URL paths for giving links to colleagues (e.g. to help troubleshoot)option to work with multiple clustersallow listing different resource types on the same page (e.g. deployments and CRDs with same label)replicate some of the commonkubectlfeatures, e.g.-l(label selector) and-L(label columns)simple HTML, only add JavaScript where it adds valuepluggable links, e.g. to link to other tools based on resource properties like labels (monitoring, reports, ..)optional: editing resources as YAML manifests (kubectl edit)Non-goals:application managementreporting/visualizationfancy UI (JS/SPA)QuickstartThis will run Kubernetes Web View locally with your existing Kubeconfig:docker run -it -p 8080:8080 -u $(id -u) -v $HOME/.kube:/.kube hjacobs/kube-web-viewOpenhttp://localhost:8080/in your browser to see the UI.Deploying into your clusterThis will deploy a single Pod with Kubernetes Web View into your cluster:kubectl apply -f deploy/
kubectl port-forward service/kube-web-view 8080:80Openhttp://localhost:8080/in your browser to see the UI.Running testsThis requires Python 3.8 andpoetryand will run unit tests and end-to-end tests withKind:make testIt is also possible to run static and unit tests in docker env (make testis equal tomake poetry lint test.unit docker)docker run -it -v $PWD:/src -w /src python:3.8 /bin/bash -c "pip3 install poetry; make poetry lint test.unit"
make dockerThe end-to-end (e2e) tests will bootstrap a new Kind cluster viapytest-kind, you can keep the cluster and run Kubernetes Web View for development against it:PYTEST_ADDOPTS=--keep-cluster make test
make run.kindBuilding the Docker imagemakeDeveloping LocallyTo start the Python web server locally with the default kubeconfig (~/.kube/config):make run
Package: kubextract
Kubextract: ML Kubeflow Framework GeneratorKubextract is a framework generator for end-to-end machine learning development and automate kubeflow job deployment.How to usepip3install pip3 package on your computerexport environment variableexport PATH=$PATH:~/.local/binrunpip3 install kubextract --upgraderunkubextractinput your params.yml locationSetting pre-commitpip install pre-commitpre-commit installfor check previous files, runpre-commit run --all-filesDocumentationsee config documentation ondocs/configsee architecture decision record ondocs/adrsee example project onexamples/
Package: kubey
KubeySimple wrapper to help find specific Kubernetes pods and containers and run asynchronous commands.Free software: MIT licenseDocumentation:https://kubey.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.0.0 (2017-04-23)Refactor everything into real objects for cleaner separation of concerns.Add events report.Rework raw kubectl requests and usage.0.4.0 (2017-04-14)Fix interactiveCollect tabular output for each_pod0.3.0 (2017-04-04)Fix health reportHighlight “warning level” percentages in healthFix quoting to allow remote glob expansion0.2.0 (2017-04-02)Refactor into object for coding w/ Kubey.Add initial tests.Add pass-thru calling.0.1.0 (2017-03-18)First release on PyPI.
Package: kubeyard
kubeyardA utility to develop, test and deploy Kubernetes microservices.RequirementsbashminikubekubectldockerconntrackImportant:Kubeyard is tested on:minikube == v1.29.0 (should work with v1.29.0 and above)docker == 20.10.23 (should work with any version)kubectl == v1.21.14 (should work with v1.21.14 and above)Installationrm-rf$HOME/kubeyard-venv
virtualenv-ppython3$HOME/kubeyard-venv
.$HOME/kubeyard-venv/bin/activate
pipinstallkubeyardecho'. $HOME/kubeyard-venv/bin/activate'>>$HOME/.bashrc