Skip to content

Instantly share code, notes, and snippets.

View garethahealy's full-sized avatar

Gareth Healy garethahealy

View GitHub Profile
@garethahealy
garethahealy / notterminating-quota.yaml
Last active December 14, 2016 14:07
ResourceQuota-NotTerminating-And-NotBestEffort
apiVersion: v1
kind: ResourceQuota
metadata:
name: notterminating-and-notbesteffort-pod-quota
annotations:
instance-type: "small"
applicable-strategy: "per-project-group"
creation-strategy: "per-project"
limits-calculation: "80% of instance-type total, or node total if instance-type > node"
static-content: "false"
@garethahealy
garethahealy / gist:6f8c2f06504fb45369eb67fc239b3dd0
Last active December 13, 2016 11:58
ResourceQuota-ObjectCounts-ProjectLevel
apiVersion: v1
kind: ResourceQuota
metadata:
name: project-object-counts-quota
annotations:
creation-strategy: "per-project"
spec:
hard:
persistentvolumeclaims: 2
@garethahealy
garethahealy / terminating-quota.yaml
Last active December 14, 2016 14:07
ResourceQuota-Terminating
apiVersion: v1
kind: ResourceQuota
metadata:
name: terminating-pod-quota
annotations:
instance-type: "small"
applicable-strategy: "per-project-group"
creation-strategy: "per-project"
limits-calculation: "30% of instance-type total, or node total if instance-type > node"
static-content: "false"
@garethahealy
garethahealy / besteffort-limits.yaml
Last active January 6, 2017 10:53
LimitRange-BestEffortResourceLimits
apiVersion: v1
kind: LimitRange
metadata:
name: besteffort-resource-limits
annotations:
applicable-strategy: "cluster-wide"
creation-strategy: "per-project"
static-content: "true"
spec:
limits:
@garethahealy
garethahealy / maximage-limits.yaml
Last active December 14, 2016 14:06
LimitRange-MaxImageCounts
apiVersion: v1
kind: LimitRange
metadata:
name: max-image-counts
annotations:
instance-type: "all"
applicable-strategy: "cluster-wide"
creation-strategy: "per-project"
static-content: "true"
spec:
@garethahealy
garethahealy / besteffort-quota.yaml
Last active December 14, 2016 14:08
ResourceQuota-BestEffort
apiVersion: v1
kind: ResourceQuota
metadata:
name: besteffort-pod-quota
annotations:
applicable-strategy: "per-project-group"
creation-strategy: "per-project"
static-content: "true"
spec:
hard:
@garethahealy
garethahealy / gist:9cd764e9a62051c7e48d6ed68e5cadfb
Last active December 13, 2016 16:36
ResourceQuota-NotBestEffort
apiVersion: v1
kind: ResourceQuota
metadata:
name: notbesteffort-pod-quota
annotations:
applicable-strategy: "per-project-group"
creation-strategy: "per-project"
spec:
hard:
pods: 4
@garethahealy
garethahealy / burstable-limits.yaml
Last active December 14, 2016 15:29
LimitRange-BurstableResourceLimits
apiVersion: v1
kind: LimitRange
metadata:
name: burstable-resource-limits
annotations:
instance-type: "small"
applicable-strategy: "cluster-wide"
creation-strategy: "per-project"
limits-calculation: "80% of instance-type total, or node total if instance-type > node"
static-content: "false"
@garethahealy
garethahealy / create-prometheus_test.json
Created December 29, 2016 12:31
create-prometheus_test
{
"id" : "prometheus_test",
"tags" : {
"pod_namespace" : "etcd-testing",
"container_name" : "ectdnode1"
},
"type" : "counter",
"tenantId" : "unit-testing"
}
@garethahealy
garethahealy / create-datapoints.json
Created December 29, 2016 12:33
create-datapoints
[
{
"timestamp": 1482999784249,
"value": 2,
"tags": {
"method": "PUT"
}
},
{
"timestamp": 1482999814249,