Skip to content

coin8086/learning-k8s

Repository files navigation

Learning Kubernetes(k8s) by Simple Examples

Learning environment

Windows + Docker Desktop + Kind

Linux should be OK too, as long as docker, kubectl and kind are installed.

A local dev machine is enough for all the examples.

Overall

Tips

  • To check DNS inside a k8s cluster, run a container inside the cluster, like

    kubectl run -it --rm --image busybox:1.28 dns-test --restart=Never

    Or use a more powerful (and also bigger in size) image

    kubectl run -it --rm --image louirobert/dnschecker:1.1 dnschecker --restart=Never
  • To access a port in a k8s cluster from local dev machine, use kubectl port-forward, like

    kubectl port-forward services/frontend 8080:80

About

Learning Kubernetes(k8s) by simple examples

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published