From 662e7425e4b60d62c4b658651b0cc36ac53540d1 Mon Sep 17 00:00:00 2001 From: Tomislav Skokovic Date: Thu, 23 Aug 2018 12:25:26 +0200 Subject: [PATCH] Stateful v1 fix: Add selectors matching labels --- stateful/es-data-stateful.yaml | 4 ++++ stateful/es-master-stateful.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/stateful/es-data-stateful.yaml b/stateful/es-data-stateful.yaml index 40e4fdf..1016a55 100644 --- a/stateful/es-data-stateful.yaml +++ b/stateful/es-data-stateful.yaml @@ -6,6 +6,10 @@ metadata: component: elasticsearch role: data spec: + selector: + matchLabels: + component: elasticsearch + role: data serviceName: elasticsearch-data replicas: 3 template: diff --git a/stateful/es-master-stateful.yaml b/stateful/es-master-stateful.yaml index 721b695..7f70953 100644 --- a/stateful/es-master-stateful.yaml +++ b/stateful/es-master-stateful.yaml @@ -6,6 +6,10 @@ metadata: component: elasticsearch role: master spec: + selector: + matchLabels: + component: elasticsearch + role: master serviceName: elasticsearch-master replicas: 3 template: