简体   繁体   English

设置Helm图以部署推送到Azure容器注册表(ACR)的Nodejs服务

[英]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或其他提供商,我建议您按照以下步骤操作:

  • Check the status of the release on helm you can see the status every time you want using 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并且服务也正常。
  • Check the deployment with kubectl describe deployment <deployment-name> 使用kubectl describe deployment <deployment-name>检查部署
  • Check the pod with kubectl describe pod <pod-name> 使用kubectl describe pod <pod-name>检查pod
  • Check the pod logs with 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.

相关问题 Windows Azure虚拟机和云服务Node.js应用程序部署 - Windows Azure Virtual Machine and cloud service nodejs app deploy 无法在 Azure 应用服务 Linux 中部署 NodeJS(Fastify 应用) - Unable to deploy NodeJS (Fastify app) in Azure App Service Linux 无法在 Azure 应用服务上的 NodeJS 容器上设置环境变量 - Unable to set the environment variables on a NodeJS Container on Azure App Service 无法在Azure上部署NodeJS应用 - Fail to deploy a NodeJS app on azure 如何部署 azure webapp - nodejs - How to deploy an azure webapp - nodejs 在Azure上部署Node.js但获取404 - Deploy Nodejs on Azure but Get 404 如何使用Azure节点sdk创建具有Azure专用ACR映像的容器 - how to use Azure node sdk to create a container with azure private ACR image 使用哪些 azure 服务(AKS 或 App 服务)在 azure 上部署多个 docker 容器(启用组合) - Which azure services to use ( AKS or App service) to deploy multiple docker containers (compose enabled) on azure 是否可以在单个 azure 应用服务中部署多个 Nodejs Web API 应用? - Is there possible to deploy multiple Nodejs Web API App in single azure app service? 我们可以在同一Azure应用服务中部署nodejs应用和spring-boot应用吗? - Can we deploy nodejs app and spring-boot app in same Azure-App-Service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM