-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add service.yaml and improve push_test script
- Loading branch information
PolicyEngine[bot]
committed
Sep 5, 2024
1 parent
606af3a
commit b356037
Showing
2 changed files
with
155 additions
and
49 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
# apiVersion: serving.knative.dev/v1 | ||
# kind: Service | ||
# metadata: | ||
# name: test-service-run | ||
# spec: | ||
# template: | ||
# metadata: | ||
# annotations: | ||
# run.googleapis.com/client-name: cloud-console | ||
# spec: | ||
# containers: | ||
# - image: gcr.io/PROJECT_ID/test-service-run:latest | ||
# env: | ||
# - name: ENVIRONMENT | ||
# value: "test" | ||
apiVersion: serving.knative.dev/v1 | ||
kind: Service | ||
metadata: | ||
name: ${SERVICE_NAME} | ||
spec: | ||
template: | ||
metadata: | ||
annotations: | ||
autoscaling.knative.dev/maxScale: "10" | ||
spec: | ||
containers: | ||
- image: ${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG} | ||
ports: | ||
- containerPort: 8080 | ||
env: | ||
- name: POLICYENGINE_DB_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: policyengine-secrets | ||
key: db-password | ||
- name: POLICYENGINE_GITHUB_MICRODATA_AUTH_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: policyengine-secrets | ||
key: github-microdata-auth-token | ||
- name: ANTHROPIC_API_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: policyengine-secrets | ||
key: anthropic-api-key | ||
- name: OPENAI_API_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: policyengine-secrets | ||
key: openai-api-key | ||
resources: | ||
limits: | ||
cpu: 1000m | ||
memory: 512Mi |