generate kube-apiserver server certificate
parent
f377d2ad74
commit
b6e493e463
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue