GithubHelp home page GithubHelp logo

cloud-native-bpf-workshop's Introduction

Cloud Native BPF Workshop

This workshop will demonstrate how to use eBPF tools inside Kubernetes.

It's strongly recommended to have all requirements installed and ready to use before starting the workshop. This could be on your own computer or on a virtual machine that you have access to.

Minikube requirements

To try out the exercises of this workshop, you'll need to run a version of Minikube with a few additional patches to get access to the kernel headers. Please read minikube.md for instructions.

kubectl requirements

Please make sure that the machine you're using has kubectl installed. You can refer to this page for installation instructions.

Inspektor Gadget requirements

During the workshop, we'll use release v0.2.0 of Inspektor Gadget for all examples. Please follow the installation instructions, to have this ready.

kubectl-trace requirements

During the workshop, we'll also use kubectl-trace. Please follow the installation instructions for installing the plugin on your computer.

kubectl-trace is a client-side plugin but it starts pods in the Kubernetes cluster named "trace-runner". We needed changes on the trace-runner pod. We'll use a version of kubectl-trace with patches that haven't been released yet, so that it can work inside Minikube. In particular, we'll use this kubectl-trace branch alban/ikheaders that includes the following patch:

For convenience, there is a build with container images available on Docker registries.

$ kubectl trace run \
    --imagename "docker.io/albanc/kubectl-trace-bpftrace:e896345e3d8f80aa968422c6199ac5180d688f65" \
    --init-imagename "docker.io/albanc/kubectl-trace-init:e896345e3d8f80aa968422c6199ac5180d688f65" \
    minikube -e "tracepoint:syscalls:sys_enter_* { @[probe] = count(); }"
$ kubectl trace get
$ kubectl trace attach kubectl-trace-a05bde1e-c44a-11ea-b314-c85b763781a4

It was built with the following commands

$ export IMAGE_NAME_INIT=docker.io/albanc/kubectl-trace-init
$ export IMAGE_NAME=docker.io/albanc/kubectl-trace-bpftrace
$ make build
$ make build image/build-init image/build
$ make image/push

Workshop Material

During the workshop, we will cover the basics of BPF and we will go through the exercises listed here, in order.

You can refer to the slides at any time.

cloud-native-bpf-workshop's People

Contributors

alban avatar margamanterola avatar blanquicet avatar johscheuer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.