首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >minikube集群不会显示图像

minikube集群不会显示图像
EN

Stack Overflow用户
提问于 2022-04-21 18:00:15
回答 1查看 62关注 0票数 0

我有问题,拉我的图片,我的迷你库巴米尼最文件,无论什么原因。

以下是它的外观:

代码语言:javascript
复制
apiVersion: v1
items:
  - apiVersion: v1
    kind: Service
    metadata:
      annotations:
        kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
        kompose.version: 1.26.1 (a9d05d509)
      creationTimestamp: null
      labels:
        io.kompose.service: afsim-controller
      name: afsim-controller
    spec:
      ports:
        - name: "5000"
          port: 5000
          targetPort: 5000
      selector:
        io.kompose.service: afsim-controller
    status:
      loadBalancer: {}
  - apiVersion: v1
    kind: Service
    metadata:
      annotations:
        kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
        kompose.version: 1.26.1 (a9d05d509)
      creationTimestamp: null
      labels:
        io.kompose.service: 'mdo-geo'
      name: 'mdo-geo'
    spec:
      ports:
        - name: "5006"
          port: 5006
          targetPort: 5006
      selector:
        io.kompose.service: 'mdo-geo'
    status:
      loadBalancer: {}
  - apiVersion: v1
    kind: Service
    metadata:
      annotations:
        kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
        kompose.version: 1.26.1 (a9d05d509)
      creationTimestamp: null
      labels:
        io.kompose.service: mdo-net
      name: mdo-net
    spec:
      ports:
        - name: "5009"
          port: 5009
          targetPort: 5009
      selector:
        io.kompose.service: mdo-net
    status:
      loadBalancer: {}
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      annotations:
        kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
        kompose.version: 1.26.1 (a9d05d509)
      creationTimestamp: null
      labels:
        io.kompose.service: 'afsim-controller'
      name: 'afsim-controller'
    spec:
      replicas: 1
      selector:
        matchLabels:
          io.kompose.service: 'afsim-controller'
      strategy:
        type: Recreate
      template:
        metadata:
          annotations:
            kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
            kompose.version: 1.26.1 (a9d05d509)
          creationTimestamp: null
          labels:
            io.kompose.service: 'afsim-controller'
        spec:
          containers:
            - env:
                - name: MSG_SERVICE
                - name: MSG_SERVICE_HOST
                - name: MSG_SERVICE_PORT
                - name: NETWORK_BEHAVIOR
                  value: /home/python3/network_behavior.yaml
                - name: SERVICE_PORT
                  value: "5000"
                - name: USE_NET
                  value: "1"
              image: docker-ng-repo.ms.northgrum.com/aic/mdo_afsim_controller
              imagePullPolicy: IfNotPresent
              name: 'afsim-controller'
              ports:
                - containerPort: 5000
              resources: {}
              volumeMounts:
                - mountPath: /home/python3/network_behavior.yaml
                  name: afsim-controller-hostpath0
                - mountPath: /scenarios
                  name: afsim-controller-hostpath1
          restartPolicy: Always
          volumes:
            - hostPath:
                path: /home/jsikala/mdo_startup/network_behavior.yaml
              name: afsim-controller-hostpath0
            - hostPath:
                path: /home/jsikala/mdo_afsim/scenarios/MDO
              name: afsim-controller-hostpath1
    status: {}
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      annotations:
        kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
        kompose.version: 1.26.1 (a9d05d509)
      creationTimestamp: null
      labels:
        io.kompose.service: mdo-geo
      name: mdo-geo
    spec:
      replicas: 1
      selector:
        matchLabels:
          io.kompose.service: mdo-geo
      strategy:
        type: Recreate
      template:
        metadata:
          annotations:
            kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
            kompose.version: 1.26.1 (a9d05d509)
          creationTimestamp: null
          labels:
            io.kompose.service: mdo-geo
        spec:
          containers:
            - env:
                - name: MSG_SERVICE
                  value: kafka
                - name: MSG_SERVICE_HOST
                  value: localhost
                - name: MSG_SERVICE_PORT
                  value: "5006"
                - name: NETWORK_BEHAVIOR
                  value: /home/python3/network_behavior.yaml
                - name: PLATFORM
                  value: uuv_1
                - name: SERVICE_PORT
                  value: "5006"
                - name: USE_NET
                  value: "1"
              image: docker-ng-repo.ms.northgrum.com/aic/mdo_geo
              imagePullPolicy: IfNotPresent
              name: mdo-geo
              ports:
                - containerPort: 5006
              resources: {}
              volumeMounts:
                - mountPath: /home/python3/network_behavior.yaml
                  name: mdo-geo-hostpath0
                - mountPath: /Data2/MDO/geo_data
                  name: mdo-geo-hostpath1
          restartPolicy: Always
          volumes:
            - hostPath:
                path: /home/jsikala/mdo_startup/network_behavior.yaml
              name: mdo-geo-hostpath0
            - hostPath:
                path: /home/jsikala/mdo_startup/geo_data
              name: mdo-geo-hostpath1
    status: {}
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      annotations:
        kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
        kompose.version: 1.26.1 (a9d05d509)
      creationTimestamp: null
      labels:
        io.kompose.service: 'mdo-net'
      name: 'mdo-net'
    spec:
      replicas: 1
      selector:
        matchLabels:
          io.kompose.service: 'mdo-net'
      strategy:
        type: Recreate
      template:
        metadata:
          annotations:
            kompose.cmd: kompose convert -f docker-compose.yaml --volumes hostPath -o kubemanifest.yaml
            kompose.version: 1.26.1 (a9d05d509)
          creationTimestamp: null
          labels:
            io.kompose.service: 'mdo-net'
        spec:
          containers:
            - env:
                - name: MSG_SERVICE
                  value: kafka
                - name: MSG_SERVICE_HOST
                  value: localhost
                - name: MSG_SERVICE_PORT
                  value: "5009"
                - name: NETWORK_CONFIG
                  value: /home/python3/network_config.yaml
                - name: SERVICE_PORT
                  value: "5009"
              image: docker-ng-repo.ms.northgrum.com/aic/mdo_net
              imagePullPolicy: IfNotPresent
              name: mdo-net
              ports:
                - containerPort: 5009
              resources: {}
              volumeMounts:
                - mountPath: /home/python3/network_config.yaml
                  name: mdo-net-hostpath0
          restartPolicy: Always
          volumes:
            - hostPath:
                path: /home/jsikala/mdo_startup/network_config.yaml
              name: mdo-net-hostpath0
    status: {}
kind: List
metadata: {}

当我试图得到吊舱时,我看到了这个:

代码语言:javascript
复制
NAME                               READY   STATUS             RESTARTS   AGE
afsim-controller-777cf55c4-vf4b9   0/1     ImagePullBackOff   0          20h
mdo-geo-588b9d46-2hrnk             0/1     ImagePullBackOff   0          20h
mdo-net-6f44d9d6c5-bpw4k           0/1     ImagePullBackOff   0          20h

我已经拉了当地的图像,但仍然无法得到的图像被拉小。我还添加了一个imagePullPolicy,但仍然得到ImagePullBackOff错误。知道是什么导致了这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2022-04-29 13:08:38

如果图像位于私有注册表中,则应使用imagePullSecret

https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71958940

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档