← harnesscd-example-apps

Create k8s-rolling-pipeline.yml

9addc96139836424ac1e4c589918997d5db1d1e4 · Pravin M · Aug 14, 2023 19:22

+46 · 1 file changed

  • helm-guestbook/harnesscd-pipeline/k8s-rolling-pipeline.yml +46 −0
diff --git a/helm-guestbook/harnesscd-pipeline/k8s-rolling-pipeline.yml b/helm-guestbook/harnesscd-pipeline/k8s-rolling-pipeline.yml
new file mode 100644
index 0000000..0956fc7
--- /dev/null
+++ b/helm-guestbook/harnesscd-pipeline/k8s-rolling-pipeline.yml
@@ -0,0 +1,46 @@
+pipeline:
+  name: guestbook_k8s_rolling_pipeline
+  identifier: guestbook_k8s_rolling_pipeline
+  projectIdentifier: default_project
+  orgIdentifier: default
+  tags: {}
+  stages:
+    - stage:
+        name: deployguestbook
+        identifier: deployguestbook
+        description: ""
+        type: Deployment
+        spec:
+          deploymentType: Kubernetes
+          service:
+            serviceRef: harnessguestbookdep
+          environment:
+            environmentRef: harnessdevenvdep
+            deployToAll: false
+            infrastructureDefinitions:
+              - identifier: harnessk8sinfradep
+          execution:
+            steps:
+              - step:
+                  name: Rollout Deployment
+                  identifier: rolloutDeployment
+                  type: K8sRollingDeploy
+                  timeout: 10m
+                  spec:
+                    skipDryRun: false
+                    pruningEnabled: false
+            rollbackSteps:
+              - step:
+                  name: Rollback Rollout Deployment
+                  identifier: rollbackRolloutDeployment
+                  type: K8sRollingRollback
+                  timeout: 10m
+                  spec:
+                    pruningEnabled: false
+        tags: {}
+        failureStrategies:
+          - onFailure:
+              errors:
+                - AllErrors
+              action:
+                type: StageRollback