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 port exposure #1

Merged
merged 12 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
29 changes: 17 additions & 12 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,39 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@v1
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.14.4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: '3.x'
check-latest: true

- name: Install chart-testing
uses: helm/chart-testing-action@v2.0.1
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
echo "changed=true" >> "$GITHUB_OUTPUT"
fi

- name: Run chart-testing (lint)
run: ct lint
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml

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

- name: Run chart-testing (install)
run: ct install
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }} --config ct.yaml
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
# JetEngine Helm Chart Repository
Jet-Engine Helm Charts

Add helm repo with:
```
helm repo add jetengine https://jet-engine.github.io/charts
```

```
helm install pulsejet-cluster jetengine/pulsejet-cluster
```
10 changes: 9 additions & 1 deletion charts/pulsejet-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ 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.1
version: 0.1.2

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

# Maintainers List
maintainers:
- name: JetEngine Team
email: [email protected]

# PulsejetDB Icon
icon: https://cdn.prod.website-files.com/65f10191f1154a9c3b042f81/6656779e0f11d6ed2ea15641_pulsejetdb_1080x1080-p-500.png
14 changes: 7 additions & 7 deletions charts/pulsejet-cluster/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
- name: httpapi
containerPort: {{ .Values.service.port }}
protocol: TCP
- name: grpc
containerPort: { { .Values.service.grpcPort } }
- name: grpcapi
containerPort: {{ .Values.service.grpcPort }}
protocol: TCP
- name: grpc
containerPort: { { .Values.service.clusterPort } }
- name: cluster
containerPort: {{ .Values.service.clusterPort }}
protocol: TCP
- name: http
containerPort: { { .Values.service.dashboardPort } }
- name: dashboard
containerPort: {{ .Values.service.dashboardPort }}
protocol: TCP
env:
- name: POD_IP
Expand Down
16 changes: 8 additions & 8 deletions charts/pulsejet-cluster/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ spec:
targetPort: {{ .Values.service.port }}
protocol: TCP
name: http
- port: { { .Values.service.grpcPort } }
targetPort: { { .Values.service.grpcPort } }
- port: {{ .Values.service.grpcPort }}
targetPort: {{ .Values.service.grpcPort }}
protocol: TCP
name: grpc
- port: { { .Values.service.clusterPort } }
targetPort: { { .Values.service.clusterPort } }
- port: {{ .Values.service.clusterPort }}
targetPort: {{ .Values.service.clusterPort }}
protocol: TCP
name: grpc
- port: { { .Values.service.dashboardPort } }
targetPort: { { .Values.service.dashboardPort } }
name: cluster
- port: {{ .Values.service.dashboardPort }}
targetPort: {{ .Values.service.dashboardPort }}
protocol: TCP
name: http
name: dash
selector:
{{- include "pulsejet-cluster.selectorLabels" . | nindent 4 }}
26 changes: 13 additions & 13 deletions charts/pulsejet-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ ingress:
enabled: false
className: ""
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/affinity: "cookie"
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/affinity: "cookie"
# kubernetes.io/tls-acme: "true"
hosts:
- host: pulsejet-cluster.default.svc
Expand All @@ -75,17 +75,17 @@ resources: {}
# cpu: 100m
# memory: 128Mi

livenessProbe: null
readinessProbe: null

#livenessProbe:
# httpGet:
# path: /healthz
# port: 8080
#readinessProbe:
# httpGet:
# path: /healthz
# port: 8080
# livenessProbe: null
# readinessProbe: null

livenessProbe:
httpGet:
path: /healthz
port: 47044
readinessProbe:
httpGet:
path: /healthz
port: 47044

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 @@ -2,3 +2,4 @@
remote: origin
chart-dirs:
- charts
validate-maintainers: false
Loading