A simple example that shows how to use client-go to interact with a Kubernetes cluster by creating a Deployment and a Service.
- Run the Go program to create the pod:
go run main.go
- Verify that the pod is created:
kubeectl get deployment kubectl get pods kubectl get service