Upgrading kubernetes API

Change-Id: I279db986e2dab1ebcb5b48b4195363af395c8de3
diff --git a/xos-db/Chart.yaml b/xos-db/Chart.yaml
index 945745e..80e330d 100644
--- a/xos-db/Chart.yaml
+++ b/xos-db/Chart.yaml
@@ -15,7 +15,7 @@
 
 name: xos-db
 apiVersion: v1
-version: 1.0.3
+version: 1.0.4
 
 icon: https://www.postgresql.org/media/img/about/press/elephant.png
 
diff --git a/xos-db/templates/db-deployment.yaml b/xos-db/templates/db-deployment.yaml
index 4f0bee6..8fa7056 100644
--- a/xos-db/templates/db-deployment.yaml
+++ b/xos-db/templates/db-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-db
@@ -21,6 +21,10 @@
     app: xos-db
 spec:
   replicas: 1
+  selector:
+    matchLabels:
+      name: xos-db
+      release: {{ .Release.Name }}
   template:
     metadata:
       labels: