Explorar o código

switch deployment to job

AjayTripathy %!s(int64=6) %!d(string=hai) anos
pai
achega
0daa6178dd
Modificáronse 1 ficheiros con 4 adicións e 9 borrados
  1. 4 9
      test/kubernetes/test-pod.yaml

+ 4 - 9
test/kubernetes/test-pod.yaml

@@ -1,22 +1,17 @@
-apiVersion: extensions/v1beta1
-kind: Deployment
+apiVersion: batch/v1
+kind: Job
 metadata:
 metadata:
   name: cost-model-test
   name: cost-model-test
   labels:
   labels:
     app: cost-model-test
     app: cost-model-test
 spec:
 spec:
-  replicas: 1
-  strategy:
-    rollingUpdate:
-      maxSurge: 1
-      maxUnavailable: 1
-    type: RollingUpdate
+  backoffLimit: 0
   template:
   template:
     metadata:
     metadata:
       labels:
       labels:
         app: cost-model-test
         app: cost-model-test
     spec:
     spec:
-      restartPolicy: Always
+      restartPolicy: Never
       serviceAccountName: cost-model
       serviceAccountName: cost-model
       containers:
       containers:
         - image: ajaytripathy/kubecost-cost-model-integration:latest
         - image: ajaytripathy/kubecost-cost-model-integration:latest