Skip to content

Instantly share code, notes, and snippets.

View CalvinHartwell's full-sized avatar
💭
Delivering Kubernetes!

Calvin Hartwell CalvinHartwell

💭
Delivering Kubernetes!
View GitHub Profile
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
constraints: cores=8 mem=16G
machines:
0:
1:
2:
3:
4:
5:
time="2018-05-16T11:47:30Z" level=warning msg="Error unmarshaling response body. xml: name \"volume-key\" in tag of azgo.VolumeModifyIterInfoType.VolumeKeyPtr conflicts with name \"volume-attributes\" in *azgo.VolumeAttributesType.XMLName" body="<?xml version='1.0' encoding='UTF-8' ?>\n<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_gx.dtd'>\n<netapp version='1.130' xmlns='http://www.netapp.com/filer/admin'>\n<results status=\"passed\"><success-list><volume-modify-iter-info><volume-key><volume-attributes><volume-id-attributes><name>cats_kittens_lions_tigers_e100c</name><owning-vserver-name>unckc</owning-vserver-name></volume-id-attributes></volume-attributes></volume-key></volume-modify-iter-info></success-list><failure-list></failure-list><num-failed>0</num-failed><num-succeeded>1</num-succeeded></results></netapp>
@CalvinHartwell
CalvinHartwell / nexus.yaml
Last active May 22, 2018 20:42
sonatype-nexus-k8s
# If you don't have a default storage class setup, you should remove this but it is recommended.
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
trident.netapp.io/reclaimPolicy: Retain
name: nexus-pvc
labels:
app: nexus
@CalvinHartwell
CalvinHartwell / manual-bootstrap-deploy.sh
Last active June 1, 2018 11:14
manual-bootstrap-deploy.sh
# pre-reqs
# apt-get install snapd
# snap install juju --classic
#. ~/.profile
# Pre-provision hosts and give them IP addresses and forward/reverse DNS entries.
# Copy the public SSH key used by user running Juju around to all of the machines in the cluster.
# boot strap controller machines
juju bootstrap manual/192.168.1.1
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
machines:
0:
1:
2:
3:
4:
5:
6:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
@CalvinHartwell
CalvinHartwell / cdk-rancher2-rbac-ingress.yaml
Last active June 27, 2018 22:13
Canonical Kubernetes Rancher 2.0 with RBAC, CANAL and Ingress Rule
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
@CalvinHartwell
CalvinHartwell / canonical-kubernetes-offline-install.sh
Last active August 1, 2018 16:41
canonical-kubernetes-offline-install.sh
#!/usr/bin/env bash
echo "Installing Missing Packages"
sudo apt update && sudo apt install -y simplestreams apache2 apt-mirror git docker.io python3-pip unzip
sudo pip3 install pyyaml
sudo pip3 install pyaml
sudo snap install kubectl --classic
sudo apt-get install juju -y
echo "Writing Config Files"
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
calico:
annotations:
gui-x: '450'
gui-y: '750'
charm: cs:~containers/calico-47
options:
calico-policy-image: "quay.io/calico/kube-controllers:v1.0.4"
apiVersion: v1
kind: Namespace
metadata:
name: rancher
labels:
name: rancher
---
kind: ServiceAccount
apiVersion: v1
metadata: