Here what I going to create an AWS load balance and point that to the created Pods. First run the below command
# kubectl expose deployment hemal-nginx --port=80 --type=LoadBalancer
Then run
# kubectl get services -o wide
If you get an error like below that means you have a permission issue with the IAM role assigned.
To fix this you need to add an IAM role with the required permission. The steps can be found here.
No comments:
Post a Comment