-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* helm chart action - initial commit * deprecate chart older than 3 years * helm chart action - initial commit * Enable action for non-main branch * Added chart version check * Added chart version check * Added chart version check * Added chart version check * Added chart version check * Test run * Test run * Test run * Test run * Test run * Test run * Test run * Test run * Cleanup * Cleanup * Chart updates for R2024b * Add Quick Start instructions to readme (#30) * Add Quick Start instructions to readme * Update README.md --------- Co-authored-by: esteinerMW <[email protected]> Co-authored-by: Eitan Steiner <[email protected]> Co-authored-by: EUdler <[email protected]>
- Loading branch information
1 parent
a3faedd
commit 7bbf2ce
Showing
9 changed files
with
234 additions
and
76 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Prerelease Helm Chart | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- Helm_artifacts | ||
|
||
env: | ||
HELM_CHART_VERSION: 1.1.0 | ||
MATLAB_APP_VERSION: "R2024b" | ||
|
||
jobs: | ||
release-helm-chart: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
|
||
- name: Check that chart exists | ||
run: | | ||
CHART_DIR="releases/${{ env.MATLAB_APP_VERSION }}/matlab-prodserver" && cat ${CHART_DIR}/Chart.yaml | ||
echo "CHART_DIR=${CHART_DIR}" >> $GITHUB_ENV # Add to env if exists | ||
- name: Check chart versions | ||
run: | | ||
grep 'version: ${{ env.HELM_CHART_VERSION }}' ${CHART_DIR}/Chart.yaml && grep 'appVersion: "${{ env.MATLAB_APP_VERSION }}"' ${CHART_DIR}/Chart.yaml | ||
- name: Package the chart | ||
run: helm package ${CHART_DIR} --version ${{ env.HELM_CHART_VERSION }} --app-version ${{ env.MATLAB_APP_VERSION }} | ||
|
||
- name: Login to GitHub Container Registry | ||
run: echo ${{ secrets.CR_TOKEN }} | helm registry login ${{ secrets.MATHWORKS_REGISTRY }} --username ${{ secrets.CR_USER }} --password-stdin | ||
|
||
- name: Deploy the chart | ||
run: helm push matlab-prodserver-k8s-${{ env.HELM_CHART_VERSION }}.tgz oci://${{ secrets.MATHWORKS_REGISTRY }} | ||
|
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
49 changes: 0 additions & 49 deletions
49
releases/R2021b/matlab-prodserver/templates/mps-1-service-ingress.yaml
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
releases/R2021b/matlab-prodserver/Chart.yaml → releases/R2024b/matlab-prodserver/Chart.yaml
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,5 +1,5 @@ | ||
apiVersion: v2 | ||
appVersion: "R2021b" | ||
appVersion: "R2024b" | ||
description: MATLAB Production Server Helm chart for Kubernetes | ||
name: matlab-prodserver-k8s | ||
version: 0.1.0 | ||
version: 1.1.0 |
83 changes: 83 additions & 0 deletions
83
releases/R2024b/matlab-prodserver/templates/mps-1-service-ingress.yaml
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,83 @@ | ||
# | ||
# Expose MATLAB Production Server internal endpoint | ||
# | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: matlab-production-server | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: mps | ||
release: {{ .Release.Name }} | ||
spec: | ||
selector: | ||
app: mps | ||
ports: | ||
- name: mps-port | ||
port: 9910 | ||
targetPort: 9910 | ||
type: ClusterIP | ||
|
||
--- | ||
{{- if .Values.global.ingressController.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: matlab-production-server-ingress | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
release: {{ .Release.Name }} | ||
annotations: | ||
{{ if .Values.global.ingressController }} | ||
## set ingress-conroller vendor-specific annotations: | ||
{{- range $key, $value := .Values.global.ingressController.annotations }} | ||
{{ $key }}: {{ quote $value }} | ||
{{- end }} | ||
{{ end }} | ||
spec: | ||
ingressClassName: {{ .Values.global.ingressController.name }} | ||
{{ if .Values.global.ingressController.tls.enabled }} | ||
tls: | ||
- hosts: | ||
- {{ .Values.global.ingressController.domainBase }} | ||
{{- if .Values.global.ingressController.tls.secretName }} | ||
secretName: {{ .Values.global.ingressController.tls.secretName }} | ||
{{- end }} | ||
{{ end }} | ||
|
||
rules: | ||
- host: {{ .Values.global.ingressController.domainBase }} | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: matlab-production-server | ||
port: | ||
number: 9910 | ||
{{- end }} | ||
|
||
--- | ||
{{ if and (.Values.optionalSettings.Prometheus.enabled) (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") }} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: matlab-production-server-monitor | ||
labels: | ||
app: mps | ||
app.kubernetes.io/part-of: {{ .Values.optionalSettings.Prometheus.matchOn }} | ||
release: {{ .Values.optionalSettings.Prometheus.matchOn }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: mps | ||
release: {{ .Release.Name }} | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace }} | ||
endpoints: | ||
- port: mps-port | ||
path: /api/metrics | ||
{{ 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
Oops, something went wrong.