- Oracle SOA Suite on Kubernetes
- Administration Guide
- Expose the T3/T3S Protocol
- Remove T3/T3S Configuration
Remove T3/T3S Configuration
- For administration server, do the following:
- Create
t3_admin_delete.py
with the following content:admin_pod_name = sys.argv[1] admin_port = sys.argv[2] user_name = sys.argv[3] password = sys.argv[4] AdminServerName = sys.argv[5] channelType = sys.argv[6] print('custom admin_pod_name : [%s]' % admin_pod_name); print('custom admin_port : [%s]' % admin_port); print('custom user_name : [%s]' % user_name); print('custom password : ********'); connect(user_name, password, 't3://' + admin_pod_name + ':' + admin_port) edit() startEdit() cd('/') cd('Servers/%s/' % AdminServerName ) if channelType == 't3': delete('T3Channel_AS','NetworkAccessPoint') elif channelType == 't3s': delete('T3SChannel_AS','NetworkAccessPoint') else: print('channelType [%s] not supported',channelType) activate() disconnect()
- Copy
t3_admin_delete.py
into the domain home (for example,/u01/oracle/user_projects/domains/soainfra
) of the Administration Server pod (for example,soainfra-adminserver
insoans namespace
).kubectl cp t3_admin_delete.py soans/soainfra-adminserver:/u01/oracle/user_projects/domains/soainfra
- Run
wlst.sh t3_admin_delete.py
by exec into the Administration Server pod with the following parameters:- admin_pod_name: soainfra-adminserver # Administration Server pod
- admin_port: 7001
- user_name: weblogic
- password: Welcome1 # weblogic password
- AdminServerName: AdminServer # Give administration Server name
- channelType: t3 # T3 channel
kubectl exec -it <Administration Server pod> -n <namespace> -- /u01/oracle/oracle_common/common/bin/wlst.sh <domain_home>/t3_admin_delete.py <Administration Server pod> <Administration Server port> weblogic <password for weblogic> <AdminServerName> <protocol t3 or t3s>
For example:
kubectl exec -it soainfra-adminserver -n soans -- /u01/oracle/oracle_common/common/bin/wlst.sh /u01/oracle/user_projects/domains/soainfra/t3_admin_delete.py soainfra-adminserver 7001 weblogic Welcome1 AdminServer t3
- Delete the NodePort service for port
30014
:kubectl delete -f t3_admin_svc.yaml
- Create
- For managed servers, do the following:These steps delete the custom T3/T3S channel created by Expose T3/T3S for Managed Servers for all Managed Servers.
- Create
t3_ms_delete.py
with the following content:admin_pod_name = sys.argv[1] admin_port = sys.argv[2] user_name = sys.argv[3] password = sys.argv[4] managedNameBase = sys.argv[5] ms_count = sys.argv[6] channelType = sys.argv[7] print('custom host : [%s]' % admin_pod_name); print('custom port : [%s]' % admin_port); print('custom user_name : [%s]' % user_name); print('custom password : ********'); connect(user_name, password, 't3://' + admin_pod_name + ':' + admin_port) edit() startEdit() for index in range(0, int(ms_count)): cd('/') msIndex = index+1 cd('/') name = '%s%s' % (managedNameBase, msIndex) cd('Servers/%s/' % name ) if channelType == 't3': delete('T3Channel_MS','NetworkAccessPoint') elif channelType == 't3s': delete('T3SChannel_MS','NetworkAccessPoint') else: print('Protocol [%s] not supported' % channelType) activate() disconnect()
- Copy
t3_ms_delete.py
into the domain home (for example,/u01/oracle/user_projects/domains/soainfra
) of the Administration Server pod (for example,soainfra-adminserver
insoans
namespace).kubectl cp t3_ms_delete.py soans/soainfra-adminserver:/u01/oracle/user_projects/domains/soainfra
- Run
wlst.sh t3_ms_delete.py
by exec into the Administration Server pod with the following parameters:- admin_pod_name: soainfra-adminserver # Administration Server pod
- admin_port: 7001
- user_name: weblogic
- password: Welcome1 # weblogic password
- managedNameBase: soa_server # Give Managed Server base name. For osb_cluster this will be osb_server
- ms_count: 5 # Number of configured Managed Servers
- channelType: t3 # channelType is t3 or t3s
kubectl exec -it <Administration Server pod> -n <namespace> -- /u01/oracle/oracle_common/common/bin/wlst.sh <domain_home>/t3_ms_delete.py <Administration Server pod> <Administration Server port> weblogic <password for weblogic> <t3 port on Managed Server> <t3 nodeport> <master_ip> <managedNameBase> <ms_count> <channelType t3 or t3s>
For example:
kubectl exec -it soainfra-adminserver -n soans -- /u01/oracle/oracle_common/common/bin/wlst.sh /u01/oracle/user_projects/domains/soainfra/t3_ms_delete.py soainfra-adminserver 7001 weblogic Welcome1 soa_server 5 t3
- Delete the NodePort service for port
30016
(or the NodePort used while creating the Kubernetes service):kubectl delete -f t3_ms_svc.yaml
- Create