Skip to content

Instantly share code, notes, and snippets.

View kairaazure's full-sized avatar
🎃
Focusing

Kirti Bansal kairaazure

🎃
Focusing
View GitHub Profile
@kairaazure
kairaazure / find-k8snode-interface.sh
Created February 17, 2021 06:14 — forked from r0mdau/find-k8snode-interface.sh
How to get tcpdump for containers inside Kubernetes pods
# find the kube node of the running pod, appear next to hostIP, and note containerID hash
kubectl get pod mypod -o json
# -> save hostIP
# -> save containerID
# connect to the node and find the pods unique network interface index inside it's container
docker exec containerID /bin/bash -c 'cat /sys/class/net/eth0/iflink'
# -> returns index
# locate the interface of the node
@kairaazure
kairaazure / playbook_centos_install_docker.yaml
Created August 24, 2019 06:51 — forked from yonglai/playbook_centos_install_docker.yaml
An Ansible playbook to install docker-ce on Centos
---
- name: Install docker
gather_facts: No
hosts: default
tasks:
- name: Install yum utils
yum:
name: yum-utils
state: latest
@kairaazure
kairaazure / ansible.md
Created August 18, 2019 11:35 — forked from rstacruz/ansible.md
Getting started with Ansible