feat: subpath mount
This commit is contained in:
@@ -16,22 +16,102 @@ spec:
|
|||||||
fileName: config.yaml
|
fileName: config.yaml
|
||||||
secretPath: secret/data/cl01tl/matrix-synapse/config
|
secretPath: secret/data/cl01tl/matrix-synapse/config
|
||||||
secretKey: config.yaml
|
secretKey: config.yaml
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||||
|
kind: SecretProviderClass
|
||||||
|
metadata:
|
||||||
|
name: matrix-synapse-oidc-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: matrix-synapse-oidc-config
|
||||||
|
{{- include "custom.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
provider: openbao
|
||||||
|
parameters:
|
||||||
|
baoAddress: "http://openbao-internal.openbao:8200"
|
||||||
|
roleName: matrix-synapse
|
||||||
|
objects: |
|
||||||
- objectName: oidc.yaml
|
- objectName: oidc.yaml
|
||||||
fileName: oidc.yaml
|
fileName: oidc.yaml
|
||||||
secretPath: secret/data/cl01tl/matrix-synapse/config
|
secretPath: secret/data/cl01tl/matrix-synapse/config
|
||||||
secretKey: oidc.yaml
|
secretKey: oidc.yaml
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||||
|
kind: SecretProviderClass
|
||||||
|
metadata:
|
||||||
|
name: matrix-synapse-hookshot-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: matrix-synapse-hookshot-config
|
||||||
|
{{- include "custom.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
provider: openbao
|
||||||
|
parameters:
|
||||||
|
baoAddress: "http://openbao-internal.openbao:8200"
|
||||||
|
roleName: matrix-synapse
|
||||||
|
objects: |
|
||||||
- objectName: hookshot-registration.yaml
|
- objectName: hookshot-registration.yaml
|
||||||
fileName: hookshot-registration.yaml
|
fileName: hookshot-registration.yaml
|
||||||
secretPath: secret/data/cl01tl/matrix-synapse/hookshot
|
secretPath: secret/data/cl01tl/matrix-synapse/hookshot
|
||||||
secretKey: hookshot-registration.yaml
|
secretKey: hookshot-registration.yaml
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||||
|
kind: SecretProviderClass
|
||||||
|
metadata:
|
||||||
|
name: matrix-synapse-mautrix-discord-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: matrix-synapse-mautrix-discord-config
|
||||||
|
{{- include "custom.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
provider: openbao
|
||||||
|
parameters:
|
||||||
|
baoAddress: "http://openbao-internal.openbao:8200"
|
||||||
|
roleName: matrix-synapse
|
||||||
|
objects: |
|
||||||
- objectName: mautrix-discord-registration.yaml
|
- objectName: mautrix-discord-registration.yaml
|
||||||
fileName: mautrix-discord-registration.yaml
|
fileName: mautrix-discord-registration.yaml
|
||||||
secretPath: secret/data/cl01tl/matrix-synapse/mautrix-discord
|
secretPath: secret/data/cl01tl/matrix-synapse/mautrix-discord
|
||||||
secretKey: mautrix-discord-registration.yaml
|
secretKey: mautrix-discord-registration.yaml
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||||
|
kind: SecretProviderClass
|
||||||
|
metadata:
|
||||||
|
name: matrix-synapse-mautrix-whatsapp-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: matrix-synapse-mautrix-whatsapp-config
|
||||||
|
{{- include "custom.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
provider: openbao
|
||||||
|
parameters:
|
||||||
|
baoAddress: "http://openbao-internal.openbao:8200"
|
||||||
|
roleName: matrix-synapse
|
||||||
|
objects: |
|
||||||
- objectName: mautrix-whatsapp-registration.yaml
|
- objectName: mautrix-whatsapp-registration.yaml
|
||||||
fileName: mautrix-whatsapp-registration.yaml
|
fileName: mautrix-whatsapp-registration.yaml
|
||||||
secretPath: secret/data/cl01tl/matrix-synapse/mautrix-whatsapp
|
secretPath: secret/data/cl01tl/matrix-synapse/mautrix-whatsapp
|
||||||
secretKey: mautrix-whatsapp-registration.yaml
|
secretKey: mautrix-whatsapp-registration.yaml
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: secrets-store.csi.x-k8s.io/v1
|
||||||
|
kind: SecretProviderClass
|
||||||
|
metadata:
|
||||||
|
name: matrix-synapse-double-puppet-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: matrix-synapse-double-puppet-config
|
||||||
|
{{- include "custom.labels" . | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
provider: openbao
|
||||||
|
parameters:
|
||||||
|
baoAddress: "http://openbao-internal.openbao:8200"
|
||||||
|
roleName: matrix-synapse
|
||||||
|
objects: |
|
||||||
- objectName: double-puppet-registration.yaml
|
- objectName: double-puppet-registration.yaml
|
||||||
fileName: double-puppet-registration.yaml
|
fileName: double-puppet-registration.yaml
|
||||||
secretPath: secret/data/cl01tl/matrix-synapse/double-puppet
|
secretPath: secret/data/cl01tl/matrix-synapse/double-puppet
|
||||||
|
|||||||
@@ -43,11 +43,67 @@ matrix-synapse:
|
|||||||
readOnly: true
|
readOnly: true
|
||||||
volumeAttributes:
|
volumeAttributes:
|
||||||
secretProviderClass: matrix-synapse-config
|
secretProviderClass: matrix-synapse-config
|
||||||
|
- name: oidc-config
|
||||||
|
csi:
|
||||||
|
driver: secrets-store.csi.k8s.io
|
||||||
|
readOnly: true
|
||||||
|
volumeAttributes:
|
||||||
|
secretProviderClass: matrix-synapse-oidc-config
|
||||||
|
- name: hookshot-config
|
||||||
|
csi:
|
||||||
|
driver: secrets-store.csi.k8s.io
|
||||||
|
readOnly: true
|
||||||
|
volumeAttributes:
|
||||||
|
secretProviderClass: matrix-synapse-hookshot-config
|
||||||
|
- name: mautrix-discord-config
|
||||||
|
csi:
|
||||||
|
driver: secrets-store.csi.k8s.io
|
||||||
|
readOnly: true
|
||||||
|
volumeAttributes:
|
||||||
|
secretProviderClass: matrix-synapse-mautrix-discord-config
|
||||||
|
- name: mautrix-whatsapp-config
|
||||||
|
csi:
|
||||||
|
driver: secrets-store.csi.k8s.io
|
||||||
|
readOnly: true
|
||||||
|
volumeAttributes:
|
||||||
|
secretProviderClass: matrix-synapse-mautrix-whatsapp-config
|
||||||
|
- name: double-puppet-config
|
||||||
|
csi:
|
||||||
|
driver: secrets-store.csi.k8s.io
|
||||||
|
readOnly: true
|
||||||
|
volumeAttributes:
|
||||||
|
secretProviderClass: matrix-synapse-double-puppet-config
|
||||||
extraVolumeMounts:
|
extraVolumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /synapse/config/conf.d
|
mountPath: /synapse/config/conf.d/config.yaml
|
||||||
mountPropagation: None
|
mountPropagation: None
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
subPath: config.yaml
|
||||||
|
- name: oidc-config
|
||||||
|
mountPath: /synapse/config/conf.d/
|
||||||
|
mountPropagation: None
|
||||||
|
readOnly: true
|
||||||
|
subPath: oidc.yaml
|
||||||
|
- name: hookshot-config
|
||||||
|
mountPath: /synapse/config/conf.d/
|
||||||
|
mountPropagation: None
|
||||||
|
readOnly: true
|
||||||
|
subPath: hookshot-registration.yaml
|
||||||
|
- name: mautrix-discord-config
|
||||||
|
mountPath: /synapse/config/conf.d/
|
||||||
|
mountPropagation: None
|
||||||
|
readOnly: true
|
||||||
|
subPath: mautrix-discord-registration.yaml
|
||||||
|
- name: mautrix-whatsapp-config
|
||||||
|
mountPath: /synapse/config/conf.d/
|
||||||
|
mountPropagation: None
|
||||||
|
readOnly: true
|
||||||
|
subPath: mautrix-whatsapp-registration.yaml
|
||||||
|
- name: double-puppet-config
|
||||||
|
mountPath: /synapse/config/conf.d/
|
||||||
|
mountPropagation: None
|
||||||
|
readOnly: true
|
||||||
|
subPath: double-puppet-registration.yaml
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
|
|||||||
Reference in New Issue
Block a user