Quantcast
Channel: DevOps tips & tricks
Viewing all articles
Browse latest Browse all 181

Weblogic k8s Operator - SSH into minikube container

$
0
0

HOWTO


SSH into pod

dave@fedora quickstart]$ kubectl get pods -n sample-domain1-ns
NAME                             READY   STATUS    RESTARTS   AGE
sample-domain1-admin-server      1/1     Running   0          10h
sample-domain1-managed-server1   1/1     Running   0          10h
sample-domain1-managed-server2   1/1     Running   0          10h
[dave@fedora quickstart]$  kubectl exec -it -n sample-domain1-ns sample-domain1-admin-server -- /bin/bash
Defaulted container "weblogic-server" out of: weblogic-server, operator-aux-container1 (init)
[oracle@sample-domain1-admin-server oracle]$ ls
OPatch  coherence  create-wls-domain.py  createAndStartEmptyDomain.sh  inventory  oraInst.loc  oraInventory  oracle_common  oui  root.sh  wlserver

Domain location
[oracle@sample-domain1-admin-server u01]$ ls -1
domains
jdk
nodemanager
oracle

Admin server log
[oracle@sample-domain1-admin-server u01]$ cat   /u01/domains/sample-domain1/servers/admin-server/logs/admin-server.log
####<Mar 2, 2024 10:20:16,078 AM GMT> <Info> <Security> <sample-domain1-admin-server> <> <main> <> <> <> <1709374816078> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.> 
####<Mar 2, 2024 10:20:16,131 AM GMT> <Info> <Security> <sample-domain1-admin-server> <> <main> <> <> <> <1709374816131> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.> 
####<Mar 2, 2024 10:20:16,544 AM GMT> <Info> <WebLogicServer> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374816544> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.391-b26 from Oracle Corporation.> 
####<Mar 2, 2024 10:20:16,605 AM GMT> <Info> <RCM> <sample-domain1-admin-server> <> <Thread-5> <> <> <> <1709374816605> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.> 
####<Mar 2, 2024 10:20:16,763 AM GMT> <Info> <Management> <sample-domain1-admin-server> <> <Thread-8> <> <> <> <1709374816763> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-141107> <Version: WebLogic Server 12.2.1.4.0 Thu Sep 12 04:04:29 GMT 2019 1974621> 
####<Mar 2, 2024 10:20:17,569 AM GMT> <Notice> <WebLogicServer> <sample-domain1-admin-server> <> <Thread-8> <> <> <> <1709374817569> <[severity-value: 32] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000365> <Server state changed to STARTING.> 
####<Mar 2, 2024 10:20:17,592 AM GMT> <Info> <WorkManager> <sample-domain1-admin-server> <> <Thread-8> <> <> <> <1709374817592> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002900> <Initializing self-tuning thread pool.> 
####<Mar 2, 2024 10:20:17,614 AM GMT> <Info> <WorkManager> <sample-domain1-admin-server> <> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1709374817614> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.> 
####<Mar 2, 2024 10:20:17,641 AM GMT> <Info> <WebLogicServer> <sample-domain1-admin-server> <> <Thread-8> <> <> <> <1709374817641> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000214> <WebLogic Server "admin-server" version:
WebLogic Server 12.2.1.4.0 Thu Sep 12 04:04:29 GMT 2019 1974621 Copyright (c) 1995,2019, Oracle and/or its affiliates. All rights reserved.> 
####<Mar 2, 2024 10:20:17,661 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817661> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "t3" is now configured.> 
####<Mar 2, 2024 10:20:17,661 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817661> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "t3s" is now configured.> 
####<Mar 2, 2024 10:20:17,661 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817661> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "http" is now configured.> 
####<Mar 2, 2024 10:20:17,661 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817661> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "https" is now configured.> 
####<Mar 2, 2024 10:20:17,662 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817662> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "iiop" is now configured.> 
####<Mar 2, 2024 10:20:17,662 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817662> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "iiops" is now configured.> 
####<Mar 2, 2024 10:20:17,662 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817662> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "ldap" is now configured.> 
####<Mar 2, 2024 10:20:17,662 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817662> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "ldaps" is now configured.> 
####<Mar 2, 2024 10:20:17,663 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817663> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "cluster" is now configured.> 
####<Mar 2, 2024 10:20:17,664 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817664> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "clusters" is now configured.> 
####<Mar 2, 2024 10:20:17,665 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817665> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "snmp" is now configured.> 
####<Mar 2, 2024 10:20:17,665 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817665> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002622> <The protocol "admin" is now configured.> 
####<Mar 2, 2024 10:20:17,665 AM GMT> <Info> <Server> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817665> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-002624> <The administration protocol is "t3s" and is now configured.> 
####<Mar 2, 2024 10:20:17,686 AM GMT> <Info> <RJVM> <sample-domain1-admin-server> <> <Thread-7> <> <> <> <1709374817686> <[severity-value: 64] [partition-id: 0] [partition-name: DOMAIN] > <BEA-000570> <Network Configuration for Channel "admin-server"
 Listen Address         sample-domain1-admin-server:7001
 Public Address         N/A
 Http Enabled         true
 Tunneling Enabled     false
 Outbound Enabled     false
 Admin Traffic Enabled     true ResolveDNSName Enabled     false> 

