forked from open-component-model/ocm-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcert.yaml
More file actions
31 lines (31 loc) · 654 Bytes
/
cert.yaml
File metadata and controls
31 lines (31 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{{- if .Values.generateTlsCert }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: ocm-registry-tls-certs
namespace: {{ .Release.Namespace }}
spec:
secretName: ocm-registry-tls-certs
dnsNames:
- registry.{{ .Release.Namespace }}.svc.cluster.local
- localhost
ipAddresses:
- 127.0.0.1
- ::1
privateKey:
algorithm: RSA
encoding: PKCS8
size: 2048
issuerRef:
name: ocm-certificate-issuer
kind: ClusterIssuer
group: cert-manager.io
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: ocm-certificate-issuer
spec:
ca:
secretName: ocm-registry-tls-certs
{{- end}}