Skip to content

Commit 5a4692e

Browse files
Merge branch 'develop' into rmarano
2 parents 92f7205 + 0d97208 commit 5a4692e

27 files changed

+1641
-234
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ Please refer to [Scaling a WebLogic cluster](site/scaling.md) for more informati
158158

159159
Please refer to [Shutting down a domain](site/shutdown-domain.md) for information about how to shut down a domain running in Kubernetes.
160160

161-
## Load balancing
161+
162+
## Load balancing with an Ingress controller or a web server
163+
164+
You can choose a load balancer provider for your WebLogic domains running in a Kubernetes cluster. Please refer to Load balancing with Voyager Ingress Controller, [Load balancing with Traefik Ingress Controller](site/traefik.md), and [Load balancing with Apache Web Server](site/apache.md) for information about the current capabilities and setup instructions for each of the supported load balancers.
162165

163166

164167
[comment]: # (Exporting operator logs to ELK. The operator provides an option to export its log files to the ELK stack. Please refer to [ELK integration]site/elk.md for information about this capability.)

kubernetes/create-weblogic-domain-inputs.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,19 @@ exposeAdminNodePort: false
8989
# Name of the domain namespace
9090
namespace: default
9191

92-
# Load balancer to deploy. Supported values are:TRAEFIK, NONE
92+
# Load balancer to deploy. Supported values are: APACHE, TRAEFIK, VOYAGER, NONE
9393
loadBalancer: TRAEFIK
9494

95+
# Load balancer app prepath used for APACHE load balancer
96+
# This defines the /location in the built-in Apache plugin configuration module for WebLogic
97+
loadBalancerAppPrepath: /
98+
99+
# Docker volume path for APACHE. By default, it is empty, which causes the volume mount be
100+
# disabled and, thereforem the built-in Apache plugin config be used.
101+
# Use this to provide your own Apache plugin configuration as needed; simply define this
102+
# path and put your own custom_mod_wl_apache.conf file under this path.
103+
loadBalancerVolumePath:
104+
95105
# Load balancer web port
96106
loadBalancerWebPort: 30305
97107

kubernetes/delete-weblogic-domain-resources.sh

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ cat << EOF
5353
EOF
5454
}
5555

56-
5756
#
5857
# getDomainResources domain(s) outfilename
5958
#
@@ -75,8 +74,12 @@ function getDomainResources {
7574
LABEL_SELECTOR="weblogic.domainUID in ($1)"
7675
fi
7776

78-
# first, let's get all namespaced types with -l $LABEL_SELECTOR
77+
# clean the output file
78+
if [ -e $2 ]; then
79+
rm $2
80+
fi
7981

82+
# first, let's get all namespaced types with -l $LABEL_SELECTOR
8083
NAMESPACED_TYPES="pod,job,deploy,rs,service,pvc,ingress,cm,serviceaccount,role,rolebinding,secret"
8184

8285
# if domain crd exists, look for domains too:
@@ -85,10 +88,15 @@ function getDomainResources {
8588
NAMESPACED_TYPES="domain,$NAMESPACED_TYPES"
8689
fi
8790

91+
VOYAGER_ING_NAME="ingresses.voyager.appscode.com"
92+
if [ `kubectl get crd $VOYAGER_ING_NAME |grep $VOYAGER_ING_NAME | wc -l` = 1 ]; then
93+
NAMESPACED_TYPES="$VOYAGER_ING_NAME,$NAMESPACED_TYPES"
94+
fi
95+
8896
kubectl get $NAMESPACED_TYPES \
8997
-l "$LABEL_SELECTOR" \
9098
-o=jsonpath='{range .items[*]}{.kind}{" "}{.metadata.name}{" -n "}{.metadata.namespace}{"\n"}{end}' \
91-
--all-namespaces=true > $2
99+
--all-namespaces=true >> $2
92100

93101
# now, get all non-namespaced types with -l $LABEL_SELECTOR
94102

@@ -137,8 +145,8 @@ function deleteDomains {
137145
# get a count of all k8s resources with matching domain-uid labels
138146
local allcount=`wc -l $tempfile | awk '{ print $1 }'`
139147

140-
# get a count of all WLS pods (any pod with a matching domain-uid label that doesn't have 'traefik' embedded in its name)
141-
local podcount=`grep "^Pod" $tempfile | grep -v traefik | wc -l | awk '{ print $1 }'`
148+
# get a count of all WLS pods (any pod with a matching domain-uid label that doesn't have 'traefik' or 'apache' embedded in its name)
149+
local podcount=`grep "^Pod" $tempfile | grep -v traefik | grep -v apache | wc -l | awk '{ print $1 }'`
142150

143151
local mnow=`date +%s`
144152

@@ -196,9 +204,9 @@ function deleteDomains {
196204
# for each namespace with leftover resources, try delete them
197205
cat $tempfile | awk '{ print $4 }' | grep -v "^$" | sort -u | while read line; do
198206
if [ "$test_mode" = "true" ]; then
199-
echo kubectl -n $line delete $NAMESPACED_TYPES -l "$LABEL_SELECTOR"
207+
echo kubectl -n $line delete $NAMESPACED_TYPES -l "$LABEL_SELECTOR"
200208
else
201-
kubectl -n $line delete $NAMESPACED_TYPES -l "$LABEL_SELECTOR"
209+
kubectl -n $line delete $NAMESPACED_TYPES -l "$LABEL_SELECTOR"
202210
fi
203211
done
204212

@@ -260,3 +268,4 @@ if [ ! -x "$(command -v kubectl)" ]; then
260268
fi
261269

262270
deleteDomains "${domains}" "${maxwaitsecs:-$default_maxwaitsecs}"
271+

0 commit comments

Comments
 (0)