2021-03-08 10:45:37 -05:00
|
|
|
# Kubernetes Java API Sample Code
|
|
|
|
|
|
|
|
This module contains sample code used to show how to use the Kubernetes client Java API.
|
|
|
|
|
|
|
|
Before running those samples, make sure that your environment is correctly configured to access
|
|
|
|
a working Kubernetes cluster.
|
|
|
|
|
|
|
|
An easy way to check that everything is working as expected is issuing any *kubectl get* command:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ kubectl get nodes
|
|
|
|
```
|
2021-03-24 12:52:01 -04:00
|
|
|
If you get a valid response, then you're good to go.
|
|
|
|
|
|
|
|
### Relevant Articles:
|
|
|
|
|
|
|
|
- [Paging and Async Calls with the Kubernetes API](https://www.baeldung.com/java-kubernetes-paging-async)
|
2021-04-28 17:21:34 -04:00
|
|
|
- [Using Watch with the Kubernetes API](https://www.baeldung.com/java-kubernetes-watch)
|