/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 bytespull/18499/head
parent
9175e35224
commit
db8e3ec5f8
|
|
@ -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
|
||||
...
|
||||
<title>Welcome to nginx!</title>
|
||||
...
|
||||
|
|
|
|||
Loading…
Reference in New Issue