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

Fix probes #2

Merged
merged 4 commits into from
Sep 20, 2024
Merged
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
15 changes: 8 additions & 7 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ jobs:
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml
################ CHART TESTING LOCALLY WORKS. DOESN'T ALLOWS DISCOVERY ON GH ACTIONS.
# - name: Create kind cluster
# if: steps.list-changed.outputs.changed == 'true'
# uses: helm/[email protected]

# - name: Run chart-testing (install)
# if: steps.list-changed.outputs.changed == 'true'
# run: ct install --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: hi hu

hi:
cd charts/pulsejet-cluster && helm install pulsejet-cluster . && cd -

hu:
helm uninstall pulsejet-cluster
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Add helm repo with:
helm repo add jetengine https://jet-engine.github.io/charts
```

Install PulsejetDB Cluster with:
```
helm install pulsejet-cluster jetengine/pulsejet-cluster
```
2 changes: 1 addition & 1 deletion charts/pulsejet-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions charts/pulsejet-cluster/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: RUST_BACKTRACE
value: "0"
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "pulsejet-cluster.fullname" . }}:{{ .Values.service.port }}']
args: ['{{ include "pulsejet-cluster.fullname" . }}:{{ .Values.service.port }}/healthz']
restartPolicy: Never
8 changes: 6 additions & 2 deletions charts/pulsejet-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
replicaCount: 3

image:
repository: pulsejet
repository: docker.io/jetngine/pulsejet
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"
tag: "master"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -82,10 +82,14 @@ livenessProbe:
httpGet:
path: /healthz
port: 47044
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe:
httpGet:
path: /healthz
port: 47044
initialDelaySeconds: 10
periodSeconds: 5

autoscaling:
enabled: false
Expand Down
1 change: 1 addition & 0 deletions ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ remote: origin
chart-dirs:
- charts
validate-maintainers: false
helm-extra-args: --timeout 800s
Loading