Skip to content

Instantly share code, notes, and snippets.

@kozikow
Created August 31, 2016 16:54
Show Gist options
  • Save kozikow/4ac321a65f0a0268081de91e40634310 to your computer and use it in GitHub Desktop.
Save kozikow/4ac321a65f0a0268081de91e40634310 to your computer and use it in GitHub Desktop.
Kubernetes config of airflow web server
apiVersion: v1
kind: Service
metadata:
name: web
labels:
app: web
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 8080
selector:
app: web
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
spec:
replicas: 1
template:
metadata:
labels:
app: airflow
tier: web
spec:
restartPolicy: Always
containers:
- name: web
image: gcr.io/all-the-codes/docker_airflow:0.2
imagePullPolicy: Always
env:
- name: AIRFLOW_HOME
value: "/usr/local/airflow"
ports:
- containerPort: 8080
args: ["web"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment