summaryrefslogtreecommitdiffstats
path: root/certServiceK8sExternalProvider/README.md
blob: 3fc00f90cd63bf6b7bc8dc72cc2888adbd614c75 (plain)
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
32
## Cert Service k8s external cert signing provider

### Build project

There are two methods for building the project:
    
 - mvn clean install
 - make

### Installation

Create secret with certificates for communication between CMPv2Issuer and Cert Service API:
```
kubectl create secret generic -n onap cmpv2-issuer-secret --from-file=<project-base-dir>/certs/cmpv2Issuer-key.pem
  --from-file=<project-base-dir>/certs/cmpv2Issuer-cert.pem --from-file=<project-base-dir>/certs/cacert.pem
```

Apply k8s files from 'deploy' directory in following order:
 
 - crd.yaml
 - roles.yaml
 - deployment.yaml
 - configuration.yaml (certRef, keyRef and cacertRef should match file names if secret was created with command listed 
 above)

**Note:** Files and installation are currently examples, which should be used as a guide for OOM Helm Charts implementation  

### Usage

To issue a certificate adjust and apply following k8s file:
 
 - certificate_example.yaml