replication_controller_example.json 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "kind": "ReplicationController",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "name": "elasticsearch-logging-controller",
  6. "namespace": "default",
  7. "selfLink": "/api/v1/namespaces/default/replicationcontrollers/elasticsearch-logging-controller",
  8. "uid": "aa76f162-e8e5-11e4-8fde-42010af09327",
  9. "resourceVersion": "98",
  10. "creationTimestamp": "2015-04-22T11:49:43Z",
  11. "labels": {
  12. "kubernetes.io/cluster-service": "true",
  13. "name": "elasticsearch-logging"
  14. }
  15. },
  16. "spec": {
  17. "replicas": 1,
  18. "selector": {
  19. "name": "elasticsearch-logging"
  20. },
  21. "template": {
  22. "metadata": {
  23. "creationTimestamp": null,
  24. "labels": {
  25. "kubernetes.io/cluster-service": "true",
  26. "name": "elasticsearch-logging"
  27. }
  28. },
  29. "spec": {
  30. "volumes": [
  31. {
  32. "name": "es-persistent-storage",
  33. "hostPath": null,
  34. "emptyDir": {
  35. "medium": ""
  36. },
  37. "gcePersistentDisk": null,
  38. "awsElasticBlockStore": null,
  39. "gitRepo": null,
  40. "secret": null,
  41. "nfs": null,
  42. "iscsi": null,
  43. "glusterfs": null,
  44. "quobyte": null
  45. }
  46. ],
  47. "containers": [
  48. {
  49. "name": "elasticsearch-logging",
  50. "image": "gcr.io/google_containers/elasticsearch:1.0",
  51. "ports": [
  52. {
  53. "name": "db",
  54. "containerPort": 9200,
  55. "protocol": "TCP"
  56. },
  57. {
  58. "name": "transport",
  59. "containerPort": 9300,
  60. "protocol": "TCP"
  61. }
  62. ],
  63. "resources": {},
  64. "volumeMounts": [
  65. {
  66. "name": "es-persistent-storage",
  67. "mountPath": "/data"
  68. }
  69. ],
  70. "terminationMessagePath": "/dev/termination-log",
  71. "imagePullPolicy": "IfNotPresent",
  72. "capabilities": {}
  73. }
  74. ],
  75. "restartPolicy": "Always",
  76. "dnsPolicy": "ClusterFirst"
  77. }
  78. }
  79. },
  80. "status": {
  81. "replicas": 1
  82. }
  83. }