This version has changed with K8s and also now requires a selector.
@@ -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