Kubernetes里ingress配置的一些例子
生活随笔
收集整理的這篇文章主要介紹了
Kubernetes里ingress配置的一些例子
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
命令:
openssl genrsa -out ca.key 2048
openssl req -new -x509 -days 365 -key ca.key -subj “/C=DE/L=Walldorf/O=SAP/CN=SAP Fake Root CA” -out ca.crt
openssl req -newkey rsa:2048 -nodes -keyout server.key -subj “/C=DE/L=Walldorf/O=SAP/CN=bulletinboard–” -out server.csr
openssl x509 -req -extfile <(printf “subjectAltName=DNS:<THE INGRESS URL WITHOUT HTTP(S)?/>”) -days 365 -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt
Finally create the tls secret yaml, move it into the ads folder and apply it:
kubectl apply -f tls.yaml
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的Kubernetes里ingress配置的一些例子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 银行预约取款怎么预约 银行预约取款怎样预
- 下一篇: 乘联会崔东树:1-3 月全国召回 43