I'm trying to use Harbor
registry with SCDF 2.9.1
in microk8s 1.18.20
.
I successfully configure SCDF to retrieve the Docker Labels of my apps by adding this in SCDF server Config Map :
spring:
cloud:
dataflow:
container:
registry-configurations:
harbor:
registry-host: myhost
authorization-type: dockeroauth2
user: myuser
secret: mypwd
disable-ssl-verification: true
extra:
"registryAuthUri" : 'https://myhost/service/token?service=harbor-registry&scope=repository:{repository}:pull'
Then for pulling images I created a secret with this command line (after configuring my local Docker daemon) :
microk8s.kubectl create secret generic harbor-credentials \
--from-file=.dockerconfigjson=/home/myuser/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
And change Skipper and SCDF Config Map to use it with :
spring.cloud.skipper.server.platform.kubernetes.accounts.default.imagePullSecret=harbor-credentials
spring.cloud.dataflow.task.platform.kubernetes.accounts.default.imagePullSecret=harbor-credentials
But when I try to deploy my app in a stream, I get this error when pulling the image :
Head "https://myhost/v2/scdf/myapp/manifests/latest": x509: certificate signed by unknown authority
How and where do I have to configure Harbor self-signed certificate so that SCDF/Skipper can deploy applications ?
Also ideally I would prefer to remove disable-ssl-verification: true
for Docker Labels too