Skip to content

Instantly share code, notes, and snippets.

@elsonrodriguez
elsonrodriguez / README.md
Last active November 29, 2016 06:55
Quick and Dirty Single Node Kubernetes

Quick and Dirty Single Node Kubernetes Setup.

Preq-reqs:

  • You need a node
  • Your node's OS should be Linux
  • It should be a good Linux distro (Ubuntu 15.10)
  • Not a bad one
  • It should have Docker running
  • It should be disposable
  • It shouldn't have been previously traumatized

Intro

This is the formula for terminating k8s nodes that have a bad kubelet. This effectively fences nodes that are unable to unmount/detach their own storage.

Caveats

Early testing shows that this may not work if a node is rebooted in response to a kubelet/system issue. Therefore the action taken in response to a problem on a kubernetes node MUST BE to terminate it.

Overview

Make LB like this:

 "HealthCheck": {
@elsonrodriguez
elsonrodriguez / AWS Comformance Tests
Created April 23, 2016 02:40
Quick test for openstack PR
Summarizing 16 Failures:
[Fail] [k8s.io] EmptyDir volumes [It] should support (non-root,0777,default) [Conformance]
/Users/eorodrig/oss/kubernetes-elsonrodriguez/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:1617
[Fail] [k8s.io] EmptyDir volumes [It] should support (root,0644,tmpfs) [Conformance]
/Users/eorodrig/oss/kubernetes-elsonrodriguez/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:1617
[Fail] [k8s.io] EmptyDir volumes [It] volume on default medium should have the correct mode [Conformance]
/Users/eorodrig/oss/kubernetes-elsonrodriguez/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:1617
@elsonrodriguez
elsonrodriguez / README.md
Last active May 9, 2016 20:04
A simple course to teach Kubernetes basics. Work in Progress!

Course Prerequisites

  • Local (No VM) terminal with working bash and curl (for Windows users, gitbash or cygwin can accomplish this).
  • Windows, Linux, OSX
  • Slack

Installing kubectl, the Kubernetes client

First create directories for this class:

@elsonrodriguez
elsonrodriguez / Amazon Results
Last active April 28, 2016 02:17
More test results.
Summarizing 20 Failures:
[Fail] [k8s.io] ConfigMap [It] should be consumable from pods in volume as non-root [Conformance]
/Users/elsonrodriguez/oss/kubernetes-elsonrodriguez/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:1620
[Fail] [k8s.io] EmptyDir volumes [It] should support (non-root,0777,default) [Conformance]
/Users/elsonrodriguez/oss/kubernetes-elsonrodriguez/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:1620
[Fail] [k8s.io] EmptyDir volumes [It] should support (root,0644,tmpfs) [Conformance]
/Users/elsonrodriguez/oss/kubernetes-elsonrodriguez/_output/local/go/src/k8s.io/kubernetes/test/e2e/framework/util.go:1620
@elsonrodriguez
elsonrodriguez / manifest.json
Last active May 11, 2016 16:50
pachyderm notes
{
"metadata": {
"name": "pachyderm",
"creationTimestamp": null,
"labels": {
"app": "",
"suite": "pachyderm"
}
},
"secrets": null,
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
labels:
app: ceph
daemon: mon
name: ceph-mon
namespace: ceph
spec:
@elsonrodriguez
elsonrodriguez / mongo-ps.yaml
Created June 13, 2016 16:10
Smoke test for automatic PVCs and PetSets
apiVersion: apps/v1alpha1
kind: PetSet
metadata:
labels:
name: mongo
name: mongo
spec:
replicas: 1
serviceName: mongo
volumeClaimTemplates:
@elsonrodriguez
elsonrodriguez / docker-network.conf
Created July 15, 2016 18:56
Static routes And pods for docker/k8s
##This grabs what should be the only interface's ip address.
#set ip_suffix = $interfaces.itervalues().next()['ip_address'].split(".",2)[2]
[Service]
ExecStart=
ExecStart=/usr/bin/docker daemon -H fd:// --bip=10.$ip_suffix.1/24 --storage-driver=overlay