Skip to content

Instantly share code, notes, and snippets.

@kozikow
Created August 25, 2016 16:48
Show Gist options
  • Save kozikow/a0756eb21ea625b13854b3b5d3b2821d to your computer and use it in GitHub Desktop.
Save kozikow/a0756eb21ea625b13854b3b5d3b2821d to your computer and use it in GitHub Desktop.
Worker deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: worker
spec:
replicas: 1
template:
metadata:
labels:
app: airflow
tier: worker
spec:
restartPolicy: Always
containers:
- name: worker
image: gcr.io/all-the-codes/docker_airflow:0.2
imagePullPolicy: Always
# volumes:
# - /localpath/to/dags:/usr/local/airflow/dags
env:
- name: AIRFLOW_HOME
value: "/usr/local/airflow"
args: ["worker"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment