Skip to content

team-parallax/k8s-beginner-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallax Kubernetes Workshop

https://present.team-parallax.com/kubernetes-beginner#/

Useful commands

Default kubernetes editor

export KUBE_EDITOR="nano"

autocompletion

Run debug pod

kubectl run debug -it --rm --image=digitalocean/doks-debug:latest -- bash

Scale deployment

kubectl scale deployment --replicas 2 k8s-workshop

Port forward

  • from pods kubectl port-forward pods/k8s-workshop 3334:3333
  • from service: kubectl port-forward svc/k8s-workshop-svc 3334:80

observe

  • kubectl describe pod foo

remove sturdy pvs

kubectl get pv | grep Terminating | awk '{print $1}' | xargs kubectl delete pv --grace-period=0 --force

useful aliases

alias k='kubectl'
alias kd='kubectl describe'
alias kg='kubectl get'
alias ke='kubectl edit'
alias kt='kubectl top'
alias kcw='kubectl config use-context parallax-beginner-workshop'
function kns {
    kubectl config set-context --current --namespace="$1"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published