minikubectl

command module
v0.0.0-...-75d85c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README ΒΆ

Minikubectl

Build Status

Description

πŸ”₯ Minimal πŸ”₯ k8s Client CLI. Using client-go (as Kubernetes Library).

Installation

Go get
go get -u github.com/jedipunkz/minikubectl
Build
git clone https://github.com/jedipunkz/minikubectl .
go build

Pre-Requirements

  • local or remote kubernetes environment
  • local kubectl command and $HOME/.kube/config file

Usage

List
List Deployments.
Option Description Default Value Required
--namespace namespace name default
minikubectl list deployments [--namespace default]
🍺 There are 1 deployments in the cluster
 * nginx-deployment (2 replicas)
List Pods.
Option Description Default Value Required
--namespace namespace name default
minikubectl list pods [--namespace default]
πŸ‰ There are 11 pods in the cluster
 * nginx-deployment-54f57cf6bf-65k86
 * nginx-deployment-54f57cf6bf-6lj2s
 * coredns-5644d7b6d9-kd5z4
 * coredns-5644d7b6d9-ndg4t
 * etcd-minikube
 * kube-addon-manager-minikube
 * kube-apiserver-minikube
 * kube-controller-manager-minikube
 * kube-proxy-xxgmt
 * kube-scheduler-minikube
 * storage-provisioner
List Namespaces.
minikubectl list ns
🍒 There are 4 namespaces in the cluster
 * default
 * kube-node-lease
 * kube-public
 * kube-system
Create
Create Deployment.
Option Description Default Value Required
--name Deployment Name N/A βœ…
--app Application Name app01
--container Container Name container01
--image Container Image Name and Tag nginx:latest βœ…
--port Port Number 0 βœ…
--replica Replica Number 1
minikubectl create deployment --name demo --app demo --container demo --image nginx:1.12 --port 80 --replica 1
Creating deployment...
🍺 Created deployment "demo".
Create Namespace.
Option Description Default Value Required
--name Namespace Name N/A βœ…
minikubeclt create ns --name demo
Update
Update Deployment.
Option Description Default Value Required
--name Deployment Name dep01 βœ…
--image Container Image Name and Tag N/A
--replica Replica Number N/A
# update image tag
minikubectl update deployment --name demo --image nginx:1.11
Updating deployment...
πŸ™ Updated deployment...
# update replica number
minikubectl update --deployment demo --replica 10
Updating deployment...
πŸ™ Updated deployment...
Delete
Delete Deployment.
Option Description Default Value Required
--name Deployment Name N/A βœ…
minikubectl delete deployment --name demo
Deleting deployment...
🍺 Deleted deployment.
Delete Namespace.
Option Description Default Value Required
--name Namespace Name N/A βœ…
minikubeclt delete ns --name demo

Author

Tomokazu HIRAI https://twitter.com/jedipunkz

Documentation ΒΆ

Overview ΒΆ

Copyright Β© 2019 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL