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
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
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:
@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
@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
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>
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:
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
canal:
annotations:
gui-x: '450'
gui-y: '750'
charm: cs:~containers/canal-30
ceph-mon:
annotations:
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:
root@FROVHJUJUDEV-N01:~/monitoring# juju config prometheus scrape-jobs
|-
- job_name: 'k8s-api-endpoints'
kubernetes_sd_configs:
- api_server: 51.255.79.77
role: endpoints
tls_config:
insecure_skip_verify: true
basic_auth:
username: admin
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: