diff --git a/boilerplates/kubernetes/cronworkflow.yaml b/boilerplates/kubernetes/cronworkflow.yaml index 1b1cf972..ecbf7e53 100644 --- a/boilerplates/kubernetes/cronworkflow.yaml +++ b/boilerplates/kubernetes/cronworkflow.yaml @@ -1,20 +1,19 @@ apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: - name: hello-world + name: &app py-test spec: schedule: "* * * * *" timezone: "Europe/London" # Default to local machine timezone startingDeadlineSeconds: 0 concurrencyPolicy: "Replace" # Default to "Allow" - successfulJobsHistoryLimit: 4 # Default 3 + successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 4 # Default 1 suspend: false # Set to "true" to suspend scheduling workflowSpec: - entrypoint: whalesay + entrypoint: *app templates: - - name: whalesay + - name: *app container: - image: docker/whalesay:latest - command: [cowsay] - args: ["🕓 hello world. Scheduled on: {{workflow.scheduledTime}}"] + image: 192.168.7.210:5000/py-test:0.0.1 + imagePullPolicy: Always diff --git a/kubernetes/apps/monitoring/grafana/deployment.yaml b/kubernetes/apps/monitoring/grafana/deployment.yaml index 3d57ae39..1498da54 100644 --- a/kubernetes/apps/monitoring/grafana/deployment.yaml +++ b/kubernetes/apps/monitoring/grafana/deployment.yaml @@ -26,7 +26,7 @@ spec: key: admin-password volumeMounts: - name: grafana-storage - mountPath: /var/mnt/storage/grafana + mountPath: /var/lib/grafana volumes: - name: grafana-storage persistentVolumeClaim: diff --git a/kubernetes/workflows/hello-world.yaml b/kubernetes/workflows/hello-world.yaml deleted file mode 100644 index a9d97550..00000000 --- a/kubernetes/workflows/hello-world.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: CronWorkflow -metadata: - name: hello-world -spec: - schedule: "*/10 * * * *" - timezone: "Europe/London" # Default to local machine timezone - startingDeadlineSeconds: 0 - concurrencyPolicy: "Replace" # Default to "Allow" - successfulJobsHistoryLimit: 4 # Default 3 - failedJobsHistoryLimit: 4 # Default 1 - suspend: false # Set to "true" to suspend scheduling - ttlStrategy: - secondsAfterCompletion: 10 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished - secondsAfterSuccess: 5 # Time to live after workflow is successful - secondsAfterFailure: 5 # Time to live after workflow fails - workflowSpec: - entrypoint: whalesay - templates: - - name: whalesay - container: - image: docker/whalesay:latest - command: [cowsay] - args: ["🕓 hello world. Scheduled on: {{workflow.scheduledTime}}"] diff --git a/kubernetes/workflows/py-test.yaml b/kubernetes/workflows/py-test.yaml index 79b8fff1..ecbf7e53 100644 --- a/kubernetes/workflows/py-test.yaml +++ b/kubernetes/workflows/py-test.yaml @@ -1,23 +1,19 @@ apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: - name: py-test + name: &app py-test spec: - schedule: "*/10 * * * *" + schedule: "* * * * *" timezone: "Europe/London" # Default to local machine timezone startingDeadlineSeconds: 0 concurrencyPolicy: "Replace" # Default to "Allow" - successfulJobsHistoryLimit: 4 # Default 3 + successfulJobsHistoryLimit: 1 failedJobsHistoryLimit: 4 # Default 1 suspend: false # Set to "true" to suspend scheduling - ttlStrategy: - secondsAfterCompletion: 10 # Time to live after workflow is completed, replaces ttlSecondsAfterFinished - secondsAfterSuccess: 5 # Time to live after workflow is successful - secondsAfterFailure: 5 # Time to live after workflow fails workflowSpec: - entrypoint: py-test + entrypoint: *app templates: - - name: py-test + - name: *app container: image: 192.168.7.210:5000/py-test:0.0.1 imagePullPolicy: Always