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
@CalvinHartwell
CalvinHartwell / cdk-logging-monitoring-flannel.yaml
Created October 9, 2018 02:49
cdk-logging-monitoring-flannel.yaml
series: xenial
description: A Canonical Kubernetes cluster including the monitoring stack.
services:
easyrsa:
annotations:
gui-x: '450'
gui-y: '550'
charm: cs:~containers/easyrsa
num_units: 1
to:
@CalvinHartwell
CalvinHartwell / cdk-ceph-monitoring-aws.yaml
Last active October 2, 2018 02:50
cdk-ceph-monitoring-aws
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
ceph-mon:
annotations:
gui-x: '600'
gui-y: '300'
charm: cs:ceph-mon
num_units: 3
to:
@CalvinHartwell
CalvinHartwell / cdk-working-monitoring-stack.yaml
Created September 28, 2018 18:21
cdk-working-monitoring-stack.yaml
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
ceph-mon:
annotations:
gui-x: '600'
gui-y: '300'
charm: cs:ceph-mon
num_units: 3
to:
@CalvinHartwell
CalvinHartwell / cdk-broken-monitoring-stack.yaml
Last active September 28, 2018 18:22
cdk-broken-monitoring-stack.yaml
series: xenial
description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes.
services:
easyrsa:
annotations:
gui-x: '450'
gui-y: '550'
charm: cs:~containers/easyrsa
num_units: 1
to:
@CalvinHartwell
CalvinHartwell / cdk-openstack-integrator.yaml
Last active September 24, 2018 13:33
cdk-openstack-integrator.yaml
series: xenial
description: A highly-available, production-grade Kubernetes cluster.
services:
easyrsa:
annotations:
gui-x: '450'
gui-y: '550'
charm: cs:~containers/easyrsa-68
constraints: root-disk=8G cores=1 mem=2G
num_units: 1
@CalvinHartwell
CalvinHartwell / easyrsa-lxd.yaml
Created September 21, 2018 15:44
easyrsa-lxd.yaml
> odel Controller Cloud/Region Version SLA Timestamp
> bionic aws-eu-west-2 aws/eu-west-2 2.4.3 unsupported 15:03:44+01:00
>
> App Version Status Scale Charm Store Rev OS Notes
> apache2 unknown 1 apache2 jujucharms 26 ubuntu exposed
> aws-integrator 1.15.71 active 1 aws-integrator jujucharms 5 ubuntu
> canal 0.10.0/2.6.10 blocked 5 canal jujucharms 67 ubuntu
> ceph-mon 12.2.4 active 3 ceph-mon jujucharms 27 ubuntu
> ceph-osd 12.2.4 blocked 3 ceph-osd jujucharms 270 ubuntu
> easyrsa error 1 easyrsa jujucharms 68 ubuntu
@CalvinHartwell
CalvinHartwell / nolxd.yaml
Created September 21, 2018 15:43
nolxd.yaml
odel Controller Cloud/Region Version SLA Timestamp
bionic aws-eu-west-2 aws/eu-west-2 2.4.3 unsupported 15:36:11+01:00
App Version Status Scale Charm Store Rev OS Notes
apache2 unknown 1 apache2 jujucharms 26 ubuntu exposed
aws-integrator 1.15.71 active 1 aws-integrator jujucharms 5 ubuntu
canal 0.10.0/2.6.10 maintenance 5 canal jujucharms 67 ubuntu
ceph-mon 12.2.4 active 3 ceph-mon jujucharms 27 ubuntu
ceph-osd 12.2.4 blocked 3 ceph-osd jujucharms 270 ubuntu
easyrsa 3.0.1 active 1 easyrsa jujucharms 68 ubuntu
@CalvinHartwell
CalvinHartwell / deploy-offline-cdk-with-lxd.sh
Created September 17, 2018 11:22 — forked from yoshikado/deploy-offline-cdk-with-lxd.sh
canonical kubernetes offline deployment
#!/usr/bin/env bash
set -e
set -u
## Variables
set_vars(){
APT_MIRROR_HOST="mirror"
LXDKVM_SSTREAM_HOST="mirror"
JUJU_SSTREAM_HOST="mirror"
@CalvinHartwell
CalvinHartwell / ceph-relationships
Created September 17, 2018 10:38
ceph-relationships
- - 'ceph-mon:osd'
- 'ceph-osd:mon'
- - 'kubernetes-master:ceph-storage'
- 'ceph-mon:admin'
@CalvinHartwell
CalvinHartwell / ceph-install-steps.yaml
Last active September 17, 2018 08:02
ceph-install-steps.yaml
First in kubernetes, check that we have the secret setup for Ceph:
calvin@calvinh-ws:~/Source/canonical-kubernetes-demos/cdk-ceph$ kubectl get secrets
NAME TYPE DATA AGE
ceph-secret kubernetes.io/rbd 1 14m
If this secret does not exist, I can give the steps to create it. Note that this secret needs to be created for every namespace in the cluster you want to use with the Ceph storage. It contains the API key which is used by k8s to interact with Ceph.
It is explained here, however: https://github.com/CanonicalLtd/canonical-kubernetes-demos/tree/master/cdk-ceph