pandlinks=true data-repo=istio>$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/nginx.key -out /tmp/nginx.crt -subj &#34;/CN=my-nginx/O=my-nginx&#34;
$ kubectl create secret tls nginxsecret --key /tmp/nginx.key --cert /tmp/nginx.crt
secret &#34;nginxsecret&#34; created
</code></pre><p>创建一个该 HTTPS 服务所要用的 configmap</p><pre><code class=language-bash data-expandlinks=true data-repo=istio>$ kubectl create configmap nginxconfigmap --from-file=samples/https/default.conf
conf