Upgrading kubernetes API

Change-Id: I279db986e2dab1ebcb5b48b4195363af395c8de3
diff --git a/xos-core/templates/core-deployment.yaml b/xos-core/templates/core-deployment.yaml
index a8625e2..86b6a0f 100644
--- a/xos-core/templates/core-deployment.yaml
+++ b/xos-core/templates/core-deployment.yaml
@@ -13,7 +13,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: xos-core
@@ -21,6 +21,10 @@
     {{- include "xos-core.release_labels" . | indent 4 }}
 spec:
   replicas: 1
+  selector:
+    matchLabels:
+      name: xos-core
+      release: {{ .Release.Name }}
   template:
     metadata:
       labels:
@@ -79,4 +83,3 @@
             items:
               - key: config
                 path: migrations/initial_data.yaml
-