Skip to content

Commit

Permalink
mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Jul 1, 2024
1 parent 5e50f57 commit fc2fffe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions echo-side/dags/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
from airflow.models import Variable
from datetime import timedelta

from kubernetes.client import models
from datetime import datetime
# from kubernetes.client import models
# from datetime import datetime

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

volume_dss_mount = models.V1VolumeMount(name="logs-volume", mount_path="/lsst-backup-logs", sub_path=None, read_only=False,)
# volume_dss_mount = models.V1VolumeMount(name="logs-volume", mount_path="/lsst-backup-logs", sub_path=None, read_only=False,)

# Define default arguments for the DAG
default_args = {
Expand Down Expand Up @@ -40,7 +40,7 @@
'ECHO_S3_SECRET_KEY': Variable.get("ECHO_S3_SECRET_KEY"),
},
dag=dag,
volume_mounts=[volume_dss_mount],
mounts=["/lsst-backup-logs:/lsst-backup-logs"],
get_logs=True,
)

Expand Down

0 comments on commit fc2fffe

Please sign in to comment.