Skip to content

Instantly share code, notes, and snippets.

View rsanders's full-sized avatar

Robert Sanders rsanders

View GitHub Profile
@rsanders
rsanders / 0_reuse_code.js
Created April 10, 2016 19:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rsanders
rsanders / es_pri_allocate_unassigned.md
Created December 14, 2017 20:35 — forked from ianblenke/es_pri_allocate_unassigned.md
elasticsearch trying to allocate a primary shard which is disabled

Allow routing allocations:

curl -XPUT localhost:9200/_cluster/settings -d '{
                "transient" : {
                    "cluster.routing.allocation.enable" : "all"
                }
        }'
@rsanders
rsanders / restricted-psp.yaml
Created February 16, 2018 01:28 — forked from tallclair/restricted-psp.yaml
Restricted PodSecurityPolicy
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: restricted
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: 'docker/default'
apparmor.security.beta.kubernetes.io/allowedProfileNames: 'runtime/default'
seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
spec: