Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chrisns/k8s-exercise

k8s interview exercise
https://github.com/chrisns/k8s-exercise

docker kubernetes

Last synced: about 1 month ago
JSON representation

k8s interview exercise

Awesome Lists containing this project

README

        

# Interview

## Exercise

- 🐳 dockerify the [app](./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

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

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

```bash
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
```