[英]Setting of Helm chart to deploy Nodejs service which pushed to Azure Container Registry (ACR)
I written a Nodejs service , and build it by docker . 我写了一个Nodejs服务,并用docker构建它。 Then i pushed it into Azure Container Registry . 然后我将它推入Azure容器注册表。 I used Helm to pull Repository from ACR and then deploy to AKS but service not run . 我使用Helm从ACR中提取存储库,然后部署到AKS但服务没有运行。 Please tell me some advise. 请告诉我一些建议。
The code of Helm Value . 头盔价值代码。 I thing i have to setting type and port of service. 我需要设置类型和服务端口。
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: {}
To figure out what happens in that situations it doesn't matter that is helm or a yaml directly with kubectl apply
o if it's Azure or another provider I recommend you follow the next steps: 要弄清楚在那种情况下会发生什么,无论是helm还是yaml直接使用kubectl apply
o如果它是Azure或其他提供商,我建议您按照以下步骤操作:
helm status <release-name>
, try to see if the pots are correctly created and the services are also ok. 检查helm上发布的状态,每次使用helm status <release-name>
都可以看到状态,尝试查看是否正确创建了pot并且服务也正常。 kubectl describe deployment <deployment-name>
使用kubectl describe deployment <deployment-name>
检查部署 kubectl describe pod <pod-name>
使用kubectl describe pod <pod-name>
检查pod kubectl logs -f <pod-name>
使用kubectl logs -f <pod-name>
检查pod日志 With that, you should be able to find the source problem. 有了它,您应该能够找到源问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.