Lab 5.1 - Configuring TLS Access and minikube
I am running minikube version: v1.12.0 using Docker driver
which run Kubernetes v1.18.3
I also have kubectl v1.18.6
On Lab 5.1, I am unable to use curl to access the HTTPS endpoint on my machine at https://172.17.0.2:8443
I believe these are relevant info from my ~/.kube/config for my certificates:
certificate-authority: ~/.minikube/ca.crt client-certificate: ~/.minikube/profiles/minikube/client.crt client-key: ~/.minikube/profiles/minikube/client.key
So for step 7, I tried running the following but got the following error:curl --cert ~/.minikube/profiles/minikube/client.crt --key ~/.minikube/profiles/minikube/client.key --cacert ~/.minikube/ca.crt https://172.17.0.2:8443/api/v1/namespaces/default/pods
curl: (35) You are attempting to import a cert with the same issuer/serial as an existing cert, but that is not the same cert.
BTW: I am able to workaround this via the running kubectl proxy (which was able to listen on 127.0.0.1:8001), allowing me to do curl http://127.0.0.1:8001/api/v1/namespaces/default/pods, but then I am not using TLS certs which defeats the purpose of this lab.
Any help with using TLS certs with curl and minikube this would be appreciated.
Categories
- All Categories
- 179 LFX Mentorship
- 179 LFX Mentorship: Linux Kernel
- 776 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
- 103 Cloud Native Developer IT Professional Program
- 7.7K Training Courses & Learning Paths
- 17 AI & ML Training
- 2 Blockchain & Decentralized Identity Training
- 44 Cloud & Containers Training
- 7 Cybersecurity Training
- 4 DevOps & Site-Reliability Training
- 3 Linux Kernel Development Training
- 2 Networking Training
- 2 Open Source Best Practice Training
- 6 System Administration Training
- 1 System Engineering Training
- 6 Web & Application Development Training
- 798 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 92 Storage
- 774 Linux Distributions
- 82 Debian
- 68 Fedora
- 24 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
- 174 Mobile Computing
- 32 Android
- 127 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
- 729 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)