current position:Home>Rancher configuring HTTPS domain name to access graphic tutorial

Rancher configuring HTTPS domain name to access graphic tutorial

2022-04-29 04:17:37Cheng Weiping CWP

1. First, refer to the following tutorial to generate a certificate

Use openssl Generate https certificate https://baijiahao.baidu.com/s?id=1649462735958571118&wfr=spider&for=pc

2. Then add the certificate to the certificate list , As shown in the figure below :

3 Then configure the load balancing domain name , As shown in the figure below : 

 

4: verification , As shown in the figure below

matters needing attention :

  • Remember to remove the password for the generated private key :

The command is as follows :

openssl rsa -in server.key -out server.key

  • To configure nginx Of Load balancing domain name , Add rules there , Choose services , Don't choose workload , Port filling 80 that will do !
  • The domain name I tested is , Through their own dns Service resolved , You can also configure the domain name in host Where are the papers , If the domain name request is through lvs The load is distributed ,lvs To configure 80 The port forwards the request to the real server .
  • Here I set up in front of lvs+keepalived Do front-end load , The whole request chain is as follows

Browser input https Domain name address request ->dns Service resolution domain name ->  The request to   lvs The server ->nginx-ingress->nginx Accept the request and return the result .

copyright notice
author[Cheng Weiping CWP],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/118/202204280555443070.html

Random recommended