Skip to content

Instantly share code, notes, and snippets.

@feiskyer
feiskyer / container inspect
Created March 18, 2016 09:02
kubernetes/heapster_grafana
docker inspect 863e19c537e6
[
{
"Id": "863e19c537e6a73abf32131d570ec32e46e8cf10debbb93de99e219c8f3f7e2a",
"Created": "2016-03-18T08:55:30.088189136Z",
"Path": "/bin/sh",
"Args": [
"-c",
"/run.sh"
],
Jun  2 10:27:30 linux hyperd: I0602 10:27:30.165973   11152 vm.go:179] hyperHandlePodEvent pod pod-bxELXTNZOJ, vm vm-jbPNqBTxYj
Jun  2 10:27:30 linux hyperd: I0602 10:27:30.171993   11152 libvirt.go:541] domainXML: <domain type="kvm"><name>vm-jbPNqBTxYj</name><memory unit="MiB">128</memory><vcpu placement="static" current="1">1</vcpu><os supported="yes"><type arch="x86_64" machine="pc-i440fx-2.0">hvm</type><loader type="pflash" readonly="yes">/var/lib/hyper/bios-qboot.bin</loader><nvram>/var/lib/hyper/cbfs-qboot.rom</nvram></os><features><acpi></acpi></features><cpu mode="host-passthrough"></cpu><on_poweroff>destroy</on_poweroff><on_reboot>destroy</on_reboot><on_crash>destroy</on_crash><devices><emulator>/usr/bin/qemu-system-x86_64</emulator><controller type="pci" index="0" model="pci-root"></controller><controller type="virtio-serial" index="0"><address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x00"></address></controller><controller type="scsi" index="0" model="virtio-scsi"><address t
// deepcopy-gen is a tool for auto-generating DeepCopy functions.
//
// Structs in the input directories with the below line in their comments
// will be ignored during generation.
// // +gencopy=false
package main
import (
"k8s.io/kubernetes/cmd/libs/go2idl/args"
"k8s.io/kubernetes/cmd/libs/go2idl/deepcopy-gen/generators"
@feiskyer
feiskyer / README.md
Created September 19, 2016 00:44
Kubernetes flex volume

Flexvolume

Flexvolume enables users to mount vendor volumes into kubernetes. It expects vendor drivers are installed in the volume plugin path on every kubelet node.

It allows for vendors to develop their own drivers to mount volumes on nodes.

Note: Flexvolume is an alpha feature and is most likely to change in future

Prerequisites

@feiskyer
feiskyer / pg-pong.py
Created January 4, 2017 13:54 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
#!/bin/bash
export MUSL_VERSION=1.1.16
export SOCAT_VERSION=1.7.3.2
export NCURSES_VERSION=6.0
export READLINE_VERSION=7.0
export OPENSSL_VERSION=1.0.2k
function build_musl() {
cd /build
# curl --unix-socket /var/run/hyper.sock -X POST "http://localhost/execvm?pod=nginx-9296454126&command=\[\"/sbin/busybox\",\"ls\",\"/sbin\"\]"
busybox
depmod
iptables
iptables-restore
iptables-save
ipvsadm
modprobe
mount.nfs4
@feiskyer
feiskyer / flannel.yaml
Last active December 29, 2025 18:48
Kubernetes flannel network plugin
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: flannel
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
@feiskyer
feiskyer / weave.yaml
Last active March 16, 2017 07:52
Kubernetes weave network plugin
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: weave-net
rules:
- apiGroups:
- ""
resources:
- pods
- namespaces
@feiskyer
feiskyer / calico.yaml
Last active March 16, 2017 09:19
Kubernetes calico network plugin
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: calico
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata: