From the course: Debugging Kubernetes
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Retrieving user certificates from kubeconfig files - Kubernetes Tutorial
From the course: Debugging Kubernetes
Retrieving user certificates from kubeconfig files
- [Instructor] Here's the first command that we ran to get the user's authentication information. We want to extract the client-certificate-data and client-key-data into two separate files. Client-certificate-data will be our user's certificate, and client-key-data will be the key that this certificate is paired with. Given what we know now about the config view command, this is easy to do. Go back to your --raw command that we ran earlier. What we're going to do here is at the end of this square bracket, we're going to add .user.client-certificate-data. This will give us just the certificate data, like you can see here. However, if you recall from our review of cov-configs earlier, certificates are encoded in Base64. As a result, we need to decode this. So what we're going to do is we're going to run this command again, but at the end of it, we're going to add a pipe and then provide base64 -d. This will give us a…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Quick refresher on kubeconfig files3m 37s
-
(Locked)
Why Kubernetes authentication issues occur2m 2s
-
(Locked)
Retrieving data from kubeconfig contexts7m 48s
-
(Locked)
Retrieving user certificates from kubeconfig files6m
-
(Locked)
Confirming kubeconfig certificate validity2m 32s
-
(Locked)
Generating new Kubernetes user certificates9m 10s
-
(Locked)
Understanding slow kubectl commands4m 24s
-
(Locked)
Understanding NotReady Kubernetes nodes1m 5s
-
(Locked)
Identifying kubelets that are not started5m 33s
-
(Locked)
Restarting the kubelet service4m 7s
-
(Locked)
Troubleshooting missing CNIs5m 1s
-
(Locked)
Understanding slow Kubernetes resource deletions1m 33s
-
(Locked)
Identifying Kubernetes resource finalizers4m 26s
-
(Locked)
Safely removing Kubernetes resource finalizers3m 47s
-
(Locked)
Removing finalizers from namespaces6m 57s
-
(Locked)
-