Skip to content

Instantly share code, notes, and snippets.

Jay jay-johnson

Block or report user

Report or block jay-johnson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@steebchen
steebchen / 1-install-ceph-helm.sh
Last active Feb 24, 2019
Set up ceph with kubernetes
View 1-install-ceph-helm.sh
# Requirements: an existing and running k8s cluster
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
helm init
# taken from http://docs.ceph.com/docs/master/start/kube-helm/
helm serve &
# wait for helm serve to be ready
@jbcurtin
jbcurtin / nhuntwalker-asyncio.py
Last active Jun 15, 2019
A #microtutorial to show how to use asyncio and some other stdlib-tools, https://pugetsoundpython.slack.com/archives/C03LJKBPJ/p1530204386000485
View nhuntwalker-asyncio.py
#!/usr/bin/env python
'''
A #microtutorial to show how to use asyncio and some other stdlib-tools,
https://pugetsoundpython.slack.com/archives/C03LJKBPJ/p1530204386000485
Invoke with,
`python nhuntwalker-asyncio.py -m on`
`python nhuntwalker-asyncio.py -m awe`
`python nhuntwalker-asyncio.py`
@jnaulty
jnaulty / virt-install-centos
Created Mar 18, 2018 — forked from giovtorres/virt-install-centos
Install CentOS cloud images on KVM using cloud-init
View virt-install-centos
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.**
## **This updated version has more options and less hardcoded variables.**
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
@fjammes
fjammes / 10-kubeadm.conf
Last active Mar 13, 2019
Set up a kubernetes 1.9.1 cluster on Centos7
View 10-kubeadm.conf
# Comment line 9 in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true"
Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin"
Environment="KUBELET_DNS_ARGS=--cluster-dns=10.96.0.10 --cluster-domain=cluster.local"
Environment="KUBELET_AUTHZ_ARGS=--authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt"
Environment="KUBELET_CADVISOR_ARGS=--cadvisor-port=0"
# Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd"
Environment="KUBELET_CERTIFICATE_ARGS=--rotate-certificates=true --cert-dir=/var/lib/kubelet/pki"
@edsiper
edsiper / kubernetes_commands.md
Last active Sep 17, 2019
Kubernetes Useful Commands
View kubernetes_commands.md
View await.py
from IPython.core.magic import Magics, magics_class, line_magic
import asyncio
from concurrent.futures import Future
# Credits goes to https://gist.github.com/chrisseto/8f7289497f40ad442a30#gistcomment-1701177
@magics_class
class AsyncMagics(Magics):
@line_magic
def await(self, line):
@jmvrbanac
jmvrbanac / gunicorn_options.yml
Last active Dec 9, 2018
Capture Client Certificate CN from Gunicorn
View gunicorn_options.yml
bind: 0.0.0.0:8000
workers: 1
worker_class: "example.worker:CustomWorker"
timeout: 30
ca_certs: ca.crt
certfile: server.crt
keyfile: server.key
cert_reqs: 2
do_handshake_on_connect: true
@andrewstuart
andrewstuart / .gitlab-ci.yml
Last active May 19, 2019
One Deployment Per branch, plus CI CD, gitlab and helm setup
View .gitlab-ci.yml
image: docker.mydomain.com/build/kube-go-make
variables:
DOCKER_TAG: docker.mydomain.com/myapp/home:$CI_COMMIT_REF_SLUG
DOCKER_HOST: tcp://localhost:2375
DOCKER_DRIVER: overlay
PROD_RSYNC_HOST: myprodserver.com
DOMAIN: mydomain.com
CHART_DIR: chart
View kubeadm.md

Deploy a Kubernetes cluster and Microservices Application

image

What Problem are we solving

What is Kubernetes?

Agenda

  • Deploy a Kubernetes cluster on Digital Ocean using kubeadm
@carlessanagustin
carlessanagustin / kubernetes.md
Created Mar 15, 2017
Kubernetes tutorial steps
View kubernetes.md

1. Create cluster

Cluster up and running

minikube version
minikube start
kubectl version
You can’t perform that action at this time.