Start VM instance with Vagrant.
$ vagrant up
$ vagrant ssh
Install packages.
#!/bin/sh | |
if [ "${CONTAINER}" = "1" ]; then | |
/usr/local/bin/python $@ | |
else | |
docker run \ | |
-it --rm \ | |
-v /:/host \ | |
-v /opt:/opt \ | |
-v /home:/home \ |
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-ovf", | |
"source_path": "ubuntu-16.04-server-cloudimg-amd64.ova", | |
"vboxmanage": [ | |
["storageattach", "{{.Name}}", "--storagectl", "IDE", "--port", "0", "--device", "0", "--type", "dvddrive", "--medium", "files/cloud.iso"], | |
["modifyvm", "{{.Name}}", "--nic1", "nat" ], | |
["modifyvm", "{{.Name}}", "--uart1", "0x3F8", "4"], | |
["modifyvm", "{{.Name}}", "--uartmode1", "file", "console.log"] |
#!/usr/bin/python | |
# This code is modified version of sslsniff. | |
# https://github.com/iovisor/bcc/blob/master/tools/sslsniff.py | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License") | |
from __future__ import print_function | |
import ctypes as ct | |
from bcc import BPF |
I hereby claim:
To claim this, I am signing this object:
#define KBUILD_MODNAME "load_balancer" | |
#include <uapi/linux/bpf.h> | |
#include <linux/in.h> | |
#include <linux/if_ether.h> | |
#include <linux/if_packet.h> | |
#include <linux/if_vlan.h> | |
#include <linux/ip.h> | |
#include <linux/ipv6.h> | |
BPF_HASH(counter, uint32_t, long); |
export KUBERNETES_PROVIDER=vagrant | |
export KUBERNETES_MEMORY=2048 | |
export NUM_MINIONS=2 | |
export KUBE_LOGGING_DESTINATION=elasticsearch | |
export KUBE_ENABLE_CLUSTER_LOGGING=true | |
export KUBE_ENABLE_NODE_LOGGING=true | |
curl -sS https://get.k8s.io | bash | |
#cd kubernetes | |
#./cluster/kube-up.sh |
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1
epoll_wait(4, {{EPOLLERR|EPOLLHUP, {u32=12250816, u64=12250816}}}, 256, 49) = 1