Update custom ca integration with k8s CSR demo (#12527)

* Update custom ca integration with k8s CSR demo to include foo and
bar namespace creation and remove an unnecessary tab from the
sleep pod command.

Signed-off-by: jaellio <jaellio@microsoft.com>

* Fix lint error

Signed-off-by: jaellio <jaellio@microsoft.com>

---------

Signed-off-by: jaellio <jaellio@microsoft.com>
This commit is contained in:
Jackie Elliott 2023-01-27 10:02:50 -08:00 committed by GitHub
parent abc4339f41
commit 28749ecfc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -190,6 +190,13 @@ Cert-manager has added [experimental Support for Kubernetes `CertificateSigningR
$ istioctl install -f ./istio.yaml
{{< /text >}}
1. Create the `bar` and `foo` namespaces.
{{< text bash >}}
$ kubectl create ns bar
$ kubectl create ns foo
{{< /text >}}
1. Deploy the `proxyconfig-bar.yaml` in the `bar` namespace to define cert-signer for workloads in the `bar` namespace.
{{< text bash >}}
@ -260,7 +267,7 @@ When the workloads are deployed, they send CSR Requests with related signer info
1. Check network connectivity between service `sleep` in the `foo` namespace and `httpbin` in the `bar` namespace.
{{< text bash >}}
$ export SLEEP_POD_FOO=$(kubectl get pod -n foo -l app=sleep -o jsonpath={ .items..metadata.name})
$ export SLEEP_POD_FOO=$(kubectl get pod -n foo -l app=sleep -o jsonpath={.items..metadata.name})
$ kubectl exec -it $SLEEP_POD_FOO -n foo -c sleep curl http://httpbin.bar:8000/html
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
{{< /text >}}