mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-16 17:10:41 +03:00
generate kube-apiserver server certificate
This commit is contained in:
2
ca.conf
2
ca.conf
@@ -174,7 +174,7 @@ req_extensions = kube-api-server_req_extensions
|
|||||||
basicConstraints = CA:FALSE
|
basicConstraints = CA:FALSE
|
||||||
extendedKeyUsage = clientAuth, serverAuth
|
extendedKeyUsage = clientAuth, serverAuth
|
||||||
keyUsage = critical, digitalSignature, keyEncipherment
|
keyUsage = critical, digitalSignature, keyEncipherment
|
||||||
nsCertType = client
|
nsCertType = client, server
|
||||||
nsComment = "Kube API Server Certificate"
|
nsComment = "Kube API Server Certificate"
|
||||||
subjectAltName = @kube-api-server_alt_names
|
subjectAltName = @kube-api-server_alt_names
|
||||||
subjectKeyIdentifier = hash
|
subjectKeyIdentifier = hash
|
||||||
|
@@ -179,7 +179,8 @@ At this point the Kubernetes control plane is up and running. Run the following
|
|||||||
Make a HTTP request for the Kubernetes version info:
|
Make a HTTP request for the Kubernetes version info:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -k https://server.kubernetes.local:6443/version
|
curl --cacert ca.crt \
|
||||||
|
https://server.kubernetes.local:6443/version
|
||||||
```
|
```
|
||||||
|
|
||||||
```text
|
```text
|
||||||
|
@@ -11,7 +11,7 @@ Each kubeconfig requires a Kubernetes API Server to connect to.
|
|||||||
You should be able to ping `server.kubernetes.local` based on the `/etc/hosts` DNS entry from a previous lab.
|
You should be able to ping `server.kubernetes.local` based on the `/etc/hosts` DNS entry from a previous lab.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -k \
|
curl --cacert ca.crt \
|
||||||
https://server.kubernetes.local:6443/version
|
https://server.kubernetes.local:6443/version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user