ExamplesΒΆ This section contains code examples to demonstrate what you can do with kr8s. Creating Resources Create a Pod Create a Pod and wait for it to be ready Create a Job and wait for it to either succeed or fail Create a Secret Validate a Pod Create objects from a YAML file Generating Resources Generate a Pod Listing Resources List Nodes List Pods in all Namespaces List Ingresses (all styles) List Ready Pods List Pods by label selector List Running Pods List Pods sorted by restart count Inspecting Resources Read Pod logs Follow Pod logs until a timeout Modifying Resources Scale a Deployment Add Pod label Replace all Pod labels Cordon a Node Pod Operations Exec a command Exec a command and redirect stdout/stderr Open a port forward and communicate with the Pod Open a port forward permanently Open a port forward in the background