Skip to content

Commit

Permalink
fixing grafana pvc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpbennett committed Jul 13, 2024
1 parent 9b54048 commit 5e6a2ad
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 41 deletions.
13 changes: 6 additions & 7 deletions boilerplates/kubernetes/cronworkflow.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion kubernetes/apps/monitoring/grafana/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 0 additions & 24 deletions kubernetes/workflows/hello-world.yaml

This file was deleted.

14 changes: 5 additions & 9 deletions kubernetes/workflows/py-test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5e6a2ad

Please sign in to comment.