summaryrefslogtreecommitdiffstats
path: root/kubernetes/sdnc/templates
diff options
context:
space:
mode:
authorGrzegorz-Lis <grzegorz.lis@nokia.com>2020-07-23 15:08:43 +0200
committerGrzegorz-Lis <grzegorz.lis@nokia.com>2020-07-23 15:08:43 +0200
commit1318a77bff48373495773d6695af0304acccd86c (patch)
treeee2ccc86e384c99a3e084b447a881bf3bfead4e7 /kubernetes/sdnc/templates
parentde425ced1025e5c77bec90ecc7a33b7d2baa100e (diff)
[SDNC] Make SDNC compatible with Kubernetes v1.17
Issue-ID: OOM-2466 Signed-off-by: Grzegorz Lis <grzegorz.lis@nokia.com> Change-Id: Ia007cd54ae20fda08f6e4359248ea5dbac42ac92
Diffstat (limited to 'kubernetes/sdnc/templates')
-rw-r--r--kubernetes/sdnc/templates/statefulset.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/sdnc/templates/statefulset.yaml b/kubernetes/sdnc/templates/statefulset.yaml
index a7ca81cd6d..437cb31a8e 100644
--- a/kubernetes/sdnc/templates/statefulset.yaml
+++ b/kubernetes/sdnc/templates/statefulset.yaml
@@ -15,7 +15,7 @@
# limitations under the License.
*/}}
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "common.fullname" . }}
@@ -26,6 +26,9 @@ metadata:
release: {{ include "common.release" . }}
heritage: {{ .Release.Service }}
spec:
+ selector:
+ matchLabels:
+ app: {{ include "common.name" . }}
serviceName: {{ include "common.servicename" . }}-cluster
replicas: {{ .Values.replicaCount }}
podManagementPolicy: Parallel