diff --git a/deploy/helm/instructlab-bot/.helmignore b/deploy/helm/instructlab-bot/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/deploy/helm/instructlab-bot/.helmignore @@ -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/ diff --git a/deploy/helm/instructlab-bot/Chart.lock b/deploy/helm/instructlab-bot/Chart.lock new file mode 100644 index 00000000..1f7579a9 --- /dev/null +++ b/deploy/helm/instructlab-bot/Chart.lock @@ -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" diff --git a/deploy/helm/instructlab-bot/Chart.yaml b/deploy/helm/instructlab-bot/Chart.yaml new file mode 100644 index 00000000..9ad9d254 --- /dev/null +++ b/deploy/helm/instructlab-bot/Chart.yaml @@ -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 diff --git a/deploy/helm/instructlab-bot/charts/bot-0.1.0.tgz b/deploy/helm/instructlab-bot/charts/bot-0.1.0.tgz new file mode 100644 index 00000000..d55f71c0 Binary files /dev/null and b/deploy/helm/instructlab-bot/charts/bot-0.1.0.tgz differ diff --git a/deploy/helm/instructlab-bot/charts/bot/Chart.yaml b/deploy/helm/instructlab-bot/charts/bot/Chart.yaml new file mode 100644 index 00000000..2c3f10ea --- /dev/null +++ b/deploy/helm/instructlab-bot/charts/bot/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: bot +description: Helm chart for bot +type: application +version: 0.1.0 diff --git a/deploy/helm/instructlab-bot/charts/bot/templates/deployment.yaml b/deploy/helm/instructlab-bot/charts/bot/templates/deployment.yaml new file mode 100644 index 00000000..5782bc8c --- /dev/null +++ b/deploy/helm/instructlab-bot/charts/bot/templates/deployment.yaml @@ -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 diff --git a/deploy/helm/instructlab-bot/charts/bot/values.yaml b/deploy/helm/instructlab-bot/charts/bot/values.yaml new file mode 100644 index 00000000..55a84c6e --- /dev/null +++ b/deploy/helm/instructlab-bot/charts/bot/values.yaml @@ -0,0 +1 @@ +image: ghcr.io/instructlab/instructlab-bot/instructlab-gobot:main diff --git a/deploy/helm/instructlab-bot/charts/redis-17.11.3.tgz b/deploy/helm/instructlab-bot/charts/redis-17.11.3.tgz new file mode 100644 index 00000000..9abc4a04 Binary files /dev/null and b/deploy/helm/instructlab-bot/charts/redis-17.11.3.tgz differ diff --git a/deploy/helm/instructlab-bot/charts/worker-0.1.0.tgz b/deploy/helm/instructlab-bot/charts/worker-0.1.0.tgz new file mode 100644 index 00000000..2e592b32 Binary files /dev/null and b/deploy/helm/instructlab-bot/charts/worker-0.1.0.tgz differ diff --git a/deploy/helm/instructlab-bot/charts/worker/Chart.yaml b/deploy/helm/instructlab-bot/charts/worker/Chart.yaml new file mode 100644 index 00000000..a35e8da9 --- /dev/null +++ b/deploy/helm/instructlab-bot/charts/worker/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: worker +description: Helm chart for worker +type: application +version: 0.1.0 diff --git a/deploy/helm/instructlab-bot/charts/worker/templates/deployment.yaml b/deploy/helm/instructlab-bot/charts/worker/templates/deployment.yaml new file mode 100644 index 00000000..06d33d15 --- /dev/null +++ b/deploy/helm/instructlab-bot/charts/worker/templates/deployment.yaml @@ -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 diff --git a/deploy/helm/instructlab-bot/charts/worker/values.yaml b/deploy/helm/instructlab-bot/charts/worker/values.yaml new file mode 100644 index 00000000..55a84c6e --- /dev/null +++ b/deploy/helm/instructlab-bot/charts/worker/values.yaml @@ -0,0 +1 @@ +image: ghcr.io/instructlab/instructlab-bot/instructlab-gobot:main diff --git a/deploy/helm/instructlab-bot/templates/NOTES.txt b/deploy/helm/instructlab-bot/templates/NOTES.txt new file mode 100644 index 00000000..27d262ff --- /dev/null +++ b/deploy/helm/instructlab-bot/templates/NOTES.txt @@ -0,0 +1 @@ +InstructLab Bot! diff --git a/deploy/helm/instructlab-bot/values.yaml b/deploy/helm/instructlab-bot/values.yaml new file mode 100644 index 00000000..e2c489a9 --- /dev/null +++ b/deploy/helm/instructlab-bot/values.yaml @@ -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 +