[OOM-K8S-CERT-EXTERNAL-PROVIDER] Mock implementaion enhanced
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / deploy / _certificte_example_.yaml
1 # ============LICENSE_START=======================================================
2 # oom-certservice-k8s-external-provider
3 # ================================================================================
4 # Copyright (c) 2019 Smallstep Labs, Inc.
5 # Modifications copyright (C) 2020 Nokia. All rights reserved.
6 # ================================================================================
7 # This source code was copied from the following git repository:
8 # https://github.com/smallstep/step-issuer
9 # The source code was modified for usage in the ONAP project.
10 # ================================================================================
11 # Licensed under the Apache License, Version 2.0 (the "License");
12 # you may not use this file except in compliance with the License.
13 # You may obtain a copy of the License at
14 #
15 #      http://www.apache.org/licenses/LICENSE-2.0
16 #
17 # Unless required by applicable law or agreed to in writing, software
18 # distributed under the License is distributed on an "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 # See the License for the specific language governing permissions and
21 # limitations under the License.
22 # ============LICENSE_END=========================================================
23 #
24
25 apiVersion: cert-manager.io/v1
26 kind: Certificate
27 metadata:
28   name: _sample_cert_name_
29   namespace: onap
30 spec:
31   # The secret name to store the signed certificate
32   secretName: _sample_secret_name_
33   # Common Name
34   commonName: certissuer.onap.org
35   # DNS SAN
36   dnsNames:
37     - localhost
38     - certissuer.onap.org
39   # IP Address SAN
40   ipAddresses:
41     - "127.0.0.1"
42   # Duration of the certificate
43   duration: 24h
44   # Renew 8 hours before the certificate expiration
45   renewBefore: 8h
46   # The reference to the step issuer
47   issuerRef:
48     group: certmanager.onap.org
49     kind: CertificateRequest
50     name: certservice-issuer