Skip to content

Commit db8e3ec

Browse files
melvinrmck8s-ci-robot
authored andcommitted
/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 ... <title>Welcome to nginx!</title> ... $ 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: <none> Annotations: <none> Type: kubernetes.io/tls Data ==== tls.crt: 1164 bytes tls.key: 1708 bytes
1 parent 9175e35 commit db8e3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/services-networking/connect-applications-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ NAME READY STATUS RESTARTS AGE
338338
curl-deployment-1515033274-1410r 1/1 Running 0 1m
339339
```
340340
```shell
341-
kubectl exec curl-deployment-1515033274-1410r -- curl https://my-nginx --cacert /etc/nginx/ssl/nginx.crt
341+
kubectl exec curl-deployment-1515033274-1410r -- curl https://my-nginx --cacert /etc/nginx/ssl/tls.crt
342342
...
343343
<title>Welcome to nginx!</title>
344344
...

0 commit comments

Comments
 (0)