Welcome to the Linux Foundation Forum!

Chapter 6 - Discovering API Groups

There is a typo in chapter 6 - Discovering API Groups:

We can take a closer look at the output of the request for current APIs. Each of the name values can be appended to the URL to see details of that group. For example, you could drill down to find included objects at this URL:
https://localhost:6443/apis/apiregistrationk8s.io/v1beta1

The URL is missing a dot:
https://localhost:6443/apis/apiregistration.k8s.io/v1beta1

Using the setup from the labs, the following URL will also work:
https://k8smaster:6443/apis/apiregistration.k8s.io/v1beta1

When using a web browser or curl, the result is ultimately this:

  1. kind "Status"
  2. apiVersion "v1"
  3. metadata {}
  4. status "Failure"
  5. message "forbidden: User \"system:anonymous\" cannot get path \"/apis/apiregistrationk8s.io/v1beta1\""
  6. reason "Forbidden"
  7. details {}
  8. code 403
  9.  

This is expected when I don't use authentication. As demonstrated in the previous lab, we can use curl when we supply the keys:
curl --cert client.pem --key client-key.pem --cacert ca.pem https://k8smaster:6443/apis/apiregistration.k8s.io/v1beta1

Copying these .pem keys to other machines allows remote access. I'm still looking for a way to include these keys so the browser (Firefox) will use them.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training