部署在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
相关产品推荐
相关产品推荐

