2022-12-27 13:56:25 +00:00
|
|
|
{{- if .Values.useCertManager }}
|
|
|
|
---
|
|
|
|
# s3gw-ca root certificate
|
|
|
|
apiVersion: cert-manager.io/v1
|
|
|
|
kind: Certificate
|
|
|
|
metadata:
|
2023-05-12 13:19:04 +00:00
|
|
|
name: {{ .Release.Name }}-{{ .Release.Namespace }}-ca-cert
|
2022-12-27 13:56:25 +00:00
|
|
|
namespace: {{ .Values.certManagerNamespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "s3gw.labels" . | indent 4}}
|
|
|
|
spec:
|
2023-05-12 13:19:04 +00:00
|
|
|
commonName: {{ .Release.Name }}-{{ .Release.Namespace }}-ca
|
2022-12-27 13:56:25 +00:00
|
|
|
isCA: true
|
|
|
|
issuerRef:
|
|
|
|
kind: ClusterIssuer
|
2023-05-12 13:19:04 +00:00
|
|
|
name: {{ .Release.Name }}-{{ .Release.Namespace }}-self-signed-issuer
|
2022-12-27 13:56:25 +00:00
|
|
|
privateKey:
|
|
|
|
algorithm: ECDSA
|
|
|
|
size: 256
|
2023-05-12 13:19:04 +00:00
|
|
|
secretName: {{ .Release.Name }}-{{ .Release.Namespace }}-ca-root
|
2022-12-27 13:56:25 +00:00
|
|
|
---
|
|
|
|
# s3gw internal service certificate (private domain)
|
|
|
|
apiVersion: cert-manager.io/v1
|
|
|
|
kind: Certificate
|
|
|
|
metadata:
|
2023-05-12 13:19:04 +00:00
|
|
|
name: {{ .Release.Name }}-{{ .Release.Namespace }}-cluster-ip-cert
|
2022-12-27 13:56:25 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "s3gw.labels" . | indent 4}}
|
|
|
|
spec:
|
|
|
|
dnsNames:
|
2023-05-12 13:19:04 +00:00
|
|
|
- '{{ include "s3gw.serviceName" . }}.{{ .Release.Namespace }}.{{ .Values.privateDomain }}'
|
|
|
|
- '*.{{ include "s3gw.serviceName" . }}.{{ .Release.Namespace }}.{{ .Values.privateDomain }}'
|
2022-12-27 13:56:25 +00:00
|
|
|
issuerRef:
|
|
|
|
kind: ClusterIssuer
|
2023-05-12 13:19:04 +00:00
|
|
|
name: {{ .Release.Name }}-{{ .Release.Namespace }}-issuer
|
|
|
|
secretName: {{ .Release.Name }}-{{ .Release.Namespace }}-cluster-ip-tls
|
2022-12-27 13:56:25 +00:00
|
|
|
{{- end }}
|