Skip to content

Commit

Permalink
Refactor Kubernetes deployment to use environment variable for OpenAI…
Browse files Browse the repository at this point in the history
… API key
  • Loading branch information
nheek committed Oct 12, 2024
1 parent bb3735e commit 6b6bb1e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ spec:
containers:
- name: motto
image: nheek/motto:latest
envFrom:
- secretRef:
name: motto-secret
env:
- name: NEXT_PUBLIC_OPEN_AI_API_KEY
valueFrom:
secretKeyRef:
name: motto-secret
key: NEXT_PUBLIC_OPEN_AI_API_KEY
ports:
- containerPort: 3000
- containerPort: 3000

0 comments on commit 6b6bb1e

Please sign in to comment.