-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get https://host:5043/v2/: x509: certificate has expired or is not yet valid #279
Comments
Hey @sayyes566 , so unfortunately the There's an issue open for it (#168) and a PR as well (#169) which you can follow for updates. |
Thanks for your reply. I found the error issue was closed. Someone used this to resolve, but it's not worked in kaniko. Someone used this to resolve, --
|
I just merged #169, could you try it again and see if you get the same error? |
Yes, this error is fixed. Normal Scheduled 3m default-scheduler Successfully assigned kaniko to kube-node-1 But 5 issues was happened:
|
In response to the logs you pointed out:
Are you running kaniko exclusively in Kubernetes? |
Please follow up if you run into any more problems @sayyes566 |
I usually in my private server. I set
and
the docker push/ pull will work.
But I used credHelpers in configmap and --insecure-skip-tls-verify in the kaniko.yaml as args.
It did not work.
Did someone resolve this question?
My pod logs
time="2018-08-07T10:28:09Z" level=info msg="Unpacking filesystem of scratch..."
time="2018-08-07T10:28:09Z" level=info msg="No base image, nothing to extract"
time="2018-08-07T10:28:09Z" level=info msg="Mounted directories: [/kaniko /var/run /proc /dev /dev/pts /sys /sys/fs/cgroup /sys/fs/cgroup/systemd /sys/fs/cgroup/perf_event /sys/fs/cgroup/net_cls,net_prio /sys/fs/cgroup/hugetlb /sys/fs/cgroup/devices /sys/fs/cgroup/cpu,cpuacct /sys/fs/cgroup/blkio /sys/fs/cgroup/memory /sys/fs/cgroup/pids /sys/fs/cgroup/cpuset /sys/fs/cgroup/freezer /dev/mqueue /tmp /secret /root/.docker /dev/termination-log /etc/resolv.conf /etc/hostname /etc/hosts /dev/shm /var/run/secrets/kubernetes.io/serviceaccount /proc/bus /proc/fs /proc/irq /proc/sys /proc/sysrq-trigger /proc/kcore /proc/timer_list /proc/timer_stats /proc/sched_debug /sys/firmware]"
time="2018-08-07T10:28:09Z" level=info msg="Taking snapshot of full filesystem..."
time="2018-08-07T10:28:13Z" level=info msg="cmd: copy [hello]"
time="2018-08-07T10:28:13Z" level=info msg="dest: /"
time="2018-08-07T10:28:13Z" level=info msg="Copying file /tmp/context/hello to /hello"
time="2018-08-07T10:28:13Z" level=info msg="Taking snapshot of files [/hello]..."
time="2018-08-07T10:28:13Z" level=info msg="cmd: CMD"
time="2018-08-07T10:28:13Z" level=info msg="Replacing CMD in config with [/hello]"
time="2018-08-07T10:28:13Z" level=info msg="No files changed in this command, skipping snapshotting."
time="2018-08-07T10:28:13Z" level=info msg="No files were changed, appending empty layer to config."
time="2018-08-07T10:28:13Z" level=error msg="Get https://host:5043/v2/: x509: certificate has expired or is not yet valid"
My pod yaml
apiVersion: v1
kind: Pod
metadata:
name: kaniko
spec:
serviceAccountName: default
hostAliases:
ip: "10.10.1.100"
hostnames:
containers:
name: kaniko
image: gcr.io/kaniko-project/executor:latest
args: [ "--dockerfile=/tmp/Dockerfile",
"--context=/tmp/context/",
"--insecure-skip-tls-verify",
"--destination=host:5043/hello:v1", "-vinfo"]
volumeMounts:
mountPath: /tmp
mountPath: /root/.docker
restartPolicy: Always
imagePullSecrets:
volumes:
hostPath:
path: /home/ccma/kaniko/depoly/
type: Directory
configMap:
name: dockerconfig
My ConfigMap
apiVersion: v1
data:
config.json: |
{
"auths": {
"host:5043": {
"auth": "dGVzd........3b3Jk"
}
}
}
kind: ConfigMap
The text was updated successfully, but these errors were encountered: