Kaynağa Gözat

The version of the Deployment spec

This version has changed with K8s and also now requires a selector.
Henri van den Bulk 6 yıl önce
ebeveyn
işleme
42c9e71fd7
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      kubernetes/deployment.yaml

+ 4 - 1
kubernetes/deployment.yaml

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