Last active
July 29, 2020 21:12
-
-
Save robgmills/9beeb901d94de3a1be43ef00d63510aa to your computer and use it in GitHub Desktop.
Revisions
-
robgmills revised this gist
Jul 29, 2020 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,4 +17,20 @@ Run the following in a terminal: kubectl apply -f https://gist.githubusercontent.com/robgmills/9beeb901d94de3a1be43ef00d63510aa/raw/netbox.yaml && \ kubectl exec -it -n default netbox -- /bin/bash && \ kubectl delete pod -n default netbox ``` Or, add the following to your `.bashrc` or `.zshrc`: ```sh function debugk() { kubectl apply -f https://gist.githubusercontent.com/robgmills/9beeb901d94de3a1be43ef00d63510aa/raw/netbox.yaml && \ kubectl exec -it -n default netbox -- /bin/bash && \ kubectl delete pod -n default netbox } ``` And call it like so: ```sh debugk ``` -
robgmills revised this gist
Jul 29, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ It contains common network troubleshooting tools: Run the following in a terminal: ```sh kubectl apply -f https://gist.githubusercontent.com/robgmills/9beeb901d94de3a1be43ef00d63510aa/raw/netbox.yaml && \ kubectl exec -it -n default netbox -- /bin/bash && \ kubectl delete pod -n default netbox ``` -
robgmills revised this gist
Jul 29, 2020 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,7 @@ It contains common network troubleshooting tools: Run the following in a terminal: ```sh kubectl apply -f https://gist.githubusercontent.com/robgmills/9beeb901d94de3a1be43ef00d63510aa/raw/netbox.yaml/netbox.yaml && \ kubectl exec -it -n default netbox -- /bin/bash && \ kubectl delete pod -n default netbox ``` -
robgmills revised this gist
Jul 29, 2020 . 2 changed files with 20 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ # Network Troubleshooting For Kubernetes This Kubernetes Pod descriptor will deploy a pod to your kubernetes cluster. It contains common network troubleshooting tools: - dig - netcat - curl - nslookup ## Instructions Run the following in a terminal: ```sh kubectl apply -f https://gist.githubusercontent.com/robgmills/9beeb901d94de3a1be43ef00d63510aa/raw/c4f8f6fec6d19b0bd39775d54c058615fd375776/netbox.yaml && \ kubectl exec -it -n default netbox -- /bin/bash ``` This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v1 kind: Pod metadata: name: netbox namespace: default spec: containers: - name: netbox -
robgmills created this gist
Jul 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ apiVersion: v1 kind: Pod metadata: name: netbox namespace: ops spec: containers: - name: netbox image: dj80hd/mybb command: - sleep - "3600" imagePullPolicy: IfNotPresent restartPolicy: Always