Update create TLS command to quote strings. (#2694)

In some instances the cert and key path returned from `mkcert -CAROOT` might contain spaces. If it does the example command fails with the somewhat cryptic error `error: exactly one NAME is required, got 3`. Quoting the values resolves the issue.
This commit is contained in:
FutureMatt 2021-10-22 16:55:35 +01:00 committed by GitHub
parent 91fd44e686
commit 0638b07f4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,7 +76,7 @@ If you haven't already, install cert-manager and create a CA issuer. You can fol
```bash
kubectl create secret tls pomerium-tls-ca --namespace=pomerium \
--cert=$(mkcert -CAROOT)/rootCA.pem --key=$(mkcert -CAROOT)/rootCA-key.pem
--cert="$(mkcert -CAROOT)/rootCA.pem" --key="$(mkcert -CAROOT)/rootCA-key.pem"
```
1. Define an Issuer configuration in `issuer.yaml`:
@ -209,4 +209,4 @@ Congratulations on installing Pomerium to your Kubernetes cluster! If you're ins
[Kubernetes]: https://kubernetes.io
[mkcert]: https://github.com/FiloSottile/mkcert
[Organizing Cluster Access Using kubeconfig Files]: https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/
[tls certificates]: ../topics/certificates.md
[tls certificates]: ../topics/certificates.md