Skip to content

Instantly share code, notes, and snippets.

@ll911
Last active November 8, 2018 21:23
Show Gist options
  • Save ll911/771e315e682e307123361d2fdc4f8867 to your computer and use it in GitHub Desktop.
Save ll911/771e315e682e307123361d2fdc4f8867 to your computer and use it in GitHub Desktop.
bcdc-datapusher-dc.yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: bcdc
name: datapusher
name: datapusher
spec:
ports:
- name: http-proxy
port: 8800
targetPort: 8800
protocol: TCP
selector:
name: datapusher
---
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: bcdc
name: datapusher
name: datapusher
spec:
replicas: 1
selector:
app: bcdc
deploymentconfig: datapusher
name: datapusher
template:
metadata:
labels:
app: bcdc
deploymentconfig: datapusher
name: datapusher
spec:
containers:
- command:
- gunicorn
- 'wsgi:app'
- '-k'
- gevent
env:
- name: JOB_CONFIG
value: /app/src/datapusher/deployment/datapusher_settings.py
image: 172.50.0.2:5000/dbc-bcdc-dev/datapusher-atomic-base:latest
imagePullPolicy: Always
name: datapusher
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- datapusher
from:
kind: ImageStreamTag
name: 'datapusher-atomic-base:latest'
namespace: dbc-bcdc-dev
type: ImageChange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment