mirror of
https://github.com/hoshikawa2/nemo_guardrails_ci_cd.git
synced 2026-07-10 00:34:20 +00:00
first commit
This commit is contained in:
39
k8s/deployment.yaml
Normal file
39
k8s/deployment.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: guardrails-api
|
||||
namespace: guardrails
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: guardrails-api
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: guardrails-api
|
||||
spec:
|
||||
containers:
|
||||
- name: guardrails-api
|
||||
image: REPLACE_IMAGE_URI
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: OPENAI_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: guardrails-secrets
|
||||
key: OPENAI_API_KEY
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8080
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 20
|
||||
Reference in New Issue
Block a user