Add kind and apiVersion to guestbook example.

This commit is contained in:
Brendan Burns 2014-07-23 22:32:07 -07:00
parent bf5ae4bb9d
commit 3723eb7629
14 changed files with 28 additions and 1 deletions

View File

@ -91,6 +91,8 @@ Where pod.json contains something like:
```
{
"id": "php",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",

View File

@ -1,4 +1,6 @@
{
"kind": "ReplicationControllerList",
"apiVersion": "v1beta1",
"items": [
{
"id": "testRun",
@ -30,4 +32,4 @@
}
}
]
}
}

View File

@ -1,6 +1,7 @@
{
"id": "nginxController",
"apiVersion": "v1beta1",
"kind": "ReplicationController",
"desiredState": {
"replicas": 2,
"replicaSelector": {"name": "nginx"},

View File

@ -1,5 +1,7 @@
{
"id": "example",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 8000,
"labels": {
"name": "nginx"

View File

@ -1,4 +1,6 @@
{
"kind": "PodList",
"apiVersion": "v1beta1",
"items": [
{
"id": "my-pod-1",

View File

@ -1,4 +1,6 @@
{
"kind": "Pod",
"apiVersion": "v1beta1",
"id": "php",
"desiredState": {
"manifest": {

View File

@ -1,4 +1,6 @@
{
"kind": "ServiceList",
"apiVersion": "v1beta1",
"items": [
{
"id": "example1",

View File

@ -1,4 +1,6 @@
{
"kind": "Service",
"apiVersion": "v1beta1",
"id": "example",
"port": 8000,
"labels": {

View File

@ -1,5 +1,7 @@
{
"id": "frontendController",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 3,
"replicaSelector": {"name": "frontend"},

View File

@ -1,5 +1,7 @@
{
"id": "frontend",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 9998,
"selector": {
"name": "frontend"

View File

@ -1,5 +1,7 @@
{
"id": "redismaster",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 10000,
"selector": {
"name": "redis-master"

View File

@ -1,5 +1,7 @@
{
"id": "redis-master-2",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",

View File

@ -1,5 +1,7 @@
{
"id": "redisSlaveController",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 2,
"replicaSelector": {"name": "redisslave"},

View File

@ -1,5 +1,7 @@
{
"id": "redisslave",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 10001,
"labels": {
"name": "redisslave"