From f28692e0ce18295c57b555438dc327679a88eabf Mon Sep 17 00:00:00 2001 From: Joshua Moody Date: Fri, 6 May 2022 04:56:56 +0200 Subject: [PATCH] Add optional mtls secret mount for manager The MTLS secret is currently hardcoded to longhorn-grpc-tls we can improve this further in the future when necessary to also enable auto cert generation Longhorn #3839 Signed-off-by: Joshua Moody --- chart/templates/daemonset-sa.yaml | 6 ++++++ deploy/longhorn.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index ff77f27..085c35d 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -58,6 +58,8 @@ spec: - name: longhorn mountPath: /var/lib/longhorn/ mountPropagation: Bidirectional + - name: longhorn-grpc-tls + mountPath: /tls-files/ - name: longhorn-default-setting mountPath: /var/lib/longhorn-setting/ env: @@ -85,6 +87,10 @@ spec: - name: longhorn hostPath: path: /var/lib/longhorn/ + - name: longhorn-grpc-tls + secret: + secretName: longhorn-grpc-tls + optional: true - name: longhorn-default-setting configMap: name: longhorn-default-setting diff --git a/deploy/longhorn.yaml b/deploy/longhorn.yaml index ae00a10..8c51078 100644 --- a/deploy/longhorn.yaml +++ b/deploy/longhorn.yaml @@ -3375,6 +3375,8 @@ spec: - name: longhorn mountPath: /var/lib/longhorn/ mountPropagation: Bidirectional + - name: longhorn-grpc-tls + mountPath: /tls-files/ - name: longhorn-default-setting mountPath: /var/lib/longhorn-setting/ env: @@ -3402,6 +3404,10 @@ spec: - name: longhorn hostPath: path: /var/lib/longhorn/ + - name: longhorn-grpc-tls + secret: + secretName: longhorn-grpc-tls + optional: true - name: longhorn-default-setting configMap: name: longhorn-default-setting