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: