Skip to content

Commit

Permalink
fix cagateway example deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Nov 8, 2024
1 parent b24020b commit 4cae2ad
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
7 changes: 7 additions & 0 deletions services/cagateway/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# To add a CA Gateway to talk to non-network host IOCs:

module load pollux
helm upgrade --install -n p47-beamline cagateway services/cagateway

export EPICS_CA_ADDR_LIST=172.23.168.193:9064
caget XXX
2 changes: 1 addition & 1 deletion services/cagateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
- bash
args:
- "-c"
- "/epics/gateway -sport 9064 -cip 172.23.255.255 -pvlist /config/pvlist -access /config/access -log /dev/stdout -debug 1"
- "/epics/gateway -sport {{ .Values.ca_port }} -cip 172.23.255.255 -pvlist /config/pvlist -access /config/access -log /dev/stdout -debug 1"
env:
- name: IOC_NAME
value: {{ .Release.Name }}
Expand Down
22 changes: 22 additions & 0 deletions services/cagateway/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

---
kind: Service
apiVersion: v1
metadata:
name: {{ .Release.Name }}
labels:
app: {{ .Release.Name }}
spec:
type: LoadBalancer
ports:
- name: {{ .Release.Name }}-tcp
port: {{ .Values.ca_port }}
protocol: TCP
targetPort: {{ .Values.ca_port }}
- name: {{ .Release.Name }}-udp
port: {{ .Values.ca_port }}
protocol: UDP
targetPort: {{ .Values.ca_port }}
sessionAffinity: None
selector:
app: {{ .Release.Name }}
1 change: 1 addition & 0 deletions services/cagateway/values.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
image: ghcr.io/epics-containers/docker-ca-gateway-debug:2.1.3ec1
ca_port: 9064

0 comments on commit 4cae2ad

Please sign in to comment.