Skip to content

Commit

Permalink
Merge pull request #23 from splunk/release/v1.2.3
Browse files Browse the repository at this point in the history
release/v1.2.3
  • Loading branch information
rcastley authored Oct 12, 2024
2 parents f6aae6c + 401acc6 commit 6ad0059
Show file tree
Hide file tree
Showing 10 changed files with 1,391 additions and 190 deletions.
2 changes: 1 addition & 1 deletion iac/tf-anthos-gke/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ region = "us-central1"
zone = "us-central1-b"
cluster_name = "anthos-sample-cluster1"
sync_repo = "https://github.com/GoogleCloudPlatform/bank-of-anthos"
sync_branch = "release/v1.2.2"
sync_branch = "release/v1.2.3"
sync_rev = ""
policy_dir = "/kubernetes-manifests"
143 changes: 138 additions & 5 deletions kubernetes-manifests/accounts-db.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,149 @@
apiVersion: v1
data:
ACCOUNTS_DB_URI: postgresql://admin:admin@127.0.0.1:5432/accounts-db
ACCOUNTS_DB_URI: postgresql://accounts-admin:accounts-pwd@accounts-db:5432/accounts-db
POSTGRES_DB: accounts-db
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_PASSWORD: accounts-pwd
POSTGRES_USER: accounts-admin
kind: ConfigMap
metadata:
labels:
app: accounts-db
application: bank-of-splunk
cluster: staging
environment: development
team: accounts
tier: db
name: accounts-db-config
namespace: bank-of-anthos-staging
---
apiVersion: v1
kind: Service
metadata:
labels:
application: bank-of-splunk
environment: development
team: accounts
tier: db
name: accounts-db
spec:
ports:
- name: tcp
port: 5432
protocol: TCP
targetPort: 5432
selector:
app: accounts-db
application: bank-of-splunk
environment: development
team: accounts
tier: db
type: ClusterIP
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
application: bank-of-splunk
environment: development
team: accounts
tier: db
name: accounts-db
spec:
replicas: 1
selector:
matchLabels:
app: accounts-db
application: bank-of-splunk
environment: development
team: accounts
tier: db
serviceName: accounts-db
template:
metadata:
labels:
app: accounts-db
application: bank-of-splunk
environment: development
team: accounts
tier: db
spec:
containers:
- envFrom:
- configMapRef:
name: environment-config
- configMapRef:
name: accounts-db-config
- configMapRef:
name: demo-data-config
image: ghcr.io/splunk/bank-of-splunk/accounts-db:v1.2.3@sha256:fea9e1a74f9e919158a3ed7049f3da2b9016ef96a5e62ad606559bc494be2ee1
name: accounts-db
ports:
- containerPort: 5432
resources:
limits:
cpu: 250m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgresdb
subPath: postgres
serviceAccount: bank-of-anthos
serviceAccountName: default
volumes:
- emptyDir: {}
name: postgresdb
---
apiVersion: v1
kind: Namespace
metadata:
labels:
istio-injection: enabled
name: bank-of-anthos-development
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: bank-of-anthos
namespace: bank-of-anthos-development
---
apiVersion: v1
data:
DEMO_LOGIN_PASSWORD: bankofanthos
DEMO_LOGIN_USERNAME: testuser
USE_DEMO_DATA: "True"
kind: ConfigMap
metadata:
name: demo-data-config
namespace: bank-of-anthos-development
---
apiVersion: v1
data:
LOCAL_ROUTING_NUM: "883745000"
PUB_KEY_PATH: /tmp/.ssh/publickey
kind: ConfigMap
metadata:
name: environment-config
namespace: bank-of-anthos-development
---
apiVersion: v1
data:
BALANCES_API_ADDR: balancereader:8080
CONTACTS_API_ADDR: contacts:8080
HISTORY_API_ADDR: transactionhistory:8080
TRANSACTIONS_API_ADDR: ledgerwriter:8080
USERSERVICE_API_ADDR: userservice:8080
kind: ConfigMap
metadata:
name: service-api-config
namespace: bank-of-anthos-development
---
apiVersion: v1
data:
jwtRS256.key: LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUJWUUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQVQ4d2dnRTdBZ0VBQWtFQXZVY2FzVjhxbzVHdmlFRTQKNExtQVJVWkxON0tUZDJtSzh5RExieHlWdWxwVDluaXE4UU9ETkxvQ09IdVJWT3E3RUpWYVRTSGYxSk9MOTRkcAp2NU45Y1FJREFRQUJBa0F5Y0JnMDI5OUk1ekdYWlluNm1IUU9BY1ZaZWtUQnRXWkprNXVpYUVPZC9LNjNzSk9CCklveFF6OWxkZGJIWUxaeVhHV2hHd0tMeUIyOE5BOXJLYVJGaEFpRUE0ZXJua2pYVDNlRHhscm5HUzNLTWJXSDgKdlVVYWhxa29mK0Z3eEkzU3gvTUNJUURXZXpmT3RYZnIzOXY0MkRMaEVEcVZZZEJUWWpJZ2ZUelR1MGR1c0hjQwpDd0lnSUpOb3ROS0NMRnBGTzhDcDhUTWhRSnlDZnlBNXhQVWJXK1U4QjN1VHl6VUNJUUN3WkFIUHBIcU5xRHQyCmVnZk9CTlRKU2ZwVXVTdFVnT3JuanR2K2NtNU5aUUloQUp4ckprNU1od0h2VzZMcVNCemVqZzZwUkt3SnFiVXcKYWlobDVKbUZLR1dxCi0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
jwtRS256.key.pub: LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUZ3d0RRWUpLb1pJaHZjTkFRRUJCUUFEU3dBd1NBSkJBTDFIR3JGZktxT1JyNGhCT09DNWdFVkdTemV5azNkcAppdk1neTI4Y2xicGFVL1o0cXZFRGd6UzZBamg3a1ZUcXV4Q1ZXazBoMzlTVGkvZUhhYitUZlhFQ0F3RUFBUT09Ci0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQo=
kind: Secret
metadata:
name: jwt-key
namespace: bank-of-anthos-development
type: Opaque
Loading

0 comments on commit 6ad0059

Please sign in to comment.