From c03c318d3848792a313d67ecfec255ad5090073f Mon Sep 17 00:00:00 2001 From: milaszki Date: Tue, 7 Jul 2020 12:13:44 +0000 Subject: Make COMMON/ETCD compatible with Kubernetes v1.17 Issue-ID: OOM-2481 Signed-off-by: Daniel Milaszkiewicz Change-Id: I3d2e249bfd158575c67eaf5600cdae1921bd3b2e --- kubernetes/common/etcd/templates/statefulset.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kubernetes') diff --git a/kubernetes/common/etcd/templates/statefulset.yaml b/kubernetes/common/etcd/templates/statefulset.yaml index 96cda89c1f..fcab51cb59 100644 --- a/kubernetes/common/etcd/templates/statefulset.yaml +++ b/kubernetes/common/etcd/templates/statefulset.yaml @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "common.fullname" . }} @@ -23,6 +23,9 @@ metadata: spec: serviceName: {{ include "common.servicename" .}} replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ include "common.name" . }} template: metadata: labels: -- cgit 1.2.3-korg