604 B
604 B
Network Policies
Requirements
- Have
kubectl
working against minikube
Setup
- Bring up a new redis server in the
default
namespace
kubectl create deployment --image=redis:alpine redis
- Create a new namespace:
kubectl create namespace attacker
- Bring up a new Alpine server
kubectl create -f alpine.yml
- SSH to the attacker pod
kubectl exec -it attacker-pod -n attacker
Break it
Get the IP Address of the Redis Pod
kubectl describe pod [pod-name]
Install redis on the alpine server
apk update && apk add redis