[go: up one dir, main page]

Skip to content

chrisns/k8s-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interview

Exercise

  • 🐳 dockerify the app
  • ☸ write a deployment and deploy to minikube
  • 🍪 provide inbound access to the app

Considerations / discussion points:

  • The app is pretty flakey, so a:
    • small image will be important to improve startup time on rescheduling
    • aggressive checks will be needed to minimize bounced requests
    • multiple replicas will be needed to minimize dropped requests
  • Network policy deny-all policy
  • internal+external TLS, auth - how sidecar pattern might help with this
  • How to run the app as non-privileged user
  • Readonly FS
  • How to inject secrets via env vars / files, which is better
  • memory + cpu allocation right sizing
  • autoscaling

use minikube with ingress

minikube start --memory=4096 --addons=ingress

maybe if one can find a way to make ingress work with network policies and a cni:

minikube start --network-plugin=cni --memory=4096 --addons=ingress
kubectl create -f https://raw.githubusercontent.com/cilium/cilium/v1.6/install/kubernetes/quick-install.yaml

About

k8s interview exercise

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •