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