Forrest logo
back to context overview

kubectl-run

List of commands for kubectl-run:

  • kubectl-run:tldr:2b385 kubectl-run: Run an nginx pod, setting the TEST_VAR environment variable.
    $ kubectl run --generator=run-pod/v1 nginx --image=nginx --env="TEST_VAR=testing"
    try on your machine
    explain this command
  • kubectl-run:tldr:884bd kubectl-run: Run an nginx pod and expose port 80.
    $ kubectl run --generator=run-pod/v1 nginx --image=nginx --port 80
    try on your machine
    explain this command
  • kubectl-run:tldr:8e44e kubectl-run: Show API calls that would be made to create an nginx container.
    $ kubectl run --generator=run-pod/v1 nginx --image=nginx --dry-run
    try on your machine
    explain this command
back to context overview