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
{ | |
"deployments": [ | |
{ | |
"name": "Upload Docker Packages", | |
"parallel": false, | |
"sessions": 0, | |
"hosts": [ | |
"192.168.1.3", | |
"192.168.1.4", | |
"192.168.1.5" |
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
{ | |
"deployments": [ | |
{ | |
"name": "Configure host OS for kubernetes nodes", | |
"parallel": true, | |
"sessions": 0, | |
"hosts": [ | |
"192.168.1.3", | |
"192.168.1.4", | |
"192.168.1.5", |
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 "This script will generate the requires certificates for harbour" | |
if [ -z "$1" ] | |
then | |
echo "No hostname or IP address specified for certificate" | |
exit 1 | |
fi |
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
#!/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
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
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
# Create Tinkerbell bridge | |
sudo ip link add tinkerbell type bridge | |
# | |
# Assign Address to bridge | |
sudo ip addr add 192.168.1.1/24 dev tinkerbell | |
# Create tap | |
sudo ip tuntap add dev tinkGuest mode tap user $USER | |
# | |
# Add to bridge |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"strconv" | |
"strings" |