How can I register SCDF app with microk8s?

╄→尐↘猪︶ㄣ 提交于 2020-04-17 20:26:02

问题


I have installed SCDF in a microk8s cluster. Ubuntu runs in VirtualBox.
Now I'm trying to register a custom app in SCDF.
My app is build as a Docker image (myorg/myapp:latest) and registered in a private local registry (localhost:5000).

I followed the microk8s documentation here https://microk8s.io/docs/registry-private and add my Docker registry in the containerd-template.toml file :

[plugins.cri.registry.mirrors."myorg"]
  endpoint = ["http://localhost:5000"]

But now I can't figure out how to register my app in SCDF.
When I try to register my app with "docker:myorg/myapp:latest" and then deploy it, I have an error in microk8s :

Failed to pull image "myorg/myapp:latest": rpc error: code = Unknown desc = failed to resolve image "docker.io/myorg/myapp:latest": no available registry endpoint: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

It's like microk8s is not looking in my Docker local registry.
Thanks for any help


回答1:


There's support to resolve Docker images from the private Docker registry. You'd either have to configure the setting as a global property in SCDF or it can be supplied as part of the individual stream deployment.

See: SCDF + Private Docker Regisrty

Nothing changes in your registration command, however. With the imagePullSecret passed correctly, the image should then resolve after a successful negotiation.



来源:https://stackoverflow.com/questions/60037562/how-can-i-register-scdf-app-with-microk8s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!