Merge "[NBI] Make NBI compatible with Kubernetes v1.17"
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 18 Aug 2020 13:00:29 +0000 (13:00 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 18 Aug 2020 13:00:29 +0000 (13:00 +0000)
kubernetes/nbi/templates/deployment.yaml

index 22dd4a1..dc2f5db 100644 (file)
@@ -1,5 +1,6 @@
 # Copyright © 2018 Orange
 # Modifications Copyright © 2018  Amdocs, Bell Canada
+# Modifications Copyright © 2020 Nokia
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -13,7 +14,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 metadata:
   name: {{ include "common.fullname" . }}
@@ -24,6 +25,9 @@ metadata:
     release: {{ include "common.release" . }}
     heritage: {{ .Release.Service }}
 spec:
+  selector:
+    matchLabels:
+      app: {{ include "common.name" . }}
   replicas: {{ .Values.replicaCount }}
   template:
     metadata: