Upgrading kubernetes API

Change-Id: I279db986e2dab1ebcb5b48b4195363af395c8de3
diff --git a/mcord/mcord-cdn-local/templates/nginx.yaml b/mcord/mcord-cdn-local/templates/nginx.yaml
index 82de8b0..9f54bde 100644
--- a/mcord/mcord-cdn-local/templates/nginx.yaml
+++ b/mcord/mcord-cdn-local/templates/nginx.yaml
@@ -29,13 +29,17 @@
     protocol: TCP
 
 ---
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
 kind: StatefulSet
 metadata:
   name: nginx-rtmp
 spec:
   serviceName: nginx-rtmp
   replicas: 1
+  selector:
+    matchLabels:
+      name: nginx-rtmp
+      release: {{ .Release.Name }}
   template:
     metadata:
       labels:
@@ -104,4 +108,4 @@
           - key: nginx.conf
             path: nginx.conf
       - name: shared-volume
-        emptyDir: {}
\ No newline at end of file
+        emptyDir: {}