question bout lab 5.1 (grep values)
in lab 5.1 - Exercise 2.1 the examples grep for a "client-cert" but i dont have that in my .kube/config. but theres a "certificate-authority-data" is that the same.
and also in Exercise 2. theres "client-key-data" also dont have that in the config file.
kubectl works fine so i think my .kube/config ist ok.
so whats this fields they grep for and how do i get them? i am using kubernetes 1.22
any help would be greate
regards
markus
Answers
-
Hi @mmaussner,
The .kube/config file should include a "certificate-authority-data" in the clusters stanza towards the top, "client-certificate-data" and "client-key-data" in the users stanza towards the bottom. Grepping for "client-cert" sub-string of the "client-certificate-data" string should match the desired line.
The content of the .kube/config file may look different if other cluster bootstrapping tools are used instead of kubeadm, and you may find the desired certificates and keys stored in individual files rather than the .kube/config file itself. What method did you use to bootstrap the cluster?
What outputs do you get by echo-ing $client, $key, and $auth after the three exports?
Regards,
-Chris0
Categories
- All Categories
- 179 LFX Mentorship
- 179 LFX Mentorship: Linux Kernel
- 777 Linux Foundation IT Professional Programs
- 384 Cloud Engineer IT Professional Program
- 175 Advanced Cloud Engineer IT Professional Program
- 76 DevOps IT Professional Program - Discontinued
- 7 DevOps & GitOps IT Professional Program
- 104 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 21 AI & ML Training
- 2 Blockchain & Decentralized Identity Training
- 52 Cloud & Containers Training
- 7 Cybersecurity Training
- 5 DevOps & Site-Reliability Training
- 3 Linux Kernel Development Training
- 3 Networking Training
- 2 Open Source Best Practice Training
- 12 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 799 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 97 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 776 Linux Distributions
- 83 Debian
- 68 Fedora
- 25 Linux Mint
- 13 Mageia
- 24 openSUSE
- 151 Red Hat Enterprise
- 32 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 473 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 104 Linux Security
- 79 Network Management
- 102 System Management
- 46 Web Management
- 191 Mobile Computing
- 32 Android
- 143 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 407 Off Topic
- 128 Introductions
- 35 Study Material
- 1.1K Programming and Development
- 312 Kernel Development
- 739 Software Development
- 1K Software
- 421 Applications
- 183 Command Line
- 5 Compiling/Installing
- 71 Games
- 320 Installation
- Archived
- 183 Small Talk
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)