Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s部署Wayne,域名访问空白 #601

Open
openstack-test opened this issue Sep 1, 2020 · 2 comments
Open

k8s部署Wayne,域名访问空白 #601

openstack-test opened this issue Sep 1, 2020 · 2 comments

Comments

@openstack-test
Copy link

openstack-test commented Sep 1, 2020

使用k8s部署Wayne,域名访问空白

主要配置如下:

kubectl  get svc -n infra | grep wayne
wayne-backend         LoadBalancer   172.21.6.97     10.142.69.54     32001:31233/TCP              6m56s
wayne-frontend        ClusterIP      172.21.14.78    <none>           80/TCP                       6m25s

说明:10.142.69.54是一个K8s集群内网slb ip

wayne-frontend配置

apiVersion: v1
kind: ConfigMap
metadata:
  labels:
    app: wayne-frontend
  name: wayne-frontend
  namespace: infra
data:
  config.js: |-
    window.CONFIG = {
      URL: 'http://10.142.69.54:8080',    //请问,该URL IP必须是客户端可访问IP吗
      RAVEN: false,
      RAVEN_DSN: 'RAVEN_DSN'
    };
@openstack-test openstack-test changed the title k8s部署Wayne失败 k8s部署Wayne,域名访问空白 Sep 1, 2020
@zhangguanzhang
Copy link
Contributor

后端暴漏出来,然后确保同样的domain能访问到前端和后端,然后URL写: window.location.xxx:backend-port

@star1988007
Copy link

请问这个问题是怎么解决的呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants