install_heapster.yaml 461 B

123456789101112
  1. ---
  2. - shell: >
  3. {{ openshift.common.client_binary }} -n {{ openshift_metrics_project }}
  4. --config={{ mktemp.stdout }}/admin.kubeconfig
  5. get rc heapster --template=\{\{.spec.replicas\}\} || echo 0
  6. register: heapster_replica_count
  7. changed_when: false
  8. - name: Generate heapster replication controller
  9. template: src=heapster.j2 dest={{mktemp.stdout}}/templates/metrics-heapster-rc.yaml
  10. vars:
  11. replica_count: "{{heapster_replica_count.stdout}}"