From 58938f7ce3efb5450b09e5213002cb97bb1e5dc8 Mon Sep 17 00:00:00 2001 From: "longfei.zhang" Date: Thu, 10 Oct 2019 10:44:34 +0800 Subject: [PATCH] Fix no matches for deployment in extensions/v1beta1 issue As deployment in the extensions/v1beta1 was deprecated from K8S 1.16, so change the deployment to suit K8S 1.16 version and later. Ref: https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/ --- example/deployment.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/example/deployment.yaml b/example/deployment.yaml index a1819c490..2b8573799 100644 --- a/example/deployment.yaml +++ b/example/deployment.yaml @@ -1,13 +1,16 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: etcd-operator spec: + selector: + matchLabels: + app: etcd-operator replicas: 1 template: metadata: labels: - name: etcd-operator + app: etcd-operator spec: containers: - name: etcd-operator