Sfoglia il codice sorgente

Merge pull request #435 from hvandenb/patch-1

The version of the Deployment spec
Ajay Tripathy 6 anni fa
parent
commit
bb5e2cdc83
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      kubernetes/deployment.yaml

+ 4 - 1
kubernetes/deployment.yaml

@@ -1,4 +1,4 @@
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
 kind: Deployment
 kind: Deployment
 metadata:
 metadata:
   name: cost-model
   name: cost-model
@@ -6,6 +6,9 @@ metadata:
     app: cost-model
     app: cost-model
 spec:
 spec:
   replicas: 1
   replicas: 1
+  selector:
+    matchLabels:
+      app: cost-model
   strategy:
   strategy:
     rollingUpdate:
     rollingUpdate:
       maxSurge: 1
       maxSurge: 1