Skip to content

Instantly share code, notes, and snippets.

@geekbass
Last active June 29, 2021 19:06
Show Gist options
  • Save geekbass/acbd8f9bcc83ab3e4264da6be77c147f to your computer and use it in GitHub Desktop.
Save geekbass/acbd8f9bcc83ab3e4264da6be77c147f to your computer and use it in GitHub Desktop.

Revisions

  1. geekbass revised this gist Jun 29, 2021. 1 changed file with 29 additions and 0 deletions.
    29 changes: 29 additions & 0 deletions debug.md
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,33 @@ kubectl run -i --tty --rm debug --image=curlimages/curl --restart=Never -- www.g
    kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh
    ```

    Testing Volume Mount from Configmap
    ```
    ---
    apiVersion: v1
    kind: Pod
    metadata:
    name: busybox1
    namespace: spark
    labels:
    app: busybox1
    spec:
    containers:
    - image: busybox
    command:
    - sleep
    - "3600"
    imagePullPolicy: IfNotPresent
    name: busybox
    volumeMounts:
    - name: executor-template
    mountPath: "/opt/spark/configs"
    readOnly: true
    restartPolicy: Always
    volumes:
    - name: executor-template
    configMap:
    name: spark-executor-template
    ```
  2. Weston Bassler created this gist Dec 4, 2020.
    8 changes: 8 additions & 0 deletions debug.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    Useful Kubectl Commands
    ```
    kubectl run -i --tty --rm debug --image=curlimages/curl --restart=Never -- www.google.com -vvv
    kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh
    ```