Kubernetes delete secret docker-registry error Unable to connect to the server: x509

1/17/2017

I have create two secret docker-registrys using with these step:

$ kubectl create secret docker-registry my-secret --docker-username=burak --docker-password=deniz --docker-email=burak@...

$ kubectl create secret docker-registry secret --docker-username=burak --docker-password=deniz --docker-email=burak@...

After these step I tried to get deployment with using that:

$ kubectl get deployment

and I have faced to that ERROR:

Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "minikubeCA")

and When I have tried to delete or get these secret docker-registrys,I faced to same Error.

How Can I delete these docker-registrys. Can you help me?.

Thank you for your answers.

-- Burak DENÄ°Z
docker
docker-registry
kubectl
kubernetes
x509certificate

1 Answer

3/29/2017

I recommend rebuilding your cluster and taking care to not disrupt the TLS tokens that you get for kubectl to function correctly.

-- diclophis
Source: StackOverflow