Q: How to deploy keycloak as a pod in kubernetes dashboard which is set up up in AWS EC2? Added from a form which is quay.io/keycloak/keycloak
Changed from Loadbalancer to a Nodeport
Can visit that but ip:port
Showing error to add a user from localhost:8080 or use add-user-keycloak script

A: Please follow the docs Keycloak on Kubernetes.
You can find instructions there, how deploy keycloak inside minikube.
However you can download this deployment files and modify the settings according to your needs.
F.E. you can change service type from Loadbalancer to NodePort.
In addition please consider making a changes in other settings like: KEYCLOAK_USER, KEYCLOAK_PASSWORD:
wget -q -O - https://raw.githubusercontent.com/keycloak/keycloak-quickstarts/latest/kubernetes-examples/keycloak.yaml | \
sed "s/LoadBalancer/NodePort/" | \
kubectl create -f -

In order to access your keycloak instance you should change:

*

*minikube ip ( to your externalIp address associated with your vm or use nodeIP from inside the vm)


*verify your service NodePort by running.
    kubectl get services/keycloak -o go-template='{{(index .spec.ports 0).nodePort}}'
    kubectl get svc -o wide

By default NodePort should be in the range  (30000-32767)
