如何使用helm3创建部署,从docker hub提取镜像?



我有docker映像在我的repo, akshay123007/lists-pods。我已经创建了舵图图片:

repository: akshay123007/lists-pods
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: 
- name: regcred 
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
#   drop:
#   - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
tls: []
#  - secretName: chart-example-tls
#    hosts:
#      - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
#   cpu: 100m
#   memory: 128Mi
# requests:
#   cpu: 100m
#   memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}

当我安装图表时,我得到的错误如下:未能拉图像"akshay123007/列表-pod:1.16.0": rpc错误:code =未知desc =来自daemon的错误响应:manifest for akshay123007/列表-pod:1.16.0 not found: manifest Unknown: manifest Unknown .

我已经尝试更改image:docker。io/akshay123007/lists-pods:最新的,然后它说errImagePull。我不知道是什么问题,请帮助我将不胜感激。

您忘记了应该在注册表中保存您的图像。应该是这样的

image:  
registry: YOUR_DOCKER_REGISTRY (EX: docker.io)  
repository: akshay123007/lists-pods  

最新更新