Last active
June 7, 2019 19:20
-
-
Save sandromello/88c67ed02024bd8bcb609b817d1d4fd2 to your computer and use it in GitHub Desktop.
Universe Specs yaml
This file contains hidden or 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: payout | |
annotations: | |
description: |- | |
TBD. | |
labels: | |
dependencies: wallet | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: payout | |
template: | |
metadata: | |
labels: | |
app: payout | |
spec: | |
containers: | |
- env: | |
- name: APPLICATION_NAME | |
value: Payout | |
- name: APPLICATION_TYPE | |
value: service | |
- name: GRPC_HOST | |
value: 0.0.0.0 | |
- name: GRPC_PORT | |
value: '50052' | |
- name: SRV_WALLET_ADDR | |
value: wallet:50051 | |
image: quay.io/hashlab/universe-payout:d01a2c4 | |
imagePullPolicy: Always | |
livenessProbe: | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 1 | |
tcpSocket: | |
port: 50052 | |
timeoutSeconds: 2 | |
name: payout | |
ports: | |
- containerPort: 50052 | |
name: grpc | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 2 | |
tcpSocket: | |
port: 50052 | |
timeoutSeconds: 2 | |
imagePullSecrets: | |
- name: quay | |
restartPolicy: Always | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: wallet | |
annotations: | |
description: |- | |
TBD. | |
labels: | |
dependencies: postgres | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: wallet | |
template: | |
metadata: | |
labels: | |
app: wallet | |
spec: | |
containers: | |
- env: | |
- name: APPLICATION_NAME | |
value: Wallet | |
- name: APPLICATION_TYPE | |
value: service | |
- name: GRPC_HOST | |
value: 0.0.0.0 | |
- name: GRPC_PORT | |
value: '50051' | |
- name: EVENTSTORE_TYPE | |
value: POSTGRESQL | |
- name: PG_CONNECT_STRING | |
valueFrom: | |
secretKeyRef: | |
name: wallet-config | |
key: PG_CONNECT_STRING | |
image: quay.io/hashlab/universe-wallet:d01a2c4 | |
imagePullPolicy: Always | |
livenessProbe: | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 1 | |
tcpSocket: | |
port: 50051 | |
timeoutSeconds: 2 | |
name: wallet | |
ports: | |
- containerPort: 50051 | |
name: grpc | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 2 | |
tcpSocket: | |
port: 50051 | |
timeoutSeconds: 2 | |
dnsPolicy: ClusterFirst | |
imagePullSecrets: | |
- name: quay | |
restartPolicy: Always | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: payout | |
spec: | |
ports: | |
- name: grpc | |
port: 50052 | |
protocol: TCP | |
targetPort: grpc | |
selector: | |
app: payout | |
type: ClusterIP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: wallet | |
spec: | |
ports: | |
- name: grpc | |
port: 50051 | |
protocol: TCP | |
targetPort: grpc | |
selector: | |
app: wallet | |
type: ClusterIP | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: ig-api | |
spec: | |
minReadySeconds: 10 | |
progressDeadlineSeconds: 60 | |
replicas: 1 | |
revisionHistoryLimit: 10 | |
selector: | |
matchLabels: | |
app: ig-api | |
strategy: | |
rollingUpdate: | |
maxSurge: 6 | |
maxUnavailable: 0 | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
app: ig-api | |
spec: | |
containers: | |
- env: | |
- name: TZ | |
value: 'America/Sao_Paulo' | |
- name: API_LOG_ALL_REQUESTS_BODY | |
value: 'true' | |
- name: IG_MAX_OLD_SPACE_API | |
value: '8192' | |
- name: NODE_ENV | |
value: dev | |
- name: PORT | |
value: '4000' | |
- name: SILENT_MODE | |
value: 'false' | |
- name: ANTICIPATION_AMOUNT_THRESHOLD | |
value: '200000000' | |
- name: ANTICIPATION_MIN_PAYABLE_NET_AMOUNT | |
value: '1' | |
- name: AWS_REGION | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: AWS_REGION | |
- name: AWS_ACCESS_KEY_ID | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: AWS_ACCESS_KEY_ID | |
- name: AWS_SECRET_ACCESS_KEY | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: AWS_SECRET_ACCESS_KEY | |
- name: SENTRY_ENABLED | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_ENABLED | |
- name: SENTRY_NAME | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_NAME | |
- name: SENTRY_RELEASE | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_RELEASE | |
- name: SENTRY_DSN | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_DSN | |
- name: MONGODB_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: MONGODB_URL | |
- name: POSTGRESQL_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: POSTGRESQL_URL | |
- name: POSTGRESQL_CONNECTION_POOL_SIZE | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: POSTGRESQL_CONNECTION_POOL_SIZE | |
- name: RABBITMQ_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: RABBITMQ_URL | |
- name: REDIS_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: REDIS_URL | |
image: quay.io/hashlab/infinity-gauntlet-api:4b5a828 | |
imagePullPolicy: Always | |
livenessProbe: | |
failureThreshold: 3 | |
httpGet: | |
path: /healthz/liveness | |
port: 4000 | |
scheme: HTTP | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 1 | |
timeoutSeconds: 2 | |
name: ig-api | |
ports: | |
- containerPort: 4000 | |
name: ig-api | |
protocol: TCP | |
readinessProbe: | |
failureThreshold: 2 | |
httpGet: | |
path: /healthz/readiness | |
port: 4000 | |
scheme: HTTP | |
initialDelaySeconds: 10 | |
periodSeconds: 1 | |
successThreshold: 3 | |
timeoutSeconds: 1 | |
dnsPolicy: ClusterFirst | |
imagePullSecrets: | |
- name: quay | |
restartPolicy: Always | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: ig-api | |
spec: | |
ports: | |
- name: ig-api | |
port: 4000 | |
protocol: TCP | |
targetPort: 4000 | |
selector: | |
app: ig-api | |
type: ClusterIP | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: webhook | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: webhook | |
strategy: | |
rollingUpdate: | |
maxSurge: 1 | |
maxUnavailable: 0 | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
app: webhook | |
spec: | |
containers: | |
- env: | |
- name: IG_MAX_OLD_SPACE_WEBHOOK | |
value: "2400" | |
- name: NODE_ENV | |
value: dev | |
- name: SENTRY_ENABLED | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_ENABLED | |
- name: SENTRY_NAME | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_NAME | |
- name: SENTRY_RELEASE | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_RELEASE | |
- name: SENTRY_DSN | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: SENTRY_DSN | |
- name: MONGODB_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: MONGODB_URL | |
- name: POSTGRESQL_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: POSTGRESQL_URL | |
- name: POSTGRESQL_CONNECTION_POOL_SIZE | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: POSTGRESQL_CONNECTION_POOL_SIZE | |
- name: RABBITMQ_URL | |
valueFrom: | |
secretKeyRef: | |
name: app-core-config | |
key: RABBITMQ_URL | |
image: quay.io/hashlab/infinity-gauntlet-webhook:329b0ad | |
imagePullPolicy: Always | |
livenessProbe: | |
exec: | |
command: | |
- script/check-health | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 1 | |
timeoutSeconds: 2 | |
name: webhook | |
readinessProbe: | |
exec: | |
command: | |
- script/check-health | |
failureThreshold: 3 | |
initialDelaySeconds: 10 | |
periodSeconds: 2 | |
successThreshold: 2 | |
timeoutSeconds: 2 | |
imagePullSecrets: | |
- name: quay |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment