diff --git a/deployment/cloud-run/service.yaml b/deployment/cloud-run/service.yaml index fa3dd32..51a7c28 100644 --- a/deployment/cloud-run/service.yaml +++ b/deployment/cloud-run/service.yaml @@ -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" \ No newline at end of file diff --git a/scripts/README.md b/scripts/README.md index 56fa914..d6bc3a3 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -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") diff --git a/scripts/push.sh b/scripts/push.sh index 512693f..dc102b0 100644 --- a/scripts/push.sh +++ b/scripts/push.sh @@ -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" \ No newline at end of file +echo "" \ No newline at end of file