install_heapster.yaml 508 B

1234567891011121314
  1. ---
  2. - command: >
  3. {{ openshift.common.client_binary }} -n {{ openshift_metrics_project | quote }}
  4. --config={{ mktemp.stdout }}/admin.kubeconfig
  5. get rc heapster -o jsonpath='{.spec.replicas}'
  6. register: heapster_replica_count
  7. failed_when: false
  8. changed_when: no
  9. - name: Generate heapster replication controller
  10. template: src=heapster.j2 dest={{mktemp.stdout}}/templates/metrics-heapster-rc.yaml
  11. vars:
  12. replica_count: "{{heapster_replica_count.stdout | default(0)}}"
  13. changed_when: no