chart包实例部署时,如果 replicas 值为1,则会按照单实例模式部署,进入pod后,查看keycloak相关进程信息:

jboss@keycloakinspursingle-0 ~]$ ps -ef|grep keycloak

jboss        1     0  0 03:14 ?        00:00:00 /bin/sh /opt/jboss/keycloak/bin/standalone.sh -Djboss.bind.address=10.1.170.189 -Djboss.bind.address.private=10.1.170.189 -b 0.0.0.0 -c standalone.xml

 

jboss      274     1 33 03:14 ?        00:00:40 /usr/lib/jvm/java/bin/java -D[Standalone] -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/jboss/keycloak/standalone/log/server.log -Dlogging.configuration=file:/opt/jboss/keycloak/standalone/configuration/logging.properties -jar /opt/jboss/keycloak/jboss-modules.jar -mp /opt/jboss/keycloak/modules org.jboss.as.standalone -Djboss.home.dir=/opt/jboss/keycloak -Djboss.server.base.dir=/opt/jboss/keycloak/standalone -Djboss.bind.address=10.1.170.189 -Djboss.bind.address.private=10.1.170.189 -b 0.0.0.0 -c standalone.xml

 

chart包实例部署时,如果 replicas 值大于1,如设置为3,则会按照HA(高可用)模式部署,进入其中一个pod后,查看keycloak相关进程信息:

[jboss@keycloakinspurha-0 ~]$ ps -ef|grep keycloak

jboss        1     0  0 02:38 ?        00:00:00 /bin/sh /opt/jboss/keycloak/bin/standalone.sh -Djboss.bind.address=10.1.170.168 -Djboss.bind.address.private=10.1.170.168 -b 0.0.0.0 -c standalone-ha.xml

 

jboss      335     1  2 02:39 ?        00:01:12 /usr/lib/jvm/java/bin/java -D[Standalone] -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file=/opt/jboss/keycloak/standalone/log/server.log -Dlogging.configuration=file:/opt/jboss/keycloak/standalone/configuration/logging.properties -jar /opt/jboss/keycloak/jboss-modules.jar -mp /opt/jboss/keycloak/modules org.jboss.as.standalone -Djboss.home.dir=/opt/jboss/keycloak -Djboss.server.base.dir=/opt/jboss/keycloak/standalone -Djboss.bind.address=10.1.170.168 -Djboss.bind.address.private=10.1.170.168 -b 0.0.0.0 -c standalone-ha.xml

 

 

 

 

 

转载于:https://my.oschina.net/u/4058864/blog/2995527

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