Skip to content

Commit

Permalink
use hostpath
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Jul 1, 2024
1 parent 986df0d commit 6a76c09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion echo-side/dags/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
from kubernetes.client import models
from datetime import datetime

# Create k8s storage mount for large, persistent NFS disk space
# Create k8s storage mount

logs_volume_mount = models.V1VolumeMount(name="logs-volume", mount_path="/lsst-backup-logs", sub_path=None, read_only=False,)
logs_volume = models.V1Volume(
name="logs-volume",
host_path=models.V1HostPathVolumeSource(path='/lsst-backup-logs', type="DirectoryOrCreate"),
)

# Define default arguments for the DAG
default_args = {
Expand Down Expand Up @@ -40,6 +44,7 @@
'ECHO_S3_SECRET_KEY': Variable.get("ECHO_S3_SECRET_KEY"),
},
dag=dag,
volumes=[logs_volume],
volume_mounts=[logs_volume_mount],
get_logs=True,
)
Expand Down

0 comments on commit 6a76c09

Please sign in to comment.