Skip to content

Commit

Permalink
format all json files
Browse files Browse the repository at this point in the history
  • Loading branch information
sub-mod committed Feb 23, 2015
1 parent 62cb5b8 commit 7d00c45
Show file tree
Hide file tree
Showing 12 changed files with 320 additions and 319 deletions.
70 changes: 35 additions & 35 deletions examples/guestbook-go/v1beta3/guestbook-controller.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"kind": "ReplicationController",
"apiVersion": "v1beta3",
"metadata": {
"name": "guestbook",
"labels": {
"name": "guestbook"
}
},
"spec": {
"replicas": 3,
"selector": {
"name": "guestbook"
},
"template": {
"metadata": {
"labels": {
"name": "guestbook"
}
},
"spec": {
"containers": [
{
"image": "kubernetes/guestbook",
"name": "guestbook",
"ports": [
{
"name": "http-server",
"containerPort": 3000,
"protocol": "TCP"
}
]
}
]
"kind":"ReplicationController",
"apiVersion":"v1beta3",
"metadata":{
"name":"guestbook",
"labels":{
"name":"guestbook"
}
},
"spec":{
"replicas":3,
"selector":{
"name":"guestbook"
},
"template":{
"metadata":{
"labels":{
"name":"guestbook"
}
}
}
},
"spec":{
"containers":[
{
"image":"kubernetes/guestbook",
"name":"guestbook",
"ports":[
{
"name":"http-server",
"containerPort":3000,
"protocol":"TCP"
}
]
}
]
}
}
}
}
32 changes: 16 additions & 16 deletions examples/guestbook-go/v1beta3/guestbook-service.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"kind": "Service",
"apiVersion": "v1beta3",
"metadata": {
"name": "guestbook",
"labels": {
"name": "guestbook"
}
},
"spec": {
"port": 3000,
"containerPort": "http-server",
"protocol": "TCP",
"selector": {
"name": "guestbook"
}
}
"kind":"Service",
"apiVersion":"v1beta3",
"metadata":{
"name":"guestbook",
"labels":{
"name":"guestbook"
}
},
"spec":{
"port":3000,
"containerPort":"http-server",
"protocol":"TCP",
"selector":{
"name":"guestbook"
}
}
}
78 changes: 39 additions & 39 deletions examples/guestbook-go/v1beta3/redis-master-controller.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"kind": "ReplicationController",
"apiVersion": "v1beta3",
"id": "redis-master",
"metadata": {
"name": "redis-master",
"labels": {
"name": "redis",
"role": "master"
}
},
"spec": {
"replicas": 1,
"selector": {
"name": "redis",
"role": "master"
},
"template": {
"metadata": {
"labels": {
"name": "redis",
"role": "master"
}
},
"spec": {
"containers": [
{
"name": "redis-master",
"image": "gurpartap/redis",
"ports": [
{
"name": "redis-server",
"containerPort": 6379,
"protocol": "TCP"
}
]
}
]
"kind":"ReplicationController",
"apiVersion":"v1beta3",
"id":"redis-master",
"metadata":{
"name":"redis-master",
"labels":{
"name":"redis",
"role":"master"
}
},
"spec":{
"replicas":1,
"selector":{
"name":"redis",
"role":"master"
},
"template":{
"metadata":{
"labels":{
"name":"redis",
"role":"master"
}
}
}
},
"spec":{
"containers":[
{
"name":"redis-master",
"image":"gurpartap/redis",
"ports":[
{
"name":"redis-server",
"containerPort":6379,
"protocol":"TCP"
}
]
}
]
}
}
}
}
36 changes: 18 additions & 18 deletions examples/guestbook-go/v1beta3/redis-master-service.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"kind": "Service",
"apiVersion": "v1beta3",
"metadata": {
"name": "redis-master",
"labels": {
"name": "redis",
"role": "master"
}
},
"spec": {
"port": 6379,
"containerPort": "redis-server",
"protocol": "TCP",
"selector": {
"name": "redis",
"role": "master"
}
}
"kind":"Service",
"apiVersion":"v1beta3",
"metadata":{
"name":"redis-master",
"labels":{
"name":"redis",
"role":"master"
}
},
"spec":{
"port":6379,
"containerPort":"redis-server",
"protocol":"TCP",
"selector":{
"name":"redis",
"role":"master"
}
}
}
88 changes: 44 additions & 44 deletions examples/guestbook-go/v1beta3/redis-slave-controller.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
{
"kind": "ReplicationController",
"apiVersion": "v1beta3",
"id": "redis-slave",
"metadata": {
"name": "redis-slave",
"labels": {
"name": "redis",
"role": "slave"
}
},
"spec": {
"replicas": 1,
"selector": {
"name": "redis",
"role": "slave"
},
"template": {
"metadata": {
"labels": {
"name": "redis",
"role": "slave"
}
},
"spec": {
"containers": [
{
"name": "redis-slave",
"image": "gurpartap/redis",
"command": [
"sh",
"-c",
"redis-server /etc/redis/redis.conf --slaveof $REDIS_MASTER_SERVICE_HOST $REDIS_MASTER_SERVICE_PORT"
],
"ports": [
{
"name": "redis-server",
"containerPort": 6379,
"protocol": "TCP"
}
]
}
]
"kind":"ReplicationController",
"apiVersion":"v1beta3",
"id":"redis-slave",
"metadata":{
"name":"redis-slave",
"labels":{
"name":"redis",
"role":"slave"
}
},
"spec":{
"replicas":1,
"selector":{
"name":"redis",
"role":"slave"
},
"template":{
"metadata":{
"labels":{
"name":"redis",
"role":"slave"
}
}
}
},
"spec":{
"containers":[
{
"name":"redis-slave",
"image":"gurpartap/redis",
"command":[
"sh",
"-c",
"redis-server /etc/redis/redis.conf --slaveof $REDIS_MASTER_SERVICE_HOST $REDIS_MASTER_SERVICE_PORT"
],
"ports":[
{
"name":"redis-server",
"containerPort":6379,
"protocol":"TCP"
}
]
}
]
}
}
}
}
36 changes: 18 additions & 18 deletions examples/guestbook-go/v1beta3/redis-slave-service.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"kind": "Service",
"apiVersion": "v1beta3",
"metadata": {
"name": "redis-slave",
"labels": {
"name": "redis",
"role": "slave"
}
},
"spec": {
"port": 6379,
"containerPort": "redis-server",
"protocol": "TCP",
"selector": {
"name": "redis",
"role": "slave"
}
}
"kind":"Service",
"apiVersion":"v1beta3",
"metadata":{
"name":"redis-slave",
"labels":{
"name":"redis",
"role":"slave"
}
},
"spec":{
"port":6379,
"containerPort":"redis-server",
"protocol":"TCP",
"selector":{
"name":"redis",
"role":"slave"
}
}
}
Loading

0 comments on commit 7d00c45

Please sign in to comment.