k8s_course
180-The Kubernetes Odyssey: A Multi-Track Journey from Zero to Production Hero Course - Lesson Generation Prompt
File Explorer
- README.md
- run.sh
- stop.sh
- init.sql
- README.md
- run.sh
- stop.sh
- style.css
- app.js
- index.html
- build.sh
- Dockerfile
- nginx.conf
- README.md
- run.sh
- __init__.py
- main.py
- docker-compose.yml
- Dockerfile
- README.md
- requirements.txt
- app.js
- build.sh
- Dockerfile.multi-stage
- Dockerfile.single-stage
- package.json
- README.md
- common-commands.md
- containers-vs-vms.md
- dockerfile-best-practices.md
- cleanup-all.sh
- show-resources.sh
- test-all.sh
- README.md
- ci.yaml
- namespace.yaml
- Chart.yaml
- values.yaml
- api-deployment.yaml
- frontend-deployment.yaml
- log-processor-deployment.yaml
- namespace.yaml
- network-policy.yaml
- pod-disruption-budget.yaml
- redis-deployment.yaml
- kubernetes-dashboard.json
- prometheus.yaml
- build.sh
- cleanup.sh
- deploy.sh
- load-test.sh
- monitoring-setup.sh
- setup-cluster.sh
- main.py
- .dockerignore
- Dockerfile
- requirements.txt
- index.html
- App.js
- index.css
- index.js
- Dockerfile
- nginx.conf
- package.json
- main.go
- Dockerfile
- go.mod
- go.sum
- README.md
- NETWORKING.md
- PRODUCTION_READINESS.md
- STORAGE.md
- _helpers.tpl
- producer-deployment.yaml
- Chart.yaml
- values.yaml
- authorization-policy.yaml
- destination-rule.yaml
- gateway.yaml
- peer-authentication.yaml
- virtual-service.yaml
- frontend-deployment.yaml
- hpa.yaml
- log-processor-statefulset.yaml
- log-producer-deployment.yaml
- namespace.yaml
- network-policy.yaml
- pdb.yaml
- rbac.yaml
- redis-deployment.yaml
- secrets.yaml
- storage-class.yaml
- timescaledb-statefulset.yaml
- log-system-dashboard.json
- prometheus-config.yaml
- service-monitor.yaml
- build.sh
- cleanup.sh
- deploy.sh
- load-test.sh
- monitoring-setup.sh
- setup-cluster.sh
- index.html
- App.tsx
- index.tsx
- Dockerfile
- nginx.conf
- package.json
- tsconfig.json
- main.py
- Dockerfile
- requirements.txt
- main.py
- Dockerfile
- requirements.txt
- test_networking.sh
- test_storage.sh
- docker-compose.yml
- kind
- PROJECT_STRUCTURE.txt
- README.md
- index.html
- LogStream.js
- MetricsPanel.js
- StatsDisplay.js
- App.css
- App.js
- index.css
- index.js
- Dockerfile
- nginx.conf
- package.json
- Dockerfile
- main.py
- requirements.txt
- Dockerfile
- main.py
- requirements.txt
- dashboard-deployment.yaml
- log-analytics-deployment.yaml
- log-ingestion-deployment.yaml
- namespace.yaml
- redis-deployment.yaml
- config.yaml
- build.sh
- check-duplicates.sh
- demo.sh
- deploy.sh
- startup.sh
- test.sh
- validate-dashboard.sh
- validate-files.sh
- .gitignore
- demo.sh
- README.md
- startup.sh
- validate-dashboard.sh
- ci-cd.yaml
- index.html
- logService.ts
- App.tsx
- index.css
- index.tsx
- Dockerfile
- nginx.conf
- package.json
- tsconfig.json
- deployment.yaml
- Chart.yaml
- values.yaml
- kafka-deployment.yaml
- zookeeper-deployment.yaml
- postgresql-statefulset.yaml
- redis-deployment.yaml
- authorization-policy.yaml
- destination-rule.yaml
- gateway.yaml
- peer-authentication.yaml
- virtual-service.yaml
- frontend-deployment.yaml
- ingress.yaml
- log-ingestion-deployment.yaml
- log-ingestion-hpa.yaml
- log-ingestion-service.yaml
- log-processor-deployment.yaml
- log-processor-vpa.yaml
- namespace.yaml
- network-policies.yaml
- pod-disruption-budgets.yaml
- rbac.yaml
- secrets.yaml
- load-test-data.json
- locustfile.py
- kubernetes-dashboard.json
- grafana-deployment.yaml
- jaeger-deployment.yaml
- prometheus-config.yaml
- prometheus-deployment.yaml
- build.sh
- cleanup.sh
- demo.sh
- deploy.sh
- load-test.sh
- monitoring-setup.sh
- setup-cluster.sh
- startup.sh
- main.py
- test_main.py
- Dockerfile
- requirements.txt
- main.py
- Dockerfile
- requirements.txt
- .gitignore
- docker-compose.yml
- PROJECT_STRUCTURE.md
- README.md
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
docker logs
View Details ▼
docker logs
This command is an alias of `docker container logs`.
tldr docker container logs
View documentation for the original command:
kind
View Details ▼
kind
Run local Kubernetes clusters using Docker container "nodes".
Designed for testing Kubernetes itself, but may be used for local development or continuous integration.
kind create cluster --name {{cluster_name}}
Create a local Kubernetes cluster:
kind delete clusters {{cluster_name}}
Delete one or more clusters:
kind get {{clusters|nodes|kubeconfig}}
Get details about clusters, nodes, or the kubeconfig:
kubeadm
View Details ▼
kubeadm
Interface for creating and managing Kubernetes clusters.
kubeadm init
Create a Kubernetes control plane:
kubeadm join --token {{token}}
Bootstrap a Kubernetes worker node and join it to a cluster:
kubeadm token create --ttl {{12h0m0s}}
Create a new bootstrap token with a TTL of 12 hours:
kubectl describe
View Details ▼
kubectl describe
Show details of Kubernetes resources.
kubectl describe {{[po|pods]}} {{[-n|--namespace]}} {{namespace}}
Show details of pods in a namespace:
kubectl describe {{[no|nodes]}} {{[-n|--namespace]}} {{namespace}}
Show details of nodes in a namespace:
kubectl describe {{[po|pods]}} {{pod_name}} {{[-n|--namespace]}} {{namespace}}
Show the details of a specific pod in a namespace:
kubectl logs
View Details ▼
kubectl logs
Show logs for containers in a pod.
kubectl logs {{pod_name}}
Show logs for a single-container pod:
kubectl logs {{[-c|--container]}} {{container_name}} {{pod_name}}
Show logs for a specified container in a pod:
kubectl logs --all-containers={{true}} {{pod_name}}
Show logs for all containers in a pod:
kubectl port-forward
View Details ▼
kubectl port-forward
Forward one or more local ports to a pod.
kubectl port-forward {{[po|pods]}}/{{pod_name}} 5000 6000
Forward local ports 5000 and 6000 to the pod ports 5000 and 6000:
kubectl port-forward {{[po|pods]}}/{{pod_name}} :5000
Forward a random local port to the pod port 5000:
kubectl port-forward {{[deploy|deployment]}}/{{deployment_name}} 5000 6000
Forward local ports 5000 and 6000 to the deployment ports 5000 and 6000:
kubectl
View Details ▼
kubectl
Run commands against Kubernetes clusters.
Some subcommands such as `run` have their own usage documentation.
kubectl get {{pods|service|deployment|ingress|...}} {{[-o|--output]}} wide
List information about a resource with more details:
kubectl label pods {{name}} unhealthy=true
Update specified pod with the label `unhealthy` and the value `true`:
kubectl get all
List all resources with different types:
trivy
View Details ▼
trivy
Scanner for vulnerabilities in container images, filesystems, and Git repositories, as well as for configuration issues.
trivy image {{image:tag}}
Scan a Docker image for vulnerabilities and exposed secrets:
trivy image {{[-s|--severity]}} {{HIGH,CRITICAL}} {{alpine:3.15}}
Scan a Docker image filtering the output by severity:
trivy image --ignore-unfixed {{alpine:3.15}}
Scan a Docker image ignoring any unfixed/unpatched vulnerabilities:
