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
kernel: | |
image: linuxkit/kernel:5.4.39 | |
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0" | |
init: | |
- linuxkit/init:a68f9fa0c1d9dbfc9c23663749a0b7ac510cbe1c | |
- linuxkit/runc:v0.8 | |
- linuxkit/containerd:a4aa19c608556f7d786852557c36136255220c1f | |
- linuxkit/ca-certificates:v0.8 | |
onboot: | |
- name: sysctl |
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
sudo docker pull public.ecr.aws/eks-distro/kubernetes/pause:v1.18.9-eks-1-18-1;\ | |
sudo docker pull public.ecr.aws/eks-distro/coredns/coredns:v1.7.0-eks-1-18-1; \ | |
sudo docker pull public.ecr.aws/eks-distro/etcd-io/etcd:v3.4.14-eks-1-18-1; \ | |
sudo docker tag public.ecr.aws/eks-distro/kubernetes/pause:v1.18.9-eks-1-18-1 public.ecr.aws/eks-distro/kubernetes/pause:3.2; \ | |
sudo docker tag public.ecr.aws/eks-distro/coredns/coredns:v1.7.0-eks-1-18-1 public.ecr.aws/eks-distro/kubernetes/coredns:1.6.7; \ | |
sudo docker tag public.ecr.aws/eks-distro/etcd-io/etcd:v3.4.14-eks-1-18-1 public.ecr.aws/eks-distro/kubernetes/etcd:3.4.3-0; \ | |
sudo kubeadm init --image-repository public.ecr.aws/eks-distro/kubernetes --kubernetes-version v1.18.9-eks-1-18-1 |
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: packet-cloud-controller-manager | |
namespace: kube-system | |
labels: | |
app: packet-cloud-controller-manager | |
spec: | |
replicas: 1 |
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
#!/bin/bash | |
# Either run as a standalone, or add to .bash_profile to start on new session | |
RED=$(tput setaf 1 2>/dev/null) | |
GREEN=$(tput setaf 2 2>/dev/null) | |
YELLOW=$(tput setaf 3 2>/dev/null) | |
BLUE=$(tput setaf 4 2>/dev/null) | |
PURPLE=$(tput setaf 5 2>/dev/null) | |
CYAN=$(tput setaf 6 2>/dev/null) |
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 golang:1.14.2-buster | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN echo deb http://ftp.us.debian.org/debian sid main >> /etc/apt/sources.list | |
RUN apt-get update; apt-get install -y libtool \ | |
cmake \ | |
automake \ | |
autoconf \ | |
make \ | |
ninja-build \ | |
curl \ |
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: v1 | |
kind: PersistentVolume | |
metadata: | |
name: local-volume-1 | |
labels: | |
type: local | |
spec: | |
capacity: | |
storage: 10Gi | |
accessModes: |
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
#!/bin/sh | |
CLUSTERS=250 | |
MACHINES=5 | |
echo "About to build a configuration for $CLUSTERS deployed clusters with $MACHINES each and written to the file $1" | |
sleep 5 | |
for i in $( seq $CLUSTERS ); do |
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
# Details for building the repository | |
PROVIDER=cluster-api-provider-plunder | |
mkdir $PROVIDER | |
cd $PROVIDER | |
echo Create the initial repository for $PROVIDER | |
git init | |
echo Initialise a basic layout | |
GO111MODULE=on /usr/local/kubebuilder/bin/kubebuilder init --domain cluster.x-k8s.io --license apache2 --owner "The Kubernetes Authors" |
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
#!/bin/bash | |
echo "Beggining build of offline Kubernetes packages" | |
echo "Adding Kubernetes repository for image pull" | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb https://apt.kubernetes.io/ kubernetes-xenial main | |
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
BITS 32 | |
org 0x05000000 | |
db 0x7F, "ELF" | |
dd 1 | |
dd 0 | |
dd $$ | |
dw 2 | |
dw 3 | |
dd 0x0500001B |