Skip to content

Instantly share code, notes, and snippets.

🤘
Working on some bare metal

Daniel Finneran thebsdbox

🤘
Working on some bare metal
Block or report user

Report or block thebsdbox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View k8s_offline.sh
#!/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
View build cluster api plunder steps.txt
# 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"
@thebsdbox
thebsdbox / harbor_certs.sh
Last active May 2, 2019
This is a quick script that will generate certificates for harbor and SSL
View harbor_certs.sh
#!/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
@thebsdbox
thebsdbox / kube_map.json
Last active Feb 13, 2019
Example deployment map for plunder
View kube_map.json
{
"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",
View map.json
{
"deployments": [
{
"name": "Upload Docker Packages",
"parallel": false,
"sessions": 0,
"hosts": [
"192.168.1.3",
"192.168.1.4",
"192.168.1.5"
@thebsdbox
thebsdbox / wipe.sh
Created Dec 2, 2018
This will pivot to a copied tmpfs wipe the underlying disk and force a reboot
View wipe.sh
#!/bin/bash
echo Unmounting any filesystem not needed
umount -a
echo Beginning building of tmp root
mkdir /tmp/tmproot
mount -t tmpfs none /tmp/tmproot
mkdir /tmp/tmproot/{proc,sys,dev,run,usr,var,tmp,oldroot}
cp -ax /{bin,etc,mnt,sbin,lib64} /tmp/tmproot/
mkdir /tmp/tmproot/lib
View kubecluster
{
"label":"Kubernets-cluster-on-CentOS",
"version":"0.1",
"vmconfig" : {
"vcenterURL" :"https://u:p@vc.url",
"datacentre" : "",
"datastore":"",
"network" : "",
"host" : "esxi0xxxxx",
"guestCredentials" : {
@thebsdbox
thebsdbox / Inline_Upgrade.md
Last active Jun 19, 2018
Docker EE Inline upgrade procedure
View Inline_Upgrade.md

Docker EE Inline upgrade procedure

This is a guide that details the steps to have in place a duplicate environment to upgrade to, and requires an existing UCP/DTR cluster.

Prerequisites

Ensure that new nodes are all confiured with identical firewall rules and that all of the relevant swarm joins are performed.

  • Create a backup from existing UCP Cluster (UCP Will stop during the backup)

Ensure you use the correct tag to see what is running, check in docker images

View keybase.md

Keybase proof

I hereby claim:

  • I am thebsdbox on github.
  • I am thebsdbox (https://keybase.io/thebsdbox) on keybase.
  • I have a public key ASDRPB3GqyjIx1cYkNOI1WwKU9_GoQUM1RBakKkT4Z8BBAo

To claim this, I am signing this object:

View gist:d20801fdac8d8adf5bc6e6e2585a7f07
package main
import (
"encoding/xml"
"fmt"
)
// Envelope : is the parent XML and holds all information about a VM
type Envelope struct {
XMLName xml.Name `xml:"Envelope"`
You can’t perform that action at this time.