blob: 6a3ee654252351858fbf4b873cd09334f0ca22c7 [file] [log] [blame]
Gabriel Cuba0d4965f2022-11-06 19:39:02 -05001# Copyright 2022 Whitestack
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12# implied.
13# See the License for the specific language governing permissions and
14# limitations under the License
15
16apiVersion: cert-manager.io/v1
17kind: ClusterIssuer
18metadata:
19 name: osm-selfsigned-issuer
20spec:
21 selfSigned: {}
22---
23apiVersion: cert-manager.io/v1
24kind: Certificate
25metadata:
26 name: osm-ca-certificate
27 namespace: osm
28spec:
29 isCA: true
30 commonName: osm
31 secretName: osm-ca
32 privateKey:
33 algorithm: ECDSA
34 size: 256
35 issuerRef:
36 name: osm-selfsigned-issuer
37 kind: ClusterIssuer
38 group: cert-manager.io
39---
40apiVersion: cert-manager.io/v1
41kind: ClusterIssuer
42metadata:
43 name: ca-issuer
44spec:
45 ca:
46 secretName: osm-ca