From 0b07366dc3e2aaae28a362f43ba5ae907433f25c Mon Sep 17 00:00:00 2001 From: David Ko Date: Tue, 30 Nov 2021 18:21:18 +0800 Subject: [PATCH] Add headless services for instance manager pods Signed-off-by: David Ko (cherry picked from commit a719fd64fe2426b51343cfa66839a826e008a6cd) --- chart/templates/services.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 chart/templates/services.yaml diff --git a/chart/templates/services.yaml b/chart/templates/services.yaml new file mode 100644 index 0000000..6afeb7c --- /dev/null +++ b/chart/templates/services.yaml @@ -0,0 +1,24 @@ +--- +apiVersion: v1 +kind: Service +metadata: + labels: {{- include "longhorn.labels" . | nindent 4 }} + name: longhorn-engine-manager + namespace: longhorn-system +spec: + clusterIP: None + selector: + longhorn.io/component: instance-manager + longhorn.io/instance-manager-type: engine +--- +apiVersion: v1 +kind: Service +metadata: + labels: {{- include "longhorn.labels" . | nindent 4 }} + name: longhorn-replica-manager + namespace: longhorn-system +spec: + clusterIP: None + selector: + longhorn.io/component: instance-manager + longhorn.io/instance-manager-type: replica