Skip to content

Instantly share code, notes, and snippets.

View joejulian's full-sized avatar
🕶️
working without pants.

Joe Julian joejulian

🕶️
working without pants.
View GitHub Profile
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: flannel
namespace: kube-system
---
kind: ConfigMap
apiVersion: v1
metadata:
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
OUTPUT_DIR=out
mkdir -p ${OUTPUT_DIR}
BOOTSTRAP_DIR=bootstrap_scripts
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{"kubernetes.io/ingress.class":"traefik"},"labels":{"app":"production","build_id":"73712092","pipeline_id":"23524955"},"name":"production","namespace":"blog"},"spec":{"rules":[{"host":"joejulian.name","http":{"paths":[{"backend":{"serviceName":"production","servicePort":5000},"path":"/"}]}}],"tls":[{"hosts":["joejulian.name"],"secretName":"production-tls"}]}}
kubernetes.io/ingress.class: traefik
creationTimestamp: 2018-01-26T04:56:43Z
generation: 1
labels:
@joejulian
joejulian / clusterapi.yaml
Created August 14, 2018 22:34
Install cluster-api controller
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: etcd
name: etcd-clusterapi
spec:
podManagementPolicy: OrderedReady
replicas: 1
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: gluster.kube
namespace: kube-system
annotations:
storageclass.kubernetes.io/is-default-class: 'true'
provisioner: kubernetes.io/host-path
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: clusterapi-controllers
labels:
api: clusterapi
spec:
replicas: 1
template:
@joejulian
joejulian / target_blank.js
Created December 6, 2018 21:26
Make Jira open links in a new tab.
// ==UserScript==
// @name Jira Links in new tab
// @description Target _blank
// @match https://jira.mesosphere.com/*
// @grant none
// @version 1.0.1
// ==/UserScript==
function init() {
$("a")
// ==UserScript==
// @name Jira Links in new tab
// @description Target _blank
// @match https://jira.mesosphere.com/*
// @grant none
// @version 1.0.1
// ==/UserScript==
function init() {
$("a")
# Specify the provider and access details
provider "aws" {
region = "${var.aws_region}"
}
data "aws_ami" "centos" {
owners = ["679593333241"]
most_recent = true
filter {
name = "name"
@joejulian
joejulian / markdown.md
Created June 13, 2019 17:12
ordered list with code blocks

Ordered List with Code Blocks

This is an example of how to do ordered lists with code blocks and example of how not to do ordered lists with code blocks.

Correct Example

  1. This is an ordered list's first element.
  2. This is the second element and, despite starting with a 1, will be numbered 2.