blob: e6d96b2a353fb67ca0d09e8f58ab7d98575e5329 [file] [log] [blame]
ktimoneyc5c3ab42023-04-19 11:32:34 +01001#
2# ============LICENSE_START=======================================================
3# Copyright (C) 2023 Nordix Foundation.
4# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17# SPDX-License-Identifier: Apache-2.0
18# ============LICENSE_END=========================================================
19#
20apiVersion: cert-manager.io/v1
21kind: ClusterIssuer
22metadata:
23 name: selfsigned-rootca-cluster-issuer
24spec:
25 selfSigned: {}
26---
27apiVersion: cert-manager.io/v1
28kind: Certificate
29metadata:
30 name: selfsigned-rootca
31 namespace: default
32spec:
33 isCA: true
34 duration: 2160h # 90d
35 renewBefore: 360h # 15d
36 commonName: selfsigned-rootca
37 subject:
38 organizations:
39 - oran
40 organizationalUnits:
41 - oran
42 countries:
43 - Ireland
44 localities:
45 - Dublin
46 streetAddresses:
47 - Main Street
48 secretName: cm-cluster-issuer-rootca-secret
49 privateKey:
50 rotationPolicy: Always
51 algorithm: RSA
52 encoding: PKCS1
53 size: 2048
54 issuerRef:
55 name: selfsigned-rootca-cluster-issuer
56 kind: ClusterIssuer
57 group: cert-manager.io
58 dnsNames:
59 - localhost
60 - minikube
61 ipAddresses:
62 - 127.0.0.1
63 - 192.168.49.2
64 emailAddresses:
65 - ca@mail.com
66---