Below is a sample architecture, no workers for this example :-)
- VIP 192.168.0.40
- K8S01 192.168.0.41
- K8S02 192.168.0.42
- DB01 192.168.0.43
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"strconv" | |
"strings" |
# 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 |
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 \ |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: local-volume-1 | |
labels: | |
type: local | |
spec: | |
capacity: | |
storage: 10Gi | |
accessModes: |
#!/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 |
#!/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 |
# 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" |
#!/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 |
{ | |
"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", |