Skip to content

d8devs.com

Developer, Maker.

  • Home
  • Docker
  • Raspberry Pi Zero W
  • Development
  • Linux
  • PHP
  • Server
  • 3D Printing
  • T-Shirts & Hoodie Design Ideas
  • DIY
  • Helm
  • Javascript
  • Kubernetes
  • NodeJS
  • Raspberry PI 3
  • Vagrant

Tag: kubectl shortcuts for bash scripting

Posted on 22.05.202223.05.2022

Some kubectl shortcuts for bash automation (will be updated)

Hits: 41

Get Podname via selector in bash, for example for port-forwarding

kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000

Scale to 0 all deployment in whole namespace

kubectl scale deploy -n <namespace> --replicas=0 --all

Suche

Contact koray@d8devs.com

Recent Posts

  • Cable Holder for 2 Cable
  • A runtime developer console, interactive debugger for Chameleon System 7.1.x
  • Dump PHP 8.1 OPCodes using Vulkan Logic Dumper with Bonus
  • Get shell access to nodes in Kubernetes via kubectl
  • Generate base64 encoded things (password, secrets, etc. ) in terminal/bash

Categories

  • 3D Printing (16)
  • Apple M1 (8)
  • Development (59)
  • DIY (4)
  • Docker (19)
  • Helm (10)
  • Javascript (9)
  • Kubernetes (17)
  • Linux (16)
  • NodeJS (4)
  • PHP (30)
  • Raspberry PI 3 (4)
  • Raspberry Pi Zero W (2)
  • Server (16)
  • Ubuntu (6)
  • Uncategorized (3)
  • Vagrant (1)

Statistics

  • 111
  • 64
  • 570
  • 181
  • 4,435
  • 16,623
  • 168,835
  • 384,909
  • 178,852
  • 25
  • 0
  • 89
Proudly powered by WordPress