Skip to content

Commit 8183266

Browse files
committed
Added Helm charts to create an instrument server for TEM workflow
1 parent 5c94171 commit 8183266

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

Helm/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: murfey-services
33
description: Umbrella Helm chart for deploying the servers and daemons needed to enable Murfey to transfer and process data
44
version: 0.16.12
55
dependencies:
6+
- name: murfey-instrument-server-clem
67
- name: murfey-instrument-server-clem
78
- name: murfey-server
89
- name: murfey-rsync
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: v1
2+
name: murfey-instrument-server-tem
3+
description: Helm chart for deploying a Murfey instrument server, which executes orders to detect, modify, and transfer files on the instrument PC, and notifies the backend server about transferred files
4+
version: 0.16.12
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: {{ .Values.appName }}
5+
namespace: {{ .Values.global.namespace }}
6+
labels:
7+
app: {{ .Values.appName }}
8+
spec:
9+
type: LoadBalancer
10+
externalTrafficPolicy: Cluster
11+
ports:
12+
{{- toYaml .Values.servicePorts | nindent 2 }}
13+
selector:
14+
app: {{ .Values.appName }}
15+
---
16+
apiVersion: apps/v1
17+
kind: Deployment
18+
metadata:
19+
name: {{ .Values.appName }}
20+
namespace: {{ .Values.global.namespace }}
21+
labels:
22+
app: {{ .Values.appName }}
23+
spec:
24+
replicas: {{ .Values.replicas }}
25+
selector:
26+
matchLabels:
27+
app: {{ .Values.appName }}
28+
template:
29+
metadata:
30+
labels:
31+
app: {{ .Values.appName }}
32+
spec:
33+
securityContext:
34+
runAsUser: {{ .Values.global.runAsUser }}
35+
runAsGroup: {{ .Values.global.runAsGroup }}
36+
volumes:
37+
# Mount config files from secrets
38+
- name: murfey-client-config
39+
secret:
40+
secretName: {{ .Values.global.murfeyClientConfigCLEMSecretName }}
41+
items:
42+
- key: {{ .Values.global.murfeyClientConfigCLEMFileName }}
43+
path: .murfey
44+
# Mount data directories
45+
{{- toYaml .Values.extraVolumes | nindent 8 }}
46+
containers:
47+
- name: {{ .Values.appName }}
48+
image: {{ .Values.image }}
49+
imagePullPolicy: Always
50+
securityContext:
51+
privileged: false
52+
volumeMounts:
53+
# Mount Murfey client config
54+
- name: murfey-client-config
55+
mountPath: /murfey/config/.murfey
56+
subPath: .murfey
57+
readOnly: false
58+
# Mount data directories
59+
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
60+
env:
61+
- name: MURFEY_CLIENT_CONFIG_HOME
62+
value: "/tmp"
63+
ports:
64+
- containerPort: {{ .Values.containerPort }}
65+
command:
66+
{{- toYaml .Values.command | nindent 12 }}
67+
args:
68+
{{- toYaml .Values.args | nindent 12 }}

0 commit comments

Comments
 (0)