| 
									
										
										
										
											2021-03-08 12:45:37 -03: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-25 00:52:01 +08: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-29 05:21:34 +08:00
										 |  |  | - [Using Watch with the Kubernetes API](https://www.baeldung.com/java-kubernetes-watch) | 
					
						
							| 
									
										
										
										
											2021-05-12 23:22:08 +08:00
										 |  |  | - [Using Namespaces and Selectors With the Kubernetes Java API](https://www.baeldung.com/java-kubernetes-namespaces-selectors) |