docker images
命令是在你的mac上执行的,而不是在minikube创建的虚机(即k8s的node)里面执行的对吧?如果是这样的话,那也是不行的,pod是运行在node上的,所以它是检查node上面有没有这个镜像,而不是你的mac主机。如果是这个问题,-Dkubernetes.container.image=flink:1.12.0-scala_2.12-java8 \
-Dkubernetes.rest-service.exposed.type=NodePort \
-Dtaskmanager.numberOfTaskSlots=2 \
-Dkubernetes.cluster-id=flink-session-cluster
结果显示 Create flink session cluster flink-session-cluster successfully, JobManager Web Interface: http://192.168.99.100:32247
但用kubectl get pods命令查看显示pod一直处理ContainerCreating状态长达数分钟。再通过kubectl describe pod xxx查看,显示有两处error:
MountVolume.SetUp failed for volume "flink-config-volume" : configmap "flink-config-flink-session-cluster" not found
MountVolume.SetUp failed for volume "hadoop-config-volume" : configmap "hadoop-config-flink-session-cluster" not found
Failed to pull image "flink:1.12.0-scala_2.12-java8": rpc error: code = Unknown desc = Error response from daemon: manifest for flink:1.12.0-scala_2.12-java8 not found: manifest unknown: manifest unknown
Error: ImagePullBackOff
Error: ErrImagePull
然而通过docker images命令查看该镜像的确是存在的
REPOSITORY TAG IMAGE ID CREATED SIZE
flink 1.12.0-scala_2.12-java8 f7dd9b9e020b 12 hours ago 642MB
还请看看是哪里出了问题?谢谢!
REPOSITORY TAG IMAGE ID CREATED SIZE
flink 1.12.0-scala_2.12-java8 f7dd9b9e020b 3 hours ago 642MB
然而在执行命令 docker pull flink:1.12.0-scala_2.12-java8 时报如下错误:
Error response from daemon: manifest for flink:1.12.0-scala_2.12-java8 not found: manifest unknown: manifest unknown
导致后面用kubernetes session部署flink作业失败。请问该错误应该如何解决?谢谢!