Created
September 23, 2022 07:55
-
-
Save ralvares/ccdd35ddde0fce18084524f48001c0d4 to your computer and use it in GitHub Desktop.
venafi - certmangager
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl create secret generic cloud-secret \ | |
--namespace='sock-shop' \ | |
--from-literal=apikey='xxxxx-xxxxx-xxxxx-xxxxx-xxxxx' | |
---- | |
apiVersion: cert-manager.io/v1 | |
kind: Issuer | |
metadata: | |
name: cloud-venafi-issuer | |
namespace: sock-shop | |
spec: | |
venafi: | |
zone: "cert-manager\\OpenShift" | |
cloud: | |
apiTokenSecretRef: | |
name: cloud-secret | |
key: apikey | |
---- | |
apiVersion: cert-manager.io/v1 | |
kind: Certificate | |
metadata: | |
name: sock-shop-certificate | |
namespace: sock-shop | |
spec: | |
secretName: sock-shop-certificate | |
commonName: sock-shop.apps.cluster-pwmx8.pwmx8.sandbox1656.opentlc.com | |
dnsNames: | |
- sock-shop.apps.cluster-pwmx8.pwmx8.sandbox1656.opentlc.com | |
issuerRef: | |
name: cloud-venafi-issuer | |
---- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment