Created
June 14, 2023 13:13
-
-
Save alevz257/f28c7fce8bb3d0587e77581fce1957a5 to your computer and use it in GitHub Desktop.
This file contains 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: serving.knative.dev/v1 | |
kind: Service | |
metadata: | |
name: frontend-crun | |
labels: | |
cloud.googleapis.com/location: asia-southeast2 | |
annotations: | |
run.googleapis.com/description: boa-frontend-crun | |
run.googleapis.com/ingress: all | |
run.googleapis.com/launch-stage: BETA | |
spec: | |
template: | |
metadata: | |
annotations: | |
run.googleapis.com/vpc-access-connector: serverless-vpc-gke | |
run.googleapis.com/vpc-access-egress: all-traffic | |
spec: | |
serviceAccountName: <service account for running CloudRun> | |
volumes: | |
- name: boa-jwt-pub | |
secret: | |
secretName: boa-jwt-pub | |
items: | |
- key: latest | |
path: boa-jwt-pub | |
containers: | |
- image: us-central1-docker.pkg.dev/bank-of-anthos-ci/bank-of-anthos/frontend:v0.6.0@sha256:eaa077984dd8f741fc55cf75d4d3bb3f251ddb19d2b9c15cb3aea287826679d2 | |
name: frontend-crun | |
env: | |
- name: VERSION | |
value: v0.6.0 | |
- name: ENABLE_TRACING | |
value: "true" | |
- name: SCHEME | |
value: http | |
- name: LOG_LEVEL | |
value: info | |
- name: DEFAULT_USERNAME | |
value: "testuser" | |
- name: DEFAULT_PASSWORD | |
value: "bankofanthos" | |
- name: LOCAL_ROUTING_NUM | |
value: "88345000" | |
- name: PUB_KEY_PATH | |
value: "/tmp/.ssh/boa-jwt-pub" | |
- name: TRANSACTIONS_API_ADDR | |
value: "ledgerwriter.crun.boa" | |
- name: BALANCES_API_ADDR | |
value: "balancereader.crun.boa" | |
- name: HISTORY_API_ADDR | |
value: "transactionhistory.crun.boa" | |
- name: CONTACTS_API_ADDR | |
value: "contacts.crun.boa" | |
- name: USERSERVICE_API_ADDR | |
value: "userservice.crun.boa" | |
resources: | |
limits: | |
cpu: 250m | |
memory: 128Mi | |
volumeMounts: | |
- name: boa-jwt-pub | |
readOnly: true | |
mountPath: /tmp/.ssh | |
livenessProbe: | |
httpGet: | |
path: /ready | |
port: 8080 | |
initialDelaySeconds: 60 | |
periodSeconds: 15 | |
timeoutSeconds: 10 | |
startupProbe: | |
httpGet: | |
path: /ready | |
port: 8080 | |
initialDelaySeconds: 10 | |
periodSeconds: 5 | |
timeoutSeconds: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment