Skip to content

Commit

Permalink
updated deployment config to be docker friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-chan committed Jun 8, 2018
1 parent 325cd00 commit f3e6a20
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions worker_config/airflow-worker-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,20 @@ spec:
- containerPort: 8793
protocol: TCP
resources: {}
securityContext:
privileged: true
runAsUser: 0
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/airflow/airflow_cfg
name: airflow-config
- mountPath: /home/airflow/gcs
name: gcsdir
- mountPath: /var/run/docker.sock
name: docker-host
- mountPath: /bin/docker
name: docker-app
- args:
- /home/airflow/gcs
env:
Expand Down Expand Up @@ -106,4 +113,10 @@ spec:
name: airflow-config
- emptyDir: {}
name: gcsdir
- hostPath:
path: /var/run/docker.sock
name: docker-host
- hostPath:
path: /usr/bin/docker
name: docker-app
status: {}

2 comments on commit f3e6a20

@joshkurz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

@zurita86
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I add a command like "gcloud components update" to run when the pods are created to always have a new version of a Google SDK in mi Composer (Airflow) Worker Pods?? How? Where I need to add a run command?

Please sign in to comment.