From 24e3ace06bf5dc257c19b3068a35510ab64d4508 Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Mon, 2 Sep 2024 12:02:29 +0100 Subject: [PATCH] move gateway to host network --- services/cagateway/templates/deployment.yaml | 2 +- services/cagateway/templates/service.yaml | 25 ++++++++++++++++++++ services/values.yaml | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 services/cagateway/templates/service.yaml diff --git a/services/cagateway/templates/deployment.yaml b/services/cagateway/templates/deployment.yaml index 48c8dc6..8054dc3 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 9064 -cip 10.47.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..056a953 --- /dev/null +++ b/services/cagateway/templates/service.yaml @@ -0,0 +1,25 @@ +# hard coded fixed IP gateway service (for POC only - will rationalize later) + +# not using this as gateway is run as host network right now + +# kind: Service +# apiVersion: v1 +# metadata: +# name: {{ .Release.Name }} +# labels: +# app: {{ .Release.Name }} +# spec: +# type: LoadBalancer +# ports: +# - name: channel-access +# port: 9064 +# protocol: TCP +# targetPort: 9064 +# - name: channel-access-udp +# port: 9064 +# protocol: UDP +# targetPort: 9064 +# sessionAffinity: None +# loadBalancerIP: 172.23.168.216 +# selector: +# app: {{ .Release.Name }} diff --git a/services/values.yaml b/services/values.yaml index 37667b3..12e82c2 100644 --- a/services/values.yaml +++ b/services/values.yaml @@ -10,7 +10,7 @@ global: ioc-instance: # useHostNetwork - use host network for IOC - required for Channel Access # to work outside of the cluster - hostNetwork: false + hostNetwork: true # affinity and tolerations to get the right nodes on pollux securityContext: