heapster_template.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "kind": "ReplicationController",
  3. "apiVersion": "v1",
  4. "metadata": {
  5. "name": "heapster-v1.3.0",
  6. "labels": {
  7. "k8s-app": "heapster",
  8. "version": "v1.3.0"
  9. }
  10. },
  11. "spec": {
  12. "replicas": 1,
  13. "selector": {
  14. "k8s-app": "heapster",
  15. "version": "v1.3.0"
  16. },
  17. "template": {
  18. "metadata": {
  19. "labels": {
  20. "k8s-app": "heapster",
  21. "version": "v1.3.0"
  22. }
  23. },
  24. "spec": {
  25. "volumes": [
  26. {
  27. "name": "kubeconfig-volume",
  28. "secret": {
  29. "secretName": "kubeconfig"
  30. }
  31. }
  32. ],
  33. "containers": [
  34. {
  35. "name": "heapster",
  36. "image": "k8s.gcr.io/heapster:v1.3.0",
  37. "resources": {
  38. "requests": {
  39. "cpu": "{{METRICS_CPU}}m",
  40. "memory": "{{METRICS_MEM}}Mi"
  41. }
  42. },
  43. "command": [
  44. "/heapster"
  45. ],
  46. "args": [
  47. "--source=kubernetes:https://{{MASTER_IP}}:443?inClusterConfig=0&useServiceAccount=0&auth=/kubeconfig/heapster.kubeconfig"
  48. ],
  49. "volumeMounts": [
  50. {
  51. "name": "kubeconfig-volume",
  52. "mountPath": "/kubeconfig"
  53. }
  54. ]
  55. },
  56. {
  57. "name": "eventer",
  58. "image": "k8s.gcr.io/heapster:v1.3.0",
  59. "resources": {
  60. "requests": {
  61. "memory": "{{EVENTER_MEM}}Ki"
  62. }
  63. },
  64. "command": [
  65. "/eventer"
  66. ],
  67. "args": [
  68. "--source=kubernetes:https://{{MASTER_IP}}:443?inClusterConfig=0&useServiceAccount=0&auth=/kubeconfig/heapster.kubeconfig"
  69. ],
  70. "volumeMounts": [
  71. {
  72. "name": "kubeconfig-volume",
  73. "mountPath": "/kubeconfig"
  74. }
  75. ]
  76. }]
  77. }
  78. }
  79. }
  80. }