Skip to content

Commit

Permalink
move gateway to host network
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Sep 2, 2024
1 parent 3bc9002 commit 24e3ace
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
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 9064 -cip 10.47.255.255 -pvlist /config/pvlist -access /config/access -log /dev/stdout -debug 1"
env:
- name: IOC_NAME
value: {{ .Release.Name }}
Expand Down
25 changes: 25 additions & 0 deletions services/cagateway/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 24e3ace

Please sign in to comment.