Skip to content

Instantly share code, notes, and snippets.

View marcoceppi's full-sized avatar
.

Marco Ceppi marcoceppi

.
View GitHub Profile
NAMESPACE NAME READY STATUS RESTARTS AGE
default po/silph-grid-2254378697-6w8f1 1/1 Running 0 1d
default po/silph-grid-2254378697-7f7sh 1/1 Running 0 1d
default po/silph-grid-2254378697-fnqgg 1/1 Running 0 1d
kube-system po/heapster-v1.3.0-3673949979-9r52f 4/4 Running 0 1d
kube-system po/kube-dns-806549836-846c1 3/3 Running 0 1d
kube-system po/kubernetes-dashboard-2917854236-wz94d 1/1 Running 0 1d
kube-system po/monitoring-influxdb-grafana-v4-7l518 2/2 Running 0 1d
kube-system po/traefik-ingress-controller-1394173408-2b4ln 1/1 Running 0 1d
apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-controller
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 1
FROM klokantech/tileserver-gl:latest
RUN rm -rf /usr/src/app/node_modules/tileserver-gl-styles/styles/{osm-bright,klokantech-basic}
COPY /overides/ /usr/src/app/
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: silph-tiles
name: silph-tiles
spec:
replicas: 10
selector:
<?=str_replace('{{url}}', $this->Html->url(array('controller'=>'users', 'action'=>'authenticate')), __d('atlas', '<a href="{{url}}">Join the Road</a> and help verify your local Nests! The Global Nest Atlas is a collection of field reports from Silph Road travelers.'))?>
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kubedash-ingress
namespace: kube-system
spec:
rules:
- host: kubernetes.10.241.1.222.xip.io
http:
paths:
@marcoceppi
marcoceppi / deploy.md
Last active June 1, 2017 22:07
Mult-node manual deployment

Overture

This is a means to get a cluster running on a handful of machines. It's a very bespoke way to craft a deployment and trades a lot of automation features for the ability to deploy kubernetes /literally/ anywhere Ubuntu is running. As this is a manual deployment, we can't directly use conjure-up. We'll have to dip down into the lower level tooling and use Juju directly.

Prerequisites

You will need at least three VMs running Ubuntu 16.04. The size of the VM is up to you but 2 vcpu 4 gb

name: k8s
config:
boot.autostart: "true"
linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay
raw.lxc: |
lxc.aa_profile=unconfined
lxc.mount.auto=proc:rw sys:rw
security.nesting: "true"
security.privileged: "true"
description: ""
<?php
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => '{{ database.host() }}',
'login' => '{{ database.user() }}',
'password' => '{{ database.password() }}',
'database' => '{{ database.database() }}',
import os
import tarfile
from charmhelpers.core.hookenv import (
config,
status_set,
open_port,
)
from charms.reactive import (