diff --git a/services/cagateway/README.md b/services/cagateway/README.md new file mode 100644 index 0000000..5852236 --- /dev/null +++ b/services/cagateway/README.md @@ -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 diff --git a/services/cagateway/templates/deployment.yaml b/services/cagateway/templates/deployment.yaml index 48c8dc6..f6e7322 100644 --- a/services/cagateway/templates/deployment.yaml +++ b/services/cagateway/templates/deployment.yaml @@ -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 }} diff --git a/services/cagateway/templates/service.yaml b/services/cagateway/templates/service.yaml new file mode 100644 index 0000000..eb182ca --- /dev/null +++ b/services/cagateway/templates/service.yaml @@ -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 }} diff --git a/services/cagateway/values.yaml b/services/cagateway/values.yaml index a839522..a156d14 100644 --- a/services/cagateway/values.yaml +++ b/services/cagateway/values.yaml @@ -1 +1,2 @@ image: ghcr.io/epics-containers/docker-ca-gateway-debug:2.1.3ec1 +ca_port: 9064