Skip to main content

App to start, stop and view minikube services easily.

Project description

Minikube Services

minikservices is a small and very simple python project that aims to help with the start and stop of Minikube services.

Instead of creating multiple terminal tabs to expose minikube services, you can use kservice command line tool to start and stop services. It will also display the exposed services and its addresses.

Build/Dev local

git clone https://github.com/dszortyka/minikservices.git
cd minikservices
python3 -m venv .pyenv
source .pyenv/bin/activate
pip install -r requirements.txt
pip install . 
kservice -h

Python Package (PyPI)

pip install minikservices

Usage

kservice --start service1 service2
kservice --start service1 service2 -n namespace

kservice --stop service1 service2
kservice --stop service1 service2 -n namespace

kservice --startall
kservice --stopall

kservice --status

How it works

  • The application will start the minikube service in background and store and temp file in /tmp folder.
  • If you have an Application deployed in two different namespaces and run the --start operation without specifying the -n (namespace), it will start the application on both namespaces. The same is valid for --stop
  • --startall and --stopall works in the same way, it will start all services in all namespaces unless you specify which -n (namespace) in want.
  • --status will print a table with service names, namespace and the current URL for the exposed services.
❯ kservice --start simple-flask-app

❯ kservice --status
+-----------+-----------------------------------------+------------------------+
| Namespace |               Service Name              |          URL           |
+-----------+-----------------------------------------+------------------------+
|   argocd  |     argocd-applicationset-controller    |                        |
|   argocd  |            argocd-dex-server            |                        |
|   argocd  |              argocd-metrics             |                        |
|   argocd  | argocd-notifications-controller-metrics |                        |
|   argocd  |               argocd-redis              |                        |
|   argocd  |            argocd-repo-server           |                        |
|   argocd  |              argocd-server              |                        |
|   argocd  |          argocd-server-metrics          |                        |
|  default  |             simple-flask-app            | http://127.0.0.1:64888 |
|  flaskapp |             simple-flask-app            | http://127.0.0.1:64885 |
+-----------+-----------------------------------------+------------------------+

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minikservices-0.0.6.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minikservices-0.0.6-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file minikservices-0.0.6.tar.gz.

File metadata

  • Download URL: minikservices-0.0.6.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for minikservices-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b276de88ceafecb86a5821e62af122c55bab094edcb9f8dd1a9fd6a2732d1f2e
MD5 1fdbbded392cf0e43bbe9941a9ef71e4
BLAKE2b-256 778fe3726c6e00d41740bf45bbe3f28ce915f71e8b8d8b3ac9ca352c2e4419fc

See more details on using hashes here.

File details

Details for the file minikservices-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: minikservices-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for minikservices-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 17382e4c205a59ea07718c6ce5c86ee2292094839e93fb970a0572c218537058
MD5 f8e90083cf2e18afb401fc0cef02ab0a
BLAKE2b-256 801f0ce4fe4213245a598d1cb954831adda1ab183e7abdcc1e30c9d7cb3e13e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page