Skip to content

Add helm chart deployment #328

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions deploy/helm/instructlab-bot/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
12 changes: 12 additions & 0 deletions deploy/helm/instructlab-bot/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies:
- name: redis
repository: oci://registry-1.docker.io/bitnamicharts
version: 17.11.3
- name: bot
repository: file://charts/bot
version: 0.1.0
- name: worker
repository: file://charts/worker
version: 0.1.0
digest: sha256:2b759ff33145ed85d113235e04860c771bfd5e2b30f76c304e023c6cc11c989a
generated: "2024-05-02T15:59:48.4504563-04:00"
25 changes: 25 additions & 0 deletions deploy/helm/instructlab-bot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v2
name: instructlab-bot
description: InstructLab bot
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
appVersion: "1.0.0"

dependencies:
- name: redis
repository: "oci://registry-1.docker.io/bitnamicharts"
version: 17.11.3
condition: redis.enabled
- name: bot
repository: "file://charts/bot"
version: "0.1.0"
alias: bot
condition: bot.enabled
- name: worker
repository: "file://charts/worker"
version: "0.1.0"
alias: worker
condition: worker.enabled
Binary file added deploy/helm/instructlab-bot/charts/bot-0.1.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions deploy/helm/instructlab-bot/charts/bot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v2
name: bot
description: Helm chart for bot
type: application
version: 0.1.0
37 changes: 37 additions & 0 deletions deploy/helm/instructlab-bot/charts/bot/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: bot
spec:
replicas: 1
strategy:
type: Recreate
template:
spec:
containers:
- image: {{ .Values.image }} # ghcr.io/instructlab/instructlab-bot/instructlab-gobot:main
env:
- name: ILBOT_GITHUB_INTEGRATION_ID
valueFrom:
secretKeyRef:
name: instructlab-bot
key: ILBOT_GITHUB_INTEGRATION_ID
- name: ILBOT_GITHUB_WEBHOOK_SECRET
valueFrom:
secretKeyRef:
name: instructlab-bot
key: ILBOT_GITHUB_WEBHOOK_SECRET
- name: ILBOT_GITHUB_APP_PRIVATE_KEY
valueFrom:
secretKeyRef:
name: instructlab-bot
key: ILBOT_GITHUB_APP_PRIVATE_KEY
name: bot
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
restartPolicy: Always
1 change: 1 addition & 0 deletions deploy/helm/instructlab-bot/charts/bot/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image: ghcr.io/instructlab/instructlab-bot/instructlab-gobot:main
Binary file not shown.
Binary file added deploy/helm/instructlab-bot/charts/worker-0.1.0.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions deploy/helm/instructlab-bot/charts/worker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v2
name: worker
description: Helm chart for worker
type: application
version: 0.1.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker
spec:
replicas: 1
template:
spec:
containers:
- env:
- name: ILWORKER_GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: instructlab-bot
key: ILWORKER_GITHUB_TOKEN
args:
- /instructlab-bot-worker
- --test
- --redis
- redis:6379
- generate
image: {{ .Values.image }} # ghcr.io/instructlab/instructlab-bot/instructlab-serve:main
name: worker
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
restartPolicy: Always
1 change: 1 addition & 0 deletions deploy/helm/instructlab-bot/charts/worker/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image: ghcr.io/instructlab/instructlab-bot/instructlab-gobot:main
1 change: 1 addition & 0 deletions deploy/helm/instructlab-bot/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
InstructLab Bot!
15 changes: 15 additions & 0 deletions deploy/helm/instructlab-bot/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Default values for instructlab-bot.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

bot:
enabled: true

worker:
enabled: true

redis:
enabled: true

Check failure on line 15 in deploy/helm/instructlab-bot/values.yaml

View workflow job for this annotation

GitHub Actions / ansible

yaml[trailing-spaces]

Trailing spaces
Loading