Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add helm chart #318

Merged
merged 10 commits into from
Apr 27, 2023
Prev Previous commit
Next Next commit
Address PR feedback (#1)
* remove K8SGPT_BASEURL

* add default model

* add user-specified Deployment annotations

* remove Values.secret.enabled

---------

Signed-off-by: Tyler Gillson <[email protected]>
  • Loading branch information
TylerGillson committed Apr 27, 2023
commit 9ec2f91c48ffde5805dbb6d915fc68c19ee626cb
8 changes: 5 additions & 3 deletions charts/k8sgpt/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ kind: Deployment
metadata:
name: {{ template "k8sgpt.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
{{- if .Values.deployment.annotations }}
annotations:
{{- toYaml .Values.deployment.annotations | nindent 4 }}
{{- end }}
labels:
{{- include "k8sgpt.labels" . | nindent 4 }}
spec:
Expand Down Expand Up @@ -34,9 +38,7 @@ spec:
value: {{ .Values.deployment.env.model }}
- name: K8SGPT_BACKEND
value: {{ .Values.deployment.env.backend }}
- name: K8SGPT_BASEURL
value: {{ .Values.deployment.env.baseUrl }}
{{- if .Values.secret.enabled }}
{{- if .Values.secret.secretKey }}
- name: K8SGPT_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/k8sgpt/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.secret.enabled }}
{{- if .Values.secret.secretKey }}
apiVersion: v1
data:
secret-key: {{ .Values.secret.secretKey }}
Expand Down
5 changes: 2 additions & 3 deletions charts/k8sgpt/values.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
deployment:
image: ghcr.io/k8sgpt-ai/k8sgpt:v0.2.4
TylerGillson marked this conversation as resolved.
Show resolved Hide resolved
imagePullPolicy: Always
annotations: {}
env:
model: ""
model: "gpt-3.5-turbo"
backend: "openai" # one of: [ openai | llama ]
baseUrl: ""
resources:
limits:
cpu: "1"
Expand All @@ -14,7 +14,6 @@ deployment:
memory: "156Mi"

secret:
enabled: false
secretKey: "" # base64 encoded OpenAI token

service:
Expand Down