Created
August 31, 2016 16:54
-
-
Save kozikow/4ac321a65f0a0268081de91e40634310 to your computer and use it in GitHub Desktop.
Kubernetes config of airflow web server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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