@@ -112,6 +112,7 @@ Verify the status of the load balancer (if used) to ensure it is healthy and for
112
112
traffic to the API server.
113
113
114
114
## TLS problems
115
+ * Additional tools required - ` base64 ` and ` openssl ` version 3.0 or above.
115
116
116
117
The Kubernetes API server only serves HTTPS requests by default. In that case TLS problems
117
118
may occur due to various reasons, such as certificate expiry or chain of trust validity.
@@ -123,23 +124,23 @@ directory. The `certificate-authority` attribute contains the CA certificate and
123
124
Verify the expiry of these certificates:
124
125
125
126
``` shell
126
- openssl x509 -noout -dates -in $( kubectl config view --minify --output ' jsonpath={.clusters[0].cluster.certificate-authority} ' )
127
+ kubectl config view --flatten --output ' jsonpath={.clusters[0].cluster.certificate-authority-data} ' | base64 -d | openssl x509 -noout -dates
127
128
```
128
129
129
130
output:
130
131
``` console
131
- notBefore=Sep 2 08:34:12 2023 GMT
132
- notAfter=Aug 31 08:34:12 2033 GMT
132
+ notBefore=Feb 13 05:57:47 2024 GMT
133
+ notAfter=Feb 10 06:02:47 2034 GMT
133
134
```
134
135
135
136
``` shell
136
- openssl x509 -noout -dates -in $( kubectl config view --minify --output ' jsonpath={.users[0].user.client-certificate} ' )
137
+ kubectl config view --flatten --output ' jsonpath={.users[0].user.client-certificate-data} ' | base64 -d | openssl x509 -noout -dates
137
138
```
138
139
139
140
output:
140
141
``` console
141
- notBefore=Sep 2 08:34:12 2023 GMT
142
- notAfter=Sep 2 08:34:12 2026 GMT
142
+ notBefore=Feb 13 05:57:47 2024 GMT
143
+ notAfter=Feb 12 06:02:50 2025 GMT
143
144
```
144
145
145
146
## Verify kubectl helpers
@@ -155,4 +156,4 @@ kubectl config view
155
156
```
156
157
157
158
If you previously used a helper tool (for example, ` kubectl-oidc-login ` ), ensure that it is still
158
- installed and configured correctly.
159
+ installed and configured correctly.
0 commit comments