Coder Social home page Coder Social logo

gobernetes's Introduction

gobernetes

Collection of miscellaneous helper tools, must-read articles, documentations, k8s manifests & useful commands.





Tools

Articles:

Documentation:

Personal documentation on how I set things up:

Kubernetes components included:

k8s_manifests/ folder contains all the manifests for:

Useful commands

  • List all resources in a namespace: kubectl api-resources --verbs=list --namespaced -o name | xargs -n 1 kubectl get --show-kind --ignore-not-found -n <namespace>
  • Gets IPs of pods: kubectl get pods --selector=app=go-ws -o jsonpath='{.items[*].status.podIP}'
  • List all containers in k8s cluster: kubectl get pods -o jsonpath={.items[*].spec.containers[*].name} --all-namespaces
  • Activate these with kube-fzf:
    • findpod + describepod + execpod + tailpod
  • Kill pod forcefully:
    • kubectl delete pods <pod> --grace-period=0 --force
    • kubectl patch pod <pod> -p '{"metadata":{"finalizers":null}}'
  • Replace resource forcefully: kubectl replace --force -f go-web-server.yml
  • Print the supported API versions/resources:
    • kubectl api-versions
    • kubectl api-resources
  • Overwriting the existing labels: kubectl label --overwrite pods foo status=unhealthy
  • Show the default values for kubelet: kubeadm config print-default --api-objects KubeletConfiguration
  • Update existing ConfigMap based on a file:
     kubectl create configmap traefik-conf --from-file=traefik.toml --dry-run -o yaml | kubectl replace configmap traefik-conf -f - -n traefik
    

gobernetes's People

Contributors

aracki avatar doza-daniel avatar fossabot avatar dirsigler avatar

Watchers

James Cloos 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.