Update the KeyCloak Port on Minikube

Hi Team ,

We are deploying Keycloak on our Minikube Environment , We want to update the Keycloak port , We tried with different ports but nothing seems work, I have followed few Stack overflow where they guided to use Offset for Windows /linux deployments .

Is there a way we can use it for kubernetes deployment ?

I guess you are using standard Keycloak image - e.g. jboss/keycloak or quay.io/keycloak/keycloak.

Why you can map incomming port to the targetport on the Kubernetes Service level? E.g.:

apiVersion: v1
kind: Service
metadata:
  name: my-service
spec:
  ports:
    - protocol: TCP
      port: 80
      targetPort: 8080

If you need it on the pod level, then you may need to have customized standalone-ha.xml.