Skip to content
/ kube Public

A script bundle to work with kubernetes faster

Notifications You must be signed in to change notification settings

tapvanvn/kube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KUBE

install

run maintain.sh without sudo permission after download this bundle

architecture

  • error handling: we assume that there is a variable "err" that has value is 0 if command success and 1 if fail.
  • if a command support error handling they will be describe "command_name: [err] ..."
  • if a command that support error handling. After calling that command, you can call "trapError message" to print message if error occur or "trapErrorExit message" to print message and do "exit 1" if an error occur.

commands for working with kubectl

  • kubeallpods : get all pods in namespace. If there is no namespace had been provided, display for all namespaces.
  • kubesh : run kubectl exec ... -- sh in first pod found by label in case label format is a=b (ex:label=test), or label will be app=label
  • kubebash : same as kubesh but with bash

commands for working with helm

  • setHelmVersion: [err] <chart_dir> : set appVersion in Chart.yaml in chart directory to version
  • nextHelmVersionWithFile:[err] <version_file> <chart_dir> <update_level> : update appVersion of chart base on version file (file with content is version (x.y.z)). update level: x0, y1, z~2.

commands for woking with docker

  • buildDockerImage: [err] <docker_file> <docker_woking_dir> <image_name> <registry_url> : build docker image and push if registry url is provided

About

A script bundle to work with kubernetes faster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages