salamanderMH
V2EX  ›  问与答

Rancher 自动生成的证书在哪里呢?

  •  
  •   salamanderMH · Jan 22, 2019 · 1711 views
    This topic created in 2697 days ago, the information mentioned may be changed or developed.

    架构

    按官方文档来的,集群前面放了一个 nginx

    nginx 配置转发了 https

    location / {
        proxy_pass https://rancher_servers;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_redirect default;
        proxy_cache off;
    }
    
    

    我直接用 rancher 界面上拿下来的kubeconfig文件,在本机上想访问 k8s 集群,提示证书有问题(原来 nginx 的证书我是用 let's encrypt 生成的,不是 Rancher 自动生成的证书),是不是应该用 Rancher 生成的证书?

    而且也不太清除自动生成的证书在哪里(感觉都放在 docker 容器里了)

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1160 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:05 · PVG 02:05 · LAX 11:05 · JFK 14:05
    ♥ Do have faith in what you're doing.