Skip to content

Commit 46ec50c

Browse files
moreautrjeberhard
authored andcommitted
OWLS-71195
1 parent 3b0cf33 commit 46ec50c

File tree

5 files changed

+33
-30
lines changed

5 files changed

+33
-30
lines changed

kubernetes/samples/charts/ingress-per-domain/README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ To install the chart with the release name, `my-ingress`, with the given `values
1313
```
1414
# Change directory to the cloned git weblogic-kubernetes-operator repo.
1515
$ cd kubernetes/samples/charts
16-
$ helm install ingress-per-domain --name my-ingress --values values.yaml
16+
17+
# Use helm to install the chart. Use `--namespace` to specify the name of the WebLogic domain's namespace.
18+
$ helm install ingress-per-domain --name my-ingress --namespace my-domain-namespace --values values.yaml
1719
```
1820
The Ingress resource will be created in the same namespace as the WebLogic domain cluster.
1921

@@ -23,10 +25,9 @@ type: TRAEFIK
2325
2426
# WLS domain as backend to the load balancer
2527
wlsDomain:
26-
namespace: default
2728
domainUID: domain1
2829
clusterName: cluster1
29-
svcPort: 8001
30+
managedServerPort: 8001
3031
3132
# Traefik specific values
3233
traefik:
@@ -40,10 +41,9 @@ type: VOYAGER
4041
4142
# WLS domain as backend to the load balancer
4243
wlsDomain:
43-
namespace: default
4444
domainUID: domain1
4545
clusterName: cluster1
46-
svcPort: 8001
46+
managedServerPort: 8001
4747
4848
# Voyager specific values
4949
voyager:
@@ -60,15 +60,14 @@ $ helm delete --purge my-ingress
6060
## Configuration
6161
The following table lists the configurable parameters of this chart and their default values.
6262

63-
| Parameter | Description | Default |
64-
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
65-
| `type` | Type of Ingress controller. Legal values are `TRAEFIK` or `VOYAGER`. | `TRAEFIK` |
66-
| `wlsDomain.namespace` | Namespace of the WLS domain cluster. | `default` |
67-
| `wlsDomain.domainUID` | DomainUID of the WLS domain. | `domain1` |
68-
| `wlsDomain.clusterName` | Cluster name in the WLS domain. | `cluster-1` |
69-
| `wlsDomain.svcPort` | Service port of the WLS domain cluster. | `8001` |
70-
| `traefik.hostname` | Hostname to route to the WLS domain cluster. | `domain1.org` |
71-
| `voyager.webPort` | Web port to access the Voyager load balancer. | `30305` |
72-
| `voyager.statsPort` | Port to access the Voyager/HAProxy stats page. | `30315` |
63+
| Parameter | Description | Default |
64+
| --- | --- | --- |
65+
| `type` | Type of Ingress controller. Legal values are `TRAEFIK` or `VOYAGER`. | `TRAEFIK` |
66+
| `wlsDomain.domainUID` | DomainUID of the WLS domain. | `domain1` |
67+
| `wlsDomain.clusterName` | Cluster name in the WLS domain. | `cluster-1` |
68+
| `wlsDomain.managedServerPort` | Port number of the managed servers in the WLS domain cluster. | `8001` |
69+
| `traefik.hostname` | Hostname to route to the WLS domain cluster. | `domain1.org` |
70+
| `voyager.webPort` | Web port to access the Voyager load balancer. | `30305` |
71+
| `voyager.statsPort` | Port to access the Voyager/HAProxy stats page. | `30315` |
7372

7473
**Note:** The input values `domainUID` and `clusterName` will be used to generate the Kubernetes `serviceName` of the WLS cluster with the format `domainUID-cluster-clusterName`.
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
1+
# Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

44
{{- if eq .Values.type "TRAEFIK" }}
55
---
66
apiVersion: extensions/v1beta1
77
kind: Ingress
88
metadata:
9-
name: {{ .Release.Name }}-traefik
10-
namespace: {{ .Values.wlsDomain.namespace }}
9+
name: {{ .Values.wlsDomain.domainUID }}-traefik
10+
namespace: {{ .Release.Namespace }}
11+
labels:
12+
weblogic.resourceVersion: domain-v2
1113
spec:
1214
annotations:
1315
kubernetes.io/ingress.class: traefik
@@ -18,5 +20,5 @@ spec:
1820
- path:
1921
backend:
2022
serviceName: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.clusterName | lower | replace "_" "-" }}'
21-
servicePort: {{ .Values.wlsDomain.svcPort }}
23+
servicePort: {{ .Values.wlsDomain.managedServerPort }}
2224
{{- end }}

kubernetes/samples/charts/ingress-per-domain/templates/voyager-ingress.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
1+
# Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

44
{{- if eq .Values.type "VOYAGER" }}
55
---
66
apiVersion: voyager.appscode.com/v1beta1
77
kind: Ingress
88
metadata:
9-
name: {{ .Release.Name }}-voyager
10-
namespace: {{ .Values.wlsDomain.namespace }}
9+
name: {{ .Values.wlsDomain.domainUID }}-voyager
10+
namespace: {{ .Release.Namespace }}
11+
labels:
12+
weblogic.resourceVersion: domain-v2
1113
annotations:
1214
ingress.appscode.com/type: 'NodePort'
1315
ingress.appscode.com/stats: 'true'
@@ -20,14 +22,16 @@ spec:
2022
paths:
2123
- backend:
2224
serviceName: '{{ .Values.wlsDomain.domainUID }}-cluster-{{ .Values.wlsDomain.clusterName | lower | replace "_" "-" }}'
23-
servicePort: '{{ .Values.wlsDomain.svcPort }}'
25+
servicePort: '{{ .Values.wlsDomain.managedServerPort }}'
2426

2527
---
2628
apiVersion: v1
2729
kind: Service
2830
metadata:
29-
name: {{ .Release.Name }}-voyager-stats
30-
namespace: {{ .Values.wlsDomain.namespace }}
31+
name: {{ .Values.wlsDomain.domainUID }}-voyager-stats
32+
namespace: {{ .Release.Namespace }}
33+
labels:
34+
weblogic.resourceVersion: domain-v2
3135
spec:
3236
type: NodePort
3337
ports:

kubernetes/samples/charts/ingress-per-domain/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018 Oracle Corporation and/or its affiliates. All rights reserved.
1+
# Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

44
# Default values for ingress-per-domain.
@@ -10,10 +10,9 @@ type: TRAEFIK
1010

1111
# WLS domain as backend to the load balancer
1212
wlsDomain:
13-
namespace: default
1413
domainUID: domain1
1514
clusterName: cluster-1
16-
svcPort: 8001
15+
managedServerPort: 8001
1716

1817
# Traefik specific values
1918
traefik:

site/quickstart.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,10 @@ $ kubectl get services -n sample-domain1-ns
205205
```
206206

207207
d. Create an Ingress for the domain, in the domain namespace, by using the [sample](../kubernetes/samples/charts/ingress-per-domain/README.md) Helm chart:
208-
* Use `helm install`, specifying the `domainUID` (`sample-domain1`) and domain namespace (`sample-domain1-ns`) in the `values.yaml` file.
209208
```
210209
$ helm install kubernetes/samples/charts/ingress-per-domain \
211210
--name sample-domain1-ingress \
212-
--set wlsDomain.namespace=sample-domain1-ns \
211+
--namespace sample-domain1-ns \
213212
--set wlsDomain.domainUID=sample-domain1 \
214213
--set traefik.hostname=sample-domain1.org
215214
```

0 commit comments

Comments
 (0)