Kubernetes Training Excercises
Jump to navigation
Jump to search
busk-ubuntu.yml
apiVersion: v1 kind: Pod metadata: name: busk-ubuntu labels: app: busk-ubuntu spec: containers: - name: ubuntu image: ubuntu:latest command: ["/bin/sleep", "365d"] imagePullPolicy: IfNotPresent restartPolicy: Always
kubectl apply -f busk-ubuntu.yml kubectl exec --stdin --tty busk-ubuntu -- /bin/bash apt update apt install -y iproute2 iputils-ping
Try setting 365d to 5m do something and then see it get wiped
Install some other tools
apt install postgresql-client