Feature 10947 Cert-manager installation for gRPC authentication
[osm/devops.git] / installers / docker / osm_pods / ca_setup.yaml
1 # 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
16 apiVersion: cert-manager.io/v1
17 kind: ClusterIssuer
18 metadata:
19   name: osm-selfsigned-issuer
20 spec:
21   selfSigned: {}
22 ---
23 apiVersion: cert-manager.io/v1
24 kind: Certificate
25 metadata:
26   name: osm-ca-certificate
27   namespace: osm
28 spec:
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 ---
40 apiVersion: cert-manager.io/v1
41 kind: ClusterIssuer
42 metadata:
43   name: ca-issuer
44 spec:
45   ca:
46     secretName: osm-ca