我编写了一个Nodejs服务,并由docker构建。然后我将其推送到Azure Container Registry中。 我使用Helm从ACR提取存储库,然后将其部署到AKS,但服务未运行。 请告诉我一些建议。
Helm Value的代码。我必须设置服务的类型和端口。
replicaCount: 1
image:
repository: tungthtestcontainer.azurecr.io/demonode
tag: latest
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
service:
name: http
type: NodePort
port: 8082
internalPort: 8082
ingress:
enabled: false
annotations: {}
hosts:
- host: chart-example.local
paths: []
tls: []
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
答案 0 :(得分:0)
要弄清楚在这种情况下会发生什么,直接使用kubectl apply
掌舵还是Yaml无关紧要o是Azure还是其他提供商,建议您执行以下步骤:
helm status <release-name>
时都可以看到状态,尝试查看是否正确创建了这些容器以及服务是否还可以。kubectl describe deployment <deployment-name>
kubectl describe pod <pod-name>
kubectl logs -f <pod-name>
有了它,您应该能够找到源问题。