-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from hatchet-dev/belanger/improve-quickstart
feat: better quickstart
- Loading branch information
Showing
10 changed files
with
174 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ apiVersion: v2 | |
name: hatchet-api | ||
description: A Helm chart for deploying Hatchet API components on Kubernetes. | ||
type: application | ||
version: 0.5.0 | ||
version: 0.6.0 | ||
maintainers: | ||
- name: Hatchet Engineering | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{{- if .Values.setupJob.enabled }} | ||
# create a role and rolebinding to write to the configmap | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: hatchet-config-writer | ||
labels: | ||
{{- include "hatchet.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["configmaps", "secrets"] | ||
verbs: ["get", "create", "update", "patch", "delete"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: hatchet-config-writer | ||
labels: | ||
{{- include "hatchet.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: hatchet-config-writer | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "hatchet.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: "{{ .Release.Name | trunc 20 }}-{{ randAlphaNum 10 | lower }}" | ||
labels: | ||
{{- include "hatchet.labels" . | nindent 4 }} | ||
spec: | ||
backoffLimit: 1 | ||
activeDeadlineSeconds: 300 | ||
template: | ||
metadata: | ||
name: {{ template "hatchet.fullname" . }}-migration | ||
labels: | ||
{{- include "hatchet.labels" . | nindent 8 }} | ||
spec: | ||
restartPolicy: Never | ||
shareProcessNamespace: true | ||
serviceAccountName: {{ template "hatchet.serviceAccountName" . }} | ||
{{- if .Values.priorityClassName }} | ||
priorityClassName: "{{ .Values.priorityClassName }}" | ||
{{- end }} | ||
initContainers: | ||
# Run migrations as an init container | ||
{{- if .Values.migrationJob.enabled }} | ||
- name: migration-job | ||
image: "{{ .Values.migrationJob.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.migrationJob.image.tag }}" | ||
imagePullPolicy: Always | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- ./atlas-apply.sh | ||
securityContext: | ||
capabilities: | ||
add: | ||
- SYS_PTRACE | ||
env: | ||
{{- range $key, $value := .Values.env }} | ||
- name: "{{ $key }}" | ||
value: "{{ $value }}" | ||
{{- end }} | ||
envFrom: | ||
{{ toYaml .Values.envFrom | indent 10 }} | ||
{{- end }} | ||
{{- if .Values.seedJob.enabled }} | ||
- name: seed-job | ||
image: "{{ .Values.setupJob.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.setupJob.image.tag }}" | ||
imagePullPolicy: Always | ||
# this command requires read-write access on the hatchet-config configmap | ||
command: ["/hatchet/hatchet-admin", "quickstart", "--skip", "certs", "--skip", "keys"] | ||
securityContext: | ||
capabilities: | ||
add: | ||
- SYS_PTRACE | ||
env: | ||
{{- range $key, $value := .Values.env }} | ||
- name: "{{ $key }}" | ||
value: "{{ $value }}" | ||
{{- end }} | ||
envFrom: | ||
{{ toYaml .Values.envFrom | indent 10 }} | ||
{{- end }} | ||
{{- if and (not .Values.migrationJob.enabled) (not .Values.seedJob.enabled) }} | ||
[] | ||
{{- end }} | ||
containers: | ||
- name: setup-job | ||
image: "{{ .Values.setupJob.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.setupJob.image.tag }}" | ||
imagePullPolicy: Always | ||
# this command requires read-write access on the hatchet-config configmap | ||
command: ["/hatchet/hatchet-admin", "k8s", "quickstart", "--namespace", "{{ .Release.Namespace }}"] | ||
securityContext: | ||
capabilities: | ||
add: | ||
- SYS_PTRACE | ||
env: | ||
{{- range $key, $value := .Values.env }} | ||
- name: "{{ $key }}" | ||
value: "{{ $value }}" | ||
{{- end }} | ||
envFrom: | ||
{{ toYaml .Values.envFrom | indent 10 }} | ||
- name: setup-worker-token | ||
image: "{{ .Values.setupJob.image.repository }}:{{ required "Please set a value for .Values.image.tag" .Values.setupJob.image.tag }}" | ||
imagePullPolicy: Always | ||
# this command requires read-write access on the hatchet-config configmap | ||
command: ["/hatchet/hatchet-admin", "k8s", "create-worker-token", "--namespace", "{{ .Release.Namespace }}"] | ||
securityContext: | ||
capabilities: | ||
add: | ||
- SYS_PTRACE | ||
env: | ||
{{- range $key, $value := .Values.env }} | ||
- name: "{{ $key }}" | ||
value: "{{ $value }}" | ||
{{- end }} | ||
envFrom: | ||
{{ toYaml .Values.deploymentEnvFrom | nindent 10 }} | ||
{{- if .Values.envFrom }} | ||
{{ toYaml .Values.envFrom | nindent 10 }} | ||
{{- end }} | ||
{{- with .Values.extraContainers }} | ||
{{ toYaml . | indent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ apiVersion: v2 | |
name: hatchet-frontend | ||
description: A Helm chart for deploying a frontend static file server on Kubernetes. | ||
type: application | ||
version: 0.5.0 | ||
version: 0.6.0 | ||
maintainers: | ||
- name: Hatchet Engineering | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
dependencies: | ||
- name: hatchet-api | ||
repository: file://../hatchet-api | ||
version: 0.5.0 | ||
version: 0.6.0 | ||
- name: hatchet-api | ||
repository: file://../hatchet-api | ||
version: 0.5.0 | ||
version: 0.6.0 | ||
- name: hatchet-frontend | ||
repository: file://../hatchet-frontend | ||
version: 0.5.0 | ||
version: 0.6.0 | ||
- name: postgresql | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 14.3.3 | ||
- name: rabbitmq | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 12.15.0 | ||
digest: sha256:2ce45e960b781a4d24cfe7da62528b1d9e8627243a8d5374ec27b01ec1d99b10 | ||
generated: "2024-08-20T15:58:44.184303-04:00" | ||
digest: sha256:9a33ce0d42d2ee3ea4d6205e51cf7f06ba2192a4250fd2739a04b85db5a3f8d9 | ||
generated: "2024-08-22T17:26:47.846473-04:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,25 +2,25 @@ apiVersion: v2 | |
name: hatchet-stack | ||
description: A Helm chart for deploying Hatchet on Kubernetes together with a PostgreSQL database and RabbitMQ. | ||
type: application | ||
version: 0.5.0 | ||
version: 0.6.0 | ||
maintainers: | ||
- name: Hatchet Engineering | ||
email: [email protected] | ||
dependencies: | ||
- name: "hatchet-api" | ||
condition: api.enabled | ||
repository: "file://../hatchet-api" | ||
version: "^0.5.0" | ||
version: "^0.6.0" | ||
alias: api | ||
- name: "hatchet-api" | ||
condition: engine.enabled | ||
repository: "file://../hatchet-api" | ||
version: "^0.5.0" | ||
version: "^0.6.0" | ||
alias: engine | ||
- name: "hatchet-frontend" | ||
condition: frontend.enabled | ||
repository: "file://../hatchet-frontend" | ||
version: "^0.5.0" | ||
version: "^0.6.0" | ||
alias: frontend | ||
- name: "postgresql" | ||
condition: postgres.enabled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters