Skip to content

Commit

Permalink
release/v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
askmeegs committed Sep 24, 2020
1 parent a909f30 commit 2a2fc1f
Show file tree
Hide file tree
Showing 10 changed files with 112 additions and 48 deletions.
7 changes: 4 additions & 3 deletions kubernetes-manifests/accounts-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ spec:
app: accounts-db
tier: db
spec:
serviceAccountName: default
containers:
- name: accounts-db
image: gcr.io/bank-of-anthos/accounts-db:v0.2.0
image: gcr.io/bank-of-anthos/accounts-db:v0.3.0
envFrom:
- configMapRef:
name: environment-config
- configMapRef:
name: accounts-db-config
- configMapRef:
name: default-data-config
name: demo-data-config
ports:
- containerPort: 5432
name: postgredb
Expand Down Expand Up @@ -70,7 +71,7 @@ metadata:
spec:
ports:
- port: 5432
name: postgredb
name: tcp
targetPort: 5432
protocol: TCP
selector:
Expand Down
24 changes: 20 additions & 4 deletions kubernetes-manifests/balance-reader.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,40 @@ spec:
labels:
app: balancereader
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: reader
image: gcr.io/bank-of-anthos/balancereader:v0.2.0
- name: balancereader
image: gcr.io/bank-of-anthos/balancereader:v0.3.0
volumeMounts:
- name: publickey
mountPath: "/root/.ssh"
readOnly: true
env:
- name: VERSION
value: "v0.2.0"
value: "v0.3.0"
- name: PORT
value: "8080"
# toggle Cloud Trace export
- name: ENABLE_TRACING
value: "true"
- name: ENABLE_METRICS
value: "true"
- name: POLL_MS
value: "100"
- name: CACHE_SIZE
value: "1000000"
# tell Java to obey container memory limits
- name: JVM_OPTS
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
# Valid levels are debug, info, warn, error, fatal.
# If no valid level is set, will default to info.
- name: LOG_LEVEL
value: "info"
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
envFrom:
- configMapRef:
name: environment-config
Expand All @@ -62,14 +76,16 @@ spec:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
initialDelaySeconds: 60
periodSeconds: 5
timeoutSeconds: 10
livenessProbe:
httpGet:
path: /healthy
port: 8080
initialDelaySeconds: 120
periodSeconds: 5
timeoutSeconds: 10
volumes:
- name: publickey
secret:
Expand Down
21 changes: 6 additions & 15 deletions kubernetes-manifests/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kind: ConfigMap
metadata:
name: environment-config
data:
LOCAL_ROUTING_NUM: "123456789"
LOCAL_ROUTING_NUM: "883745000"
PUB_KEY_PATH: "/root/.ssh/publickey"
---
apiVersion: v1
Expand All @@ -34,18 +34,9 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
name: default-data-config
name: demo-data-config
data:
USE_DEFAULT_DATA: "True"
# All default user accounts are hardcoded to use the login password 'password'
DEFAULT_LOGIN_PASSWORD: "password"
DEFAULT_USER_ACCOUNT: "1033623433"
DEFAULT_USER_USERNAME: "testuser"
DEFAULT_USER_NAME: "Eve"
DEFAULT_DEPOSIT_ACCOUNT: "9099791699"
DEFAULT_DEPOSIT_ROUTING: "808889588"
DEFAULT_DEPOSIT_LABEL: "External Bank"
DEFAULT_CONTACT_ACCOUNT_A: "1044226144"
DEFAULT_CONTACT_NAME_A: "Alice"
DEFAULT_CONTACT_ACCOUNT_B: "1055757655"
DEFAULT_CONTACT_NAME_B: "Bob"
USE_DEMO_DATA: "True"
DEMO_LOGIN_USERNAME: "testuser"
# All demo user accounts are hardcoded to use the login password 'password'
DEMO_LOGIN_PASSWORD: "password"
14 changes: 11 additions & 3 deletions kubernetes-manifests/contacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,26 @@ spec:
labels:
app: contacts
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: contacts
image: gcr.io/bank-of-anthos/contacts:v0.2.0
image: gcr.io/bank-of-anthos/contacts:v0.3.0
volumeMounts:
- name: publickey
mountPath: "/root/.ssh"
readOnly: true
env:
- name: VERSION
value: "v0.2.0"
value: "v0.3.0"
- name: PORT
value: "8080"
- name: ENABLE_TRACING
value: "true"
# Valid levels are debug, info, warning, error, critical.
# If no valid level is set, will default to info.
- name: LOG_LEVEL
value: "info"
envFrom:
- configMapRef:
name: environment-config
Expand All @@ -54,8 +61,9 @@ spec:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
volumes:
- name: publickey
secret:
Expand Down
23 changes: 16 additions & 7 deletions kubernetes-manifests/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,37 @@ spec:
labels:
app: frontend
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: front
image: gcr.io/bank-of-anthos/frontend:v0.2.0
image: gcr.io/bank-of-anthos/frontend:v0.3.0
volumeMounts:
- name: publickey
mountPath: "/root/.ssh"
readOnly: true
env:
- name: VERSION
value: "v0.2.0"
value: "v0.3.0"
- name: PORT
value: "8080"
- name: ENABLE_TRACING
value: "true"
- name: SCHEME
value: "http"
# Valid levels are debug, info, warning, error, critical. If no valid level is set, gunicorn will default to info.
- name: LOG_LEVEL
value: "info"
- name: DEFAULT_USERNAME
valueFrom:
configMapKeyRef:
name: default-data-config
key: DEFAULT_USER_USERNAME
name: demo-data-config
key: DEMO_LOGIN_USERNAME
- name: DEFAULT_PASSWORD
valueFrom:
configMapKeyRef:
name: default-data-config
key: DEFAULT_LOGIN_PASSWORD
name: demo-data-config
key: DEMO_LOGIN_PASSWORD
envFrom:
- configMapRef:
name: environment-config
Expand All @@ -57,8 +65,9 @@ spec:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 10
resources:
requests:
cpu: 100m
Expand Down
7 changes: 4 additions & 3 deletions kubernetes-manifests/ledger-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ spec:
labels:
app: ledger-db
spec:
serviceAccountName: default
containers:
- name: postgres
image: gcr.io/bank-of-anthos/ledger-db:v0.2.0
image: gcr.io/bank-of-anthos/ledger-db:v0.3.0
ports:
- containerPort: 5432
envFrom:
Expand All @@ -38,7 +39,7 @@ spec:
- configMapRef:
name: ledger-db-config
- configMapRef:
name: default-data-config
name: demo-data-config
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -77,6 +78,6 @@ spec:
selector:
app: ledger-db
ports:
- name: postgres
- name: tcp
port: 5432
targetPort: 5432
21 changes: 17 additions & 4 deletions kubernetes-manifests/ledger-writer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,34 @@ spec:
labels:
app: ledgerwriter
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: writer
image: gcr.io/bank-of-anthos/ledgerwriter:v0.2.0
- name: ledgerwriter
image: gcr.io/bank-of-anthos/ledgerwriter:v0.3.0
volumeMounts:
- name: publickey
mountPath: "/root/.ssh"
readOnly: true
env:
- name: VERSION
value: "v0.2.0"
value: "v0.3.0"
- name: PORT
value: "8080"
- name: ENABLE_TRACING
value: "true"
- name: ENABLE_METRICS
value: "true"
# tell Java to obey container memory limits
- name: JVM_OPTS
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
# service level override of log level
- name: LOG_LEVEL
value: "info"
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
envFrom:
- configMapRef:
name: environment-config
Expand All @@ -60,8 +72,9 @@ spec:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
initialDelaySeconds: 60
periodSeconds: 5
timeoutSeconds: 10
volumes:
- name: publickey
secret:
Expand Down
7 changes: 5 additions & 2 deletions kubernetes-manifests/loadgenerator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ spec:
annotations:
sidecar.istio.io/rewriteAppHTTPProbers: "true"
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
restartPolicy: Always
containers:
- name: main
image: gcr.io/bank-of-anthos/loadgenerator:v0.2.0
- name: loadgenerator
image: gcr.io/bank-of-anthos/loadgenerator:v0.3.0
env:
- name: FRONTEND_ADDR
value: "frontend:80"
- name: USERS
value: "5"
- name: LOG_LEVEL
value: "error"
resources:
requests:
cpu: 100m
Expand Down
23 changes: 19 additions & 4 deletions kubernetes-manifests/transaction-history.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,24 @@ spec:
labels:
app: transactionhistory
spec:
serviceAccountName: default
terminationGracePeriodSeconds: 5
containers:
- name: history
image: gcr.io/bank-of-anthos/transactionhistory:v0.2.0
- name: transactionhistory
image: gcr.io/bank-of-anthos/transactionhistory:v0.3.0
volumeMounts:
- name: publickey
mountPath: "/root/.ssh"
readOnly: true
env:
- name: VERSION
value: "v0.2.0"
value: "v0.3.0"
- name: PORT
value: "8080"
- name: ENABLE_TRACING
value: "true"
- name: ENABLE_METRICS
value: "true"
- name: POLL_MS
value: "100"
- name: CACHE_SIZE
Expand All @@ -51,6 +56,14 @@ spec:
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap"
#- name: EXTRA_LATENCY_MILLIS
# value: "5000"
# Valid levels are debug, info, warn, error, fatal.
# If no valid level is set, will default to info.
- name: LOG_LEVEL
value: "info"
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
envFrom:
- configMapRef:
name: environment-config
Expand All @@ -68,14 +81,16 @@ spec:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
initialDelaySeconds: 60
periodSeconds: 5
timeoutSeconds: 10
livenessProbe:
httpGet:
path: /healthy
port: 8080
initialDelaySeconds: 120
periodSeconds: 5
timeoutSeconds: 10
volumes:
- name: publickey
secret:
Expand Down
Loading

0 comments on commit 2a2fc1f

Please sign in to comment.