This Gist demoes Linux' netkit
interface pairs. These interfaces are successors for veth
tailor made for eBPF and high performance.
Create a 'lab' setup:
# Create the 'lab' namespace
sudo ip netns add lab
# Run Kubernetes dashboard locally - no install in the cluster | |
# | |
# Usage: | |
# | |
# 1. Make sure you have Docker compose >= v2.23.1 (required for inline configuration files) | |
# | |
# 2. Download this Gist as 'kube-dashboard.docker.compose.yaml' | |
# | |
# 3. Run Docker compose: | |
# docker compose -f kube-dashboard.docker.compose.yaml up \ |
FROM ubuntu:14.04 | |
MAINTAINER Jean-Tiare Le Bigot "[email protected]" | |
ENV DEBIAN_FRONTEND noninteractive | |
# Grab all dependencies | |
RUN apt-get update \ | |
&& apt-get -y upgrade \ | |
&& apt-get -y install curl libx11-dev libxtst-dev libxcomposite-dev \ | |
libxdamage-dev libxkbfile-dev python-all-dev \ |
# MIT License | |
# Copyright (c) 2013 Jean-Tiare LE BIGOT <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |