Getting Certs
Using cert-manager to generate a certificate from Vault (NSI example)
Use the Vault guide to generate the approle token for your namespace
Create the Issuer in the namespace to generate the certificate from Vault:
apiVersion: cert-manager.io/v1kind: Issuermetadata:name: vault-issuerspec:vault:auth:appRole:path: approleroleId: <approle ID>secretRef:key: secretIdname: cert-manager-vault-approlepath: nsi/sign/nsiserver: https://vault.nrp-nautilus.ioand corresponding secret:
apiVersion: v1data:secretId: <base64-encoded approle secret>kind: Secretmetadata:name: cert-manager-vault-approletype: OpaqueCreate the Certificate to retrieve one:
apiVersion: cert-manager.io/v1kind: Certificatemetadata:name: opennsaspec:commonName: nsi0.calit2.optiputer.netduration: 720h0m0sissuerRef:kind: Issuername: vault-issuerrenewBefore: 120h0m0ssecretName: nsi0-calit2-cert
Done!