From db8e3ec5f88534f4e1d4cbe532943550874faaed Mon Sep 17 00:00:00 2001 From: melvinrmc Date: Mon, 6 Jan 2020 11:46:16 -0600 Subject: [PATCH] /etc/nginx/ssl/nginx.crt: No such file or directory. Instead use tls.crt (#18324) Running the example into a katacoda environment I get this error message: (77) error setting certificate verify locations: CAfile: /etc/nginx/ssl/nginx.crt $ kubectl exec curl-deployment-f8c5c685b-9sphf -- ls /etc/nginx/ssl/ tls.crt tls.key $ kubectl exec curl-deployment-f8c5c685b-9sphf -- curl https://my-nginx --cacert /etc/nginx/ssl/tls.crt ... Welcome to nginx! ... $ kubectl version Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:12:17Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"} $ kubectl describe secret nginxsecret Name: nginxsecret Namespace: default Labels: Annotations: Type: kubernetes.io/tls Data ==== tls.crt: 1164 bytes tls.key: 1708 bytes --- .../services-networking/connect-applications-service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/concepts/services-networking/connect-applications-service.md b/content/en/docs/concepts/services-networking/connect-applications-service.md index f3e68d3407e..26de4ab01cf 100644 --- a/content/en/docs/concepts/services-networking/connect-applications-service.md +++ b/content/en/docs/concepts/services-networking/connect-applications-service.md @@ -338,7 +338,7 @@ NAME READY STATUS RESTARTS AGE curl-deployment-1515033274-1410r 1/1 Running 0 1m ``` ```shell -kubectl exec curl-deployment-1515033274-1410r -- curl https://my-nginx --cacert /etc/nginx/ssl/nginx.crt +kubectl exec curl-deployment-1515033274-1410r -- curl https://my-nginx --cacert /etc/nginx/ssl/tls.crt ... Welcome to nginx! ...