diff options
author | Steve Kuznetsov <skuznets@redhat.com> | 2017-05-22 09:42:19 -0700 |
---|---|---|
committer | Steve Kuznetsov <skuznets@redhat.com> | 2017-05-22 10:07:59 -0700 |
commit | 108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d (patch) | |
tree | 1d7a646d9237aaafeb35c6e1356e996fd3e0417c /roles/openshift_logging_kibana | |
parent | 7426996929fe298f4da0b238e38d91fb929b5112 (diff) | |
download | openshift-108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d.tar.gz openshift-108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d.tar.bz2 openshift-108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d.tar.xz openshift-108a42cbbdbfc8094d1d8bf8d0d8826adfdf760d.zip |
Create logging deployments with non-zero replica counts
When we currently create the set of logging `DeploymentConfig`s, we
create them with zero desired replicas. This causes the deployment to
immediately succeed as there is no work to be done. This inhibits our
ability to use nice CLI UX features like `oc rollout status` to monitor
the logging stack deployments. Instead, we should can create the configs
with the correct number of replicas in the first place and stop using
`oc scale` to bring them up after the fact.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
Diffstat (limited to 'roles/openshift_logging_kibana')
-rw-r--r-- | roles/openshift_logging_kibana/tasks/main.yaml | 10 | ||||
-rw-r--r-- | roles/openshift_logging_kibana/templates/kibana.j2 | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/roles/openshift_logging_kibana/tasks/main.yaml b/roles/openshift_logging_kibana/tasks/main.yaml index 3bc903181..4444413e1 100644 --- a/roles/openshift_logging_kibana/tasks/main.yaml +++ b/roles/openshift_logging_kibana/tasks/main.yaml @@ -210,7 +210,7 @@ kibana_memory_limit: "{{ openshift_logging_kibana_memory_limit }}" kibana_proxy_cpu_limit: "{{ openshift_logging_kibana_proxy_cpu_limit }}" kibana_proxy_memory_limit: "{{ openshift_logging_kibana_proxy_memory_limit }}" - replicas: "{{ openshift_logging_kibana_replicas | default (0) }}" + replicas: "{{ openshift_logging_kibana_replicas | default (1) }}" kibana_node_selector: "{{ openshift_logging_kibana_nodeselector | default({}) }}" - name: Set Kibana DC @@ -223,14 +223,6 @@ - "{{ tempdir }}/templates/kibana-dc.yaml" delete_after: true -# Scale up Kibana -- is this really necessary? -- name: Start Kibana - oc_scale: - kind: dc - name: "{{ kibana_name }}" - namespace: "{{ openshift_logging_namespace }}" - replicas: "{{ openshift_logging_kibana_replicas | default (1) }}" - # update master configs? - name: Delete temp directory diff --git a/roles/openshift_logging_kibana/templates/kibana.j2 b/roles/openshift_logging_kibana/templates/kibana.j2 index ea506b12b..2298aa6d5 100644 --- a/roles/openshift_logging_kibana/templates/kibana.j2 +++ b/roles/openshift_logging_kibana/templates/kibana.j2 @@ -7,7 +7,7 @@ metadata: component: "{{ component }}" logging-infra: "{{ logging_component }}" spec: - replicas: {{ replicas | default(0) }} + replicas: {{ replicas | default(1) }} selector: provider: openshift component: "{{ component }}" |