Error: error creating self-signed certificates: open /var/run/kubernetes/apiserver.crt: permission denied

Bug #1889550 reported by Bilal bin Ameer
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
magnum (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When creating a cluster without specifying TLS, kube-apiserver tries to setup self signed certificate in default dir /var/run/kubernetes/apiserver.crt and fails with permission denied error.
Many people facing this issue, with no clear resolution.

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.6", GitCommit:"b1d75deca493a24a2f87eb1efde1a569e52fc8d9", GitTreeState:"clean", BuildDate:"2018-12-16T04:39:52Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
The connection to the server localhost:8080 was refused - did you specify the right host or port?

Cluster then timesout as not being able to connect to API.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in magnum (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.