Skip to content

Instantly share code, notes, and snippets.

@dapseen
Created December 8, 2019 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dapseen/51bc7e59b96d934938a4afce34c615bb to your computer and use it in GitHub Desktop.
Save dapseen/51bc7e59b96d934938a4afce34c615bb to your computer and use it in GitHub Desktop.
sidecar
apiVersion: apps/v1
kind: Deployment
metadata:
name: mpos
labels:
apps: mpos
spec:
replicas: 1
selector:
matchLabels:
component: mpos
template:
metadata:
labels:
component: mpos
spec:
containers:
- name: wallet-fund-worker
image: $AWS_REGISTRY_URL/mpos-transactions-service:latest
command: ["/bin/sh"]
args: ["-c","yarn wallet-fund-worker:prod"]
env:
- name: MONGO_DB_URI
valueFrom:
secretKeyRef:
name: mpos-env
key: MONGO_DB_URI
- name: WALLET_SERVICE_FETCH_WALLET_URL
value: http://wallet:4000/wallets/wallet
- name: WALLET_SERVICE_FUND_WALLET_ENDPOINT
value: http://wallet:4000/wallets/wallettransfers/fund-wallet
- name: MPOS_FUND_PERCENTAGE
value: '99.25' # means we are charging 0.75%
- name: REDIS_URI
value: redis://redis:6379
- name: NODE_ENV
value: production
- name: TZ
value: Africa/Lagos
- name: LOG_LEVEL
value: info
- name: APP_NAME
value: mpos-wallet-fund-worker
- name: STAMP_DUTY_CHARGE
value: '5000' # 5000 kobos in 50 Naira
- name: STAMP_DUTY_FLOOR_AMOUNT
value: '100000' #1000 Naira and above
- name: mpos-api
image: $AWS_REGISTRY_URL/mpos-transactions-service:latest
command: ["/bin/sh"]
args: ["-c","yarn api:prod"]
ports:
- containerPort: 8000
env:
- name: MONGO_DB_URI
valueFrom:
secretKeyRef:
name: mpos-env
key: MONGO_DB_URI
- name: APP_NAME
value: mpos-transactions-service
- name: LOG_ENABLE_CONSOLE
value: "true"
- name: NODE_ENV
value: production
- name: TZ
value: Africa/Lagos
- name: LOG_LEVEL
value: info
- name: APP_PORT
value: "8000"
- name: REDIS_URI
value: redis://redis:6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment