kubectl run -it --rm debug-$RANDOM --image-pull-policy=Always --image=alpine --restart=Never sh
curl https://getcaddy.com | bash -s personal
mkdir caddy
cd $_
cat <<EOF >Caddyfile
0.0.0.0:8080
browse
EOF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian | |
RUN apt-get update && apt-get install -y iperf && apt-get clean | |
CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait" |
These instructions assume running Vagrant with a libvirt provider.
Install the vagrant-libvirt plugin using the following:
vagrant plugin install vagrant-libvirt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: httpbin | |
labels: | |
app: httpbin | |
spec: | |
replicas: 3 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "packet" { | |
auth_token = "${var.auth_token}" | |
} | |
# Packet auth token. Generate it on your Packet account. More info: | |
# https://support.packet.com/kb/articles/api-integrations | |
variable "auth_token" {} | |
# The Packet project ID. More info: https://support.packet.com/kb/articles/api-integrations | |
variable "project_id" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is based on a Redhat blogpost: | |
# https://www.projectatomic.io/blog/2014/10/libvirtd_in_containers/ | |
# https://github.com/projectatomic/docker-image-examples/blob/master/rhel-libvirt/libvirtd/Dockerfile | |
FROM centos:7 | |
ENV VAGRANT_VERSION=2.2.0 | |
RUN yum -y install systemd libvirt-daemon-driver-* libvirt-daemon libvirt-daemon-kvm libvirt-devel qemu-kvm gcc make wget openssh-clients && yum clean all; \ | |
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \ | |
rm -f /lib/systemd/system/multi-user.target.wants/*;\ |