Giter VIP home page Giter VIP logo

common-bash-functions's Introduction

Bash utility functions and aliases

This bash script provides several utility functions and aliases for Kubernetes and Argo CD tasks.

Usage

adjust your ~/.bashrc and add this

source <(wget --no-cookies --no-cache -qO - https://raw.githubusercontent.com/iits-consulting/common-bash-functions/main/bash-functions.sh)

You can then list the alias like this:

$ list_iits_alias

Functions:
argo
traefik
cleanup_pods
get_secrets
check_cluster_for_unsigned_images
list_iits_alias
---
Aliases:
k
kns
kenv
kubens
kubeEnv
updateArgoCharts
updateCharter
charter
fwd

Functions

argo

Opens Argo CD in your preferred browser on Linux or MacOS and does port-forwarding for the Argo CD server. Also prints out the initial admin username and password.

traefik

Does port forwarding for the first pod it finds in the routing namespace and also prints out the url to access the traefik dashboard.

cleanup_pods

Cleans up K8s pods that are in either Succeeded or Failed phases or where all containers are in a Waiting state because of ImageBackoffPull reason.

get_secrets

Prints out base64 decoded secret values for a given secret name.

check_cluster_for_unsigned_images

Checks if any of the images used in the Kubernetes cluster are unsigned.

list_iits_alias

Fetches and lists the functions and aliases from a bash script on GitHub.

Aliases

Several aliases are also defined to simplify routine Kubernetes tasks.

common-bash-functions's People

Contributors

victorgetz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.