You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

部署在AWS EKS的API端点通过NodePort无法访问问题排查

AWS EKS部署Spring微服务访问报错排查

环境与现象

  • 集群配置:单台t2.small规格的Amazon Linux 2工作节点的AWS EKS集群
  • 部署状态:服务描述显示已部署运行,Pod状态为Running
  • 访问问题:通过节点IP:31821/cicd/load访问时,浏览器提示**"This site can’t provide a secure connection"**
  • 前置检查:EC2节点安全组已添加NodePort入站规则
  • 更新告警:执行kubectl describe pod时出现警告:
    Warning FailedToRetrieveImagePullSecret Unable to retrieve some image pull secret (dhubauth) ; Attempting to pull the image may not suceed
    

相关配置文件

Dockerfile

FROM openjdk:8
ADD target/cicdpipeline-0.0.1-SNAPSHOT.war cicdpipeline.war
EXPOSE 8085
ENTRYPOINT ["java", "-jar", "cicdpipeline.war"]

Jenkinsfile部署阶段命令

kubectl apply -f deployment/deployment.yaml
kubectl apply -f deployment/service.yaml

注:相关deployment.yaml、service.yaml及kubectl命令结果见对应截图

疑问

本次为学习场景,使用单节点及t2.small实例,请问问题源于实例类型还是YAML配置?请求指出问题及参考文档。


内容的提问来源于stack exchange,提问作者Mr.DevEng

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.09 16:07:16