Spaces:
Paused
Paused
hanoch.rahimi@gmail
commited on
Commit
·
d1282fb
1
Parent(s):
ba1f3e2
Added cloud run yaml configuration
Browse files- cloudrun.yaml +99 -0
cloudrun.yaml
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
apiVersion: serving.knative.dev/v1
|
| 2 |
+
kind: Service
|
| 3 |
+
metadata:
|
| 4 |
+
name: semsearchdemo
|
| 5 |
+
namespace: '498534912427'
|
| 6 |
+
selfLink: /apis/serving.knative.dev/v1/namespaces/498534912427/services/semsearchdemo
|
| 7 |
+
uid: 0bf13fb8-f62d-40fa-8ec6-4c780dd7952c
|
| 8 |
+
resourceVersion: AAYLRuUOLAU
|
| 9 |
+
generation: 6
|
| 10 |
+
creationTimestamp: '2023-11-27T18:34:47.852418Z'
|
| 11 |
+
labels:
|
| 12 |
+
managed-by: gcp-cloud-build-deploy-cloud-run
|
| 13 |
+
gcb-trigger-id: aa68a1e3-bf0d-42db-b215-34a0c57ff273
|
| 14 |
+
gcb-trigger-region: global
|
| 15 |
+
commit-sha: ba1f3e28950c11db3728e00de4e258ac53f566e7
|
| 16 |
+
gcb-build-id: 89027bd3-0c2a-4dce-9585-538e46ac2e6d
|
| 17 |
+
cloud.googleapis.com/location: europe-west1
|
| 18 |
+
annotations:
|
| 19 |
+
run.googleapis.com/client-name: cloud-console
|
| 20 |
+
serving.knative.dev/creator: [email protected]
|
| 21 |
+
serving.knative.dev/lastModifier: [email protected]
|
| 22 |
+
run.googleapis.com/operation-id: 285b4b89-b438-4a71-ae7b-22e44702abd8
|
| 23 |
+
run.googleapis.com/ingress: all
|
| 24 |
+
run.googleapis.com/ingress-status: all
|
| 25 |
+
spec:
|
| 26 |
+
template:
|
| 27 |
+
metadata:
|
| 28 |
+
labels:
|
| 29 |
+
client.knative.dev/nonce: d25b5ef1-1e87-425d-a413-58ebaed6d42a
|
| 30 |
+
managed-by: gcp-cloud-build-deploy-cloud-run
|
| 31 |
+
gcb-trigger-id: aa68a1e3-bf0d-42db-b215-34a0c57ff273
|
| 32 |
+
gcb-trigger-region: global
|
| 33 |
+
commit-sha: ba1f3e28950c11db3728e00de4e258ac53f566e7
|
| 34 |
+
gcb-build-id: 89027bd3-0c2a-4dce-9585-538e46ac2e6d
|
| 35 |
+
run.googleapis.com/startupProbeType: Default
|
| 36 |
+
annotations:
|
| 37 |
+
run.googleapis.com/client-name: cloud-console
|
| 38 |
+
run.googleapis.com/cloudsql-instances: pipe2-0:us-central1:raized-central-dev
|
| 39 |
+
autoscaling.knative.dev/maxScale: '1'
|
| 40 |
+
run.googleapis.com/startup-cpu-boost: 'true'
|
| 41 |
+
spec:
|
| 42 |
+
containerConcurrency: 80
|
| 43 |
+
timeoutSeconds: 300
|
| 44 |
+
serviceAccountName: [email protected]
|
| 45 |
+
containers:
|
| 46 |
+
- name: semsearchdemo-1
|
| 47 |
+
image: europe-west1-docker.pkg.dev/pipe2-0/cloud-run-source-deploy/semsearch-demo/semsearchdemo:ba1f3e28950c11db3728e00de4e258ac53f566e7
|
| 48 |
+
ports:
|
| 49 |
+
- name: http1
|
| 50 |
+
containerPort: 8501
|
| 51 |
+
env:
|
| 52 |
+
- name: PINE_CONE_ENVIRONMENT
|
| 53 |
+
value: asia-southeast1-gcp-free
|
| 54 |
+
- name: PINECONE_API_KEY
|
| 55 |
+
value: 96470e4e-0c71-45ef-b955-bf10ac5079e4
|
| 56 |
+
- name: OPENAI_API_KEY
|
| 57 |
+
value: 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
|
| 58 |
+
- name: OPENAI_ORGANIZATION_ID
|
| 59 |
+
value: org-EEpryZYLlh0mZJOGxVko32qP
|
| 60 |
+
- name: SKIP_PASSWORD
|
| 61 |
+
value: 'False'
|
| 62 |
+
- name: password
|
| 63 |
+
value: R4123d
|
| 64 |
+
- name: TOKENIZERS_PARALLELISM
|
| 65 |
+
value: 'false'
|
| 66 |
+
resources:
|
| 67 |
+
limits:
|
| 68 |
+
cpu: 1000m
|
| 69 |
+
memory: 1Gi
|
| 70 |
+
startupProbe:
|
| 71 |
+
timeoutSeconds: 240
|
| 72 |
+
periodSeconds: 240
|
| 73 |
+
failureThreshold: 1
|
| 74 |
+
tcpSocket:
|
| 75 |
+
port: 8501
|
| 76 |
+
traffic:
|
| 77 |
+
- percent: 100
|
| 78 |
+
latestRevision: true
|
| 79 |
+
status:
|
| 80 |
+
observedGeneration: 6
|
| 81 |
+
conditions:
|
| 82 |
+
- type: Ready
|
| 83 |
+
status: 'True'
|
| 84 |
+
lastTransitionTime: '2023-11-29T09:09:38.733697Z'
|
| 85 |
+
- type: ConfigurationsReady
|
| 86 |
+
status: 'True'
|
| 87 |
+
lastTransitionTime: '2023-11-29T09:09:20.559815Z'
|
| 88 |
+
- type: RoutesReady
|
| 89 |
+
status: 'True'
|
| 90 |
+
lastTransitionTime: '2023-11-29T09:09:38.791429Z'
|
| 91 |
+
latestReadyRevisionName: semsearchdemo-00004-9r9
|
| 92 |
+
latestCreatedRevisionName: semsearchdemo-00004-9r9
|
| 93 |
+
traffic:
|
| 94 |
+
- revisionName: semsearchdemo-00004-9r9
|
| 95 |
+
percent: 100
|
| 96 |
+
latestRevision: true
|
| 97 |
+
url: https://semsearchdemo-2gq2ufowtq-ew.a.run.app
|
| 98 |
+
address:
|
| 99 |
+
url: https://semsearchdemo-2gq2ufowtq-ew.a.run.app
|