Domain config.xml
[oracle@sample-domain1-admin-server oracle]$ cat /u01/domains/sample-domain1/config/config.xml 
<?xml version="1.0" encoding="UTF-8"?>
<domain xsi:schemaLocation="http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/xacml http://xmlns.oracle.com/weblogic/security/xacml/1.0/xacml.xsd" xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <name>sample-domain1</name>
  <domain-version>12.2.1.4.0</domain-version>
  <security-configuration xmlns:xacml="http://xmlns.oracle.com/weblogic/security/xacml" xmlns:pas="http://xmlns.oracle.com/weblogic/security/providers/passwordvalidator">
    <name>sample-domain1</name>
    <realm>
      <sec:authentication-provider xsi:type="wls:default-authenticatorType">
        <sec:name>DefaultAuthenticator</sec:name>
      </sec:authentication-provider>
      <sec:authentication-provider xsi:type="wls:default-identity-asserterType">
        <sec:name>DefaultIdentityAsserter</sec:name>
        <sec:active-type>AuthenticatedUser</sec:active-type>
        <sec:active-type>weblogic-jwt-token</sec:active-type>
      </sec:authentication-provider>
      <sec:role-mapper xsi:type="xacml:xacml-role-mapperType">
        <sec:name>XACMLRoleMapper</sec:name>
      </sec:role-mapper>
      <sec:authorizer xsi:type="xacml:xacml-authorizerType">
        <sec:name>XACMLAuthorizer</sec:name>
      </sec:authorizer>
      <sec:adjudicator xsi:type="wls:default-adjudicatorType">
        <sec:name>DefaultAdjudicator</sec:name>
      </sec:adjudicator>
      <sec:credential-mapper xsi:type="wls:default-credential-mapperType">
        <sec:name>DefaultCredentialMapper</sec:name>
      </sec:credential-mapper>
      <sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType">
        <sec:name>WebLogicCertPathProvider</sec:name>
      </sec:cert-path-provider>
      <sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>
      <sec:name>myrealm</sec:name>
      <sec:password-validator xsi:type="pas:system-password-validatorType">
        <sec:name>SystemPasswordValidator</sec:name>
        <pas:min-password-length>8</pas:min-password-length>
        <pas:min-numeric-or-special-characters>1</pas:min-numeric-or-special-characters>
      </sec:password-validator>
    </realm>
    <default-realm>myrealm</default-realm>
    <credential-encrypted>{AES256}nUSNfFy5HebZaCxN7d6lotMx9ummfbPxODz8QDAtpGvrpIBYXZ4rOTFMA/P38eaB8v4V101EFb5B7PBEvBCsx5sIfZnb2i34Ov3RgF6BzzhRAGxNduc3vIEAa4rJzzK4</credential-encrypted>
    <node-manager-username>weblogic</node-manager-username>
    <node-manager-password-encrypted>{AES256}l1JDbXn8tQQknuxwpZW24lx8X3BJhF9HEYfyaNj9Q+E=</node-manager-password-encrypted>
  </security-configuration>
  <server>
    <name>admin-server</name>
    <listen-address>sample-domain1-admin-server</listen-address>
    <network-access-point>
      <name>internal-t3</name>
      <listen-address>localhost</listen-address>
      <listen-port>7001</listen-port>
    </network-access-point>
    <server-life-cycle-timeout-val>30</server-life-cycle-timeout-val>
    <startup-timeout>0</startup-timeout>
  </server>
  <server-template>
    <name>server-template_1</name>
    <ssl>
      <name>server-template_1</name>
      <enabled>false</enabled>
      <listen-port>8100</listen-port>
    </ssl>
    <listen-port>8001</listen-port>
    <cluster>cluster-1</cluster>
    <listen-address>sample-domain1-managed-server${id}</listen-address>
    <jta-migratable-target>
      <name>${serverName}</name>
      <cluster>cluster-1</cluster>
    </jta-migratable-target>
  </server-template>
  <cluster>
    <name>cluster-1</name>
    <cluster-messaging-mode>unicast</cluster-messaging-mode>
    <dynamic-servers>
      <name>NO_NAME_0</name>
      <server-template>server-template_1</server-template>
      <maximum-dynamic-server-count>5</maximum-dynamic-server-count>
      <calculated-listen-ports>false</calculated-listen-ports>
      <server-name-prefix>managed-server</server-name-prefix>
      <dynamic-cluster-size>5</dynamic-cluster-size>
    </dynamic-servers>
  </cluster>
  <embedded-ldap>
    <name>sample-domain1</name>
    <credential-encrypted>{AES256}RF9stk46SYlr3TQEmx+42kJUrYUNT05jpayh8fwV9IPAKGDZIKGF1kM+GWDYb+FA</credential-encrypted>
  </embedded-ldap>
  <configuration-version>12.2.1.4.0</configuration-version>
  <app-deployment>
    <name>quickstart</name>
    <target>cluster-1</target>
    <module-type>war</module-type>
    <source-path>wlsdeploy/applications/quickstart</source-path>
  </app-deployment>
  <admin-server-name>admin-server</admin-server-name>
</domain>


Viewing all articles
Browse latest Browse all 181

Trending Articles