Skip to content

Commit

Permalink
Convert limitrange example to v1beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
dchen1107 committed Mar 6, 2015
1 parent 34a39d9 commit a934efe
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/kubernetes-namespaces/v1beta3/namespace-dev.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"kind": "Namespace",
"apiVersion":"v1beta3",
"name": "development",
"kind": "Namespace",
"metadata": {
"name": "development",
},
"spec": {},
"labels": {
"name": "development"
Expand Down
6 changes: 4 additions & 2 deletions examples/kubernetes-namespaces/v1beta3/namespace-prod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"kind": "Namespace",
"apiVersion":"v1beta3",
"name": "production",
"kind": "Namespace",
"metadata": {
"name": "production",
},
"spec": {},
"labels": {
"name": "production"
Expand Down
16 changes: 16 additions & 0 deletions examples/limitrange/v1beta3/invalid-pod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"apiVersion":"v1beta3",
"kind": "Pod",
"metadata": {
"name": "invalid-pod",
},
"labels": {
"name": "invalid-pod"
},
"spec": {
"containers": [{
"name": "kubernetes-serve-hostname",
"image": "kubernetes/serve_hostname",
}]
}
}
33 changes: 33 additions & 0 deletions examples/limitrange/v1beta3/limit-range.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"apiVersion": "v1beta3",
"kind": "LimitRange",
"metadata": {
"name": "limits",
},
"spec": {
"limits": [
{
"type": "Pod",
"max": {
"memory": "1Gi",
"cpu": "2",
},
"min": {
"memory": "1Mi",
"cpu": "250m"
}
},
{
"type": "Container",
"max": {
"memory": "1Gi",
"cpu": "2",
},
"min": {
"memory": "1Mi",
"cpu": "250m"
}
},
],
}
}
22 changes: 22 additions & 0 deletions examples/limitrange/v1beta3/valid-pod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"apiVersion":"v1beta3",
"kind": "Pod",
"metadata": {
"name": "valid-pod",
},
"labels": {
"name": "valid-pod"
},
"spec": {
"containers": [{
"name": "kubernetes-serve-hostname",
"image": "kubernetes/serve_hostname",
"resources": {
"limits": {
"cpu": "1",
"memory": "1Mi",
},
},
}]
},
}

0 comments on commit a934efe

Please sign in to comment.