origin icon indicating copy to clipboard operation
origin copied to clipboard

x509: certificate signed by unknown authority error trying to deploy from private and secured registry

Open serrodcal opened this issue 8 years ago • 7 comments

I am getting x509: certificate signed by unknown authority error trying to deploy from private and secured registry.

Version

oc v3.11.0+0cbc58b kubernetes v1.11.0+d4cacc0 features: Basic-Auth

Server https://127.0.0.1:8443 kubernetes v1.11.0+d4cacc0

Steps To Reproduce
  1. ~$ oc cluster up
  2. ~$ oc new-app own.registry.net/mbcdaas/kafka:1.1.0
Current Result

W1128 08:44:02.920358 29186 dockerimagelookup.go:233] Docker registry lookup failed: Get https://own.registry.net/v2/: x509: certificate signed by unknown authority W1128 08:44:02.945790 29186 newapp.go:479] Could not find an image stream match for "own.registry.net/mbcdaas/kafka:1.1.0". Make sure that a Docker image with that tag is available on the node for the deployment to succeed. --> Found Docker image d5a60dc (4 months old) from own.registry.net for "own.registry.net/mbcdaas/kafka:1.1.0"

* This image will be deployed in deployment config "kafka"
* Ports 2181/tcp, 8778/tcp, 9092/tcp, 9779/tcp will be load balanced by service "kafka"
  * Other containers can access this service through the hostname "kafka"
* WARNING: Image "own.registry.net/mbcdaas/kafka:1.1.0" runs as the 'root' user which may not be permitted by your cluster administrator

--> Creating resources ... error: deploymentconfigs.apps.openshift.io "kafka" already exists service "kafka" created --> Failed

Expected Result
Additional Information

I need to pull image from a private and secure registry. How can I configure ca.crt to be able to pull and to deploy images?

serrodcal avatar Nov 28 '18 08:11 serrodcal

https://docs.openshift.com/container-platform/3.11/dev_guide/managing_images.html#trusting-registries

Does this solve the problem?

dmage avatar Feb 21 '19 12:02 dmage

I encounter this problem when our internal dns catch all https request to point to the openshift master...

albertoclarit avatar Feb 22 '19 02:02 albertoclarit

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

openshift-bot avatar May 23 '19 06:05 openshift-bot

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity. Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten /remove-lifecycle stale

openshift-bot avatar Jun 22 '19 08:06 openshift-bot

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

openshift-bot avatar Jul 22 '19 09:07 openshift-bot

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen. Mark the issue as fresh by commenting /remove-lifecycle rotten. Exclude this issue from closing again by commenting /lifecycle frozen.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci-robot avatar Jul 22 '19 09:07 openshift-ci-robot

Hi Bro.. This issue same as with my problem. Openshift cannot import-image for nexus repository, the sintax is oc import-image nexus-coba:3.5 --from=192.168.250.250:8083/node-nexus --confirm error: tag latest failed: Internal error occurred: Get https://192.168.250.250:8083/v2/: x509: certificate signed by unknown authority imagestream.image.openshift.io/nexus-coba imported with errors This Solution only add --insecure after --confirm.

oc import-image nexus-coba:3.5 --from=192.168.250.250:8083/node-nexus --confirm --insecure

denikaryadi-2606 avatar Nov 26 '19 09:11 denikaryadi-2606