cp
This commit is contained in:
parent
d117cf6965
commit
ec65ad5395
@ -1,41 +1,41 @@
|
|||||||
apiVersion: serving.knative.dev/v1
|
apiVersion: serving.knative.dev/v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: sereact
|
name: sereact
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: gcr.io/gen-lang-client-0424120530/sereact-api:latest
|
- image: gcr.io/gen-lang-client-0424120530/sereact-api:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: "1"
|
cpu: "1"
|
||||||
memory: "1Gi"
|
memory: "1Gi"
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_URI
|
- name: DATABASE_URI
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: sereact-db-uri
|
name: sereact-db-uri
|
||||||
key: latest
|
key: latest
|
||||||
- name: DATABASE_NAME
|
- name: DATABASE_NAME
|
||||||
value: "imagedb"
|
value: "imagedb"
|
||||||
- name: GCS_BUCKET_NAME
|
- name: GCS_BUCKET_NAME
|
||||||
value: "your-bucket-name"
|
value: "your-bucket-name"
|
||||||
- name: API_KEY_SECRET
|
- name: API_KEY_SECRET
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: sereact-api-key-secret
|
name: sereact-api-key-secret
|
||||||
key: latest
|
key: latest
|
||||||
- name: VECTOR_DB_API_KEY
|
- name: VECTOR_DB_API_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: sereact-vector-db-key
|
name: sereact-vector-db-key
|
||||||
key: latest
|
key: latest
|
||||||
- name: VECTOR_DB_ENVIRONMENT
|
- name: VECTOR_DB_ENVIRONMENT
|
||||||
value: "your-pinecone-env"
|
value: "your-pinecone-env"
|
||||||
- name: VECTOR_DB_INDEX_NAME
|
- name: VECTOR_DB_INDEX_NAME
|
||||||
value: "image-embeddings"
|
value: "image-embeddings"
|
||||||
- name: LOG_LEVEL
|
- name: LOG_LEVEL
|
||||||
value: "INFO"
|
value: "INFO"
|
||||||
@ -52,7 +52,6 @@ DEPLOY_TO_CLOUD_RUN=true PROJECT_ID=my-project-id REGION=us-west1 SERVICE_NAME=m
|
|||||||
|
|
||||||
**Environment Variables:**
|
**Environment Variables:**
|
||||||
All variables from the build script, plus:
|
All variables from the build script, plus:
|
||||||
- `DEPLOY_TO_CLOUD_RUN`: Set to "true" to deploy to Cloud Run (default: "false")
|
|
||||||
- `PROJECT_ID`: Google Cloud project ID (required for Cloud Run deployment)
|
- `PROJECT_ID`: Google Cloud project ID (required for Cloud Run deployment)
|
||||||
- `REGION`: Google Cloud region (default: "us-central1")
|
- `REGION`: Google Cloud region (default: "us-central1")
|
||||||
- `SERVICE_NAME`: Name for the Cloud Run service (default: "sereact-api")
|
- `SERVICE_NAME`: Name for the Cloud Run service (default: "sereact-api")
|
||||||
|
|||||||
@ -11,6 +11,4 @@ echo "Image pushed successfully"
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Image pushed to: ${FULL_IMAGE_NAME}"
|
echo "Image pushed to: ${FULL_IMAGE_NAME}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "To deploy to Cloud Run:"
|
|
||||||
echo "./scripts/deploy.sh"
|
|
||||||
Loading…
x
Reference in New Issue
Block a user