apolloconfig / apolloconfig/apollo

helm3 方式部署k8s apollo nodeport端口无法自定义

Ouverte
#4,096 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
feature request help wanted
Langage dominant
Java
Étoiles
29.8k
Forks
10.2k
Merge moyen
4 j 7 h
PR mergées (30 j)
4

Description

- [x] 我已经检查过[discussions](https://github.com/ctripcorp/apollo/discussions)
- [x] 我已经搜索过[issues](https://github.com/ctripcorp/apollo/issues)
- [x] 我已经仔细检查过[FAQ](https://www.apolloconfig.com/#/zh/faq/common-issues-in-deployment-and-development-phase)

**描述bug**

通过helm3 安装apollo k8s服务。遇到个问题,就是无法指定暴露的NodePort端口。查了下issues没人问过

**复现**
![image](https://user-images.githubusercontent.com/14995750/141440532-119f057b-adba-44ba-adc3-bd4b058d71fe.png)
如图,修改 values.yaml 加入type: NodePort 以及nodePort: 31809。
同时修改templates/service-configservice.yaml加入 nodePort: {{ .Values.configService.service.nodePort }}
如图:
![image](https://user-images.githubusercontent.com/14995750/141440749-7e06acd1-6241-40fe-84d5-a09f1e733cd2.png)
最后创建后结果
![image](https://user-images.githubusercontent.com/14995750/141440810-958fe3a3-876a-44ee-9617-2fbbabef31e9.png)

**期望**

希望可以指定NodePort端口号

**截图**

如果可以,附上截图来描述你的问题

### 额外的细节和日志

- 版本:
![image](https://user-images.githubusercontent.com/14995750/141441110-b63079ed-6770-4f9f-a1e8-82ef98d73c54.png)
k8s 1.18 helm3
- 错误日志
- 配置:
- 平台和操作系统

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.