There are two parts to networking within QEMU:
- The virtual network device that is provided to the guest (e.g. a PCI network card).
- The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).
#!/usr/bin/env bash | |
set -e | |
if [ $# != 3 ]; then | |
echo 'Usage: nc-tcp-forward.sh $FRONTPORT $BACKHOST $BACKPORT' >&2 | |
exit 1 | |
fi |
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: pv-001 | |
spec: | |
capacity: | |
storage: 100Mi | |
accessModes: | |
- ReadWriteOnce | |
- ReadWriteMany |
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
# Kubernetes clusters using preemtible instances | |
## Motivation | |
People experimenting with kubernetes clusters on the GKE not | |
necessarily have money to keep a full cluster on at all time. GKE | |
clusters can be easily resized, but this still incurs in the full | |
instance cost when the cluster is up. | |
Google has added preemptible instances that are ideal for many |