using kubeadm on ec2 expose pods with public ip code example
Example: how to expose external ip in kubernetes
kubectl expose deployment hello-world --type=LoadBalancer --name=my-service
kubectl expose deployment hello-world --type=LoadBalancer --name=my-service