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

在线安装 DCE 5.0 - DaoCloud Enterprise #180

Closed
utterances-bot opened this issue Sep 26, 2022 · 5 comments
Closed

在线安装 DCE 5.0 - DaoCloud Enterprise #180

utterances-bot opened this issue Sep 26, 2022 · 5 comments

Comments

@utterances-bot
Copy link

在线安装 DCE 5.0 - DaoCloud Enterprise

DaoCloud Enterprise 5.0 下一代容器化平台集大成者,引领云原生浪潮,推动数字化转型。

https://docs.daocloud.io/zh/install/install-dce/

Copy link

XC-L commented Sep 26, 2022

在虚机上通过kind部署了一个1master+2node的k8s集群,安装DCE5.0后如何访问ui呢?
nodeport方式,这个访问ip是虚机的br网卡,如何从外部机器访问呢?
vip方式,在虚机的网卡中没有看到该vip,是如何从外部机器访问呢?

@panpan0000
Copy link
Contributor

panpan0000 commented Sep 26, 2022

kind:要预先规划暴露的端口在kind的启动配置kindConfig.yaml
类似

kind: Cluster
nodes:
- role: control-plane
  extraPortMappings:
  - containerPort: 30888
    hostPort: 8888

建议dce5用nodeport方式安装,最后修改svc的nodeport端口,定死为30888(如上例,目前没有固定, 待加强), kubectl edit svc istio-ingressgateway -n istio-system

然后同时要修改keycloak和ghippo的配置, 把kind内网的节点IP改为宿主机的IP,顺便把原来随机分配的noderpot端口改为30888
先helm list -A 查看ghippo的版本,比如是v0.10.0
重新apply helm

helm -n ghippo-system upgrade ghippo ghippo/ghippo --version v0.10.0  ... 原本的其他--set参数 --set reverseProxy=https://$主机IP:30888

最后重启keycloak和ghippo的pod

即可在外面通过8888 port 访问UI了

kind内的网络复杂,不建议用VIP

Copy link
Contributor

暴露 istio-ingressgateway 端口号之后,您可以按照如下步骤

  1. 备份 ghippo 原来的参数:
helm get values ghippo -n ghippo-system > ghippo-values.yaml
  1. 执行 helm upgrade
# 请注意区分 http 和 https 的端口号
helm upgrade ghippo ghippo/ghippo -n ghippo-system -f ./ghippo-values.yaml --set reverseProxy=https://$主机IP:30888 --version v0.10.0
  1. 重启 ghippo-apiserver 和 ghippo-keycloak
kubectl rollout restart deploy/ghippo-apiserver -n ghippo-system
kubectl rollout restart statefulset/ghippo-keycloak -n ghippo-system

最后,您可以通过该地址访问 UI:https://$主机IP:30888

Copy link

proxy-qiniu-download-public.daocloud.io 不能用了

@windsonsea
Copy link
Member

This will be closed after nearly 1 year. Thanks for your feedback. We are keeping to improve the docs and instructions.

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

6 participants