You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix text parsing issue
modified: utility.sh
Fix text parsing error on Ubuntu 18.04.5 LTS
modified: validate.sh
Fix yaml parsing error on MacOS.
Wait for resource ready on MacOS and remove code for helm less than 3.0
Add text for domain status troubleshooting
Use tag that includes AKS docs.
Per Reza, inline OCR authentication
Update _index.md
Update create-domain-on-aks-inputs.yaml
Update _index.md
Update _index.md
Update _index.md
Update _index.md
Update _index.md
Update _index.md
Remove UNIX
Update _index.md
Use AKS addon name
Use alias as Rosemary suggested in our last PR.
* Update _index.md
* Update _index.md
Co-authored-by: Galia <[email protected]>
Co-authored-by: Ryan Eberhard <[email protected]>
Copy file name to clipboardExpand all lines: docs-source/content/samples/simple/azure-kubernetes-service/_index.md
+84-43Lines changed: 84 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,35 +24,21 @@ AKS is a managed Kubernetes Service that lets you quickly deploy and manage Kube
24
24
25
25
#### Prerequisites
26
26
27
-
This sample assumes the following prerequisites.
27
+
This sample assumes the following prerequisite environment setup.
28
28
29
-
##### Environment for setup
30
-
31
-
This sample assumes one of the following two execution environments:
32
-
33
-
1. Run the commands on your local computer. This allows for the greatest flexibility while requiring some setup effort.
34
-
1. Run the commands in the Azure Cloud Shell. Cloud Shell is a browser-based utility and runs on the Azure portal. This option may be best for users already familiar with the utility and Azure. It is also suitable for users wanting to avoid installing additional software on their local computer.
35
-
36
-
* Local Environment Setup
37
-
38
-
* Operating System: Linux, UNIX, macOS or [WSL for Windows 10](https://docs.microsoft.com/windows/wsl/install-win10).
39
-
*[Git](https://git-scm.com/downloads), use `git --version` to test if `git` works. This document was tested with version 2.17.1.
40
-
*[Azure CLI](https://docs.microsoft.com/cli/azure), use `az --version` to test if `az` works. This document was tested with version 2.9.1.
41
-
*[kubectl](https://kubernetes-io-vnext-staging.netlify.com/docs/tasks/tools/install-kubectl/), use `kubectl version` to test if `kubectl` works. This document was tested with version v1.16.3.
42
-
*[helm](https://helm.sh/docs/intro/install/), version 3.1 and later, use `helm version` to check the `helm` version. This document was tested with version v3.2.4.
43
-
44
-
* Azure Cloud Shell
45
-
46
-
The Azure Cloud Shell already has the necessary prerequisites installed.
47
-
To start the Azure Cloud Shell, please go to [Overview of Azure Cloud Shell](https://docs.microsoft.com/azure/cloud-shell/overview).
29
+
* Operating System: GNU/Linux, macOS or [WSL for Windows 10](https://docs.microsoft.com/windows/wsl/install-win10).
30
+
*[Git](https://git-scm.com/downloads), use `git --version` to test if `git` works. This document was tested with version 2.17.1.
31
+
*[Azure CLI](https://docs.microsoft.com/cli/azure), use `az --version` to test if `az` works. This document was tested with version 2.9.1.
32
+
*[kubectl](https://kubernetes-io-vnext-staging.netlify.com/docs/tasks/tools/install-kubectl/), use `kubectl version` to test if `kubectl` works. This document was tested with version v1.16.3.
33
+
*[helm](https://helm.sh/docs/intro/install/), version 3.1 and later, use `helm version` to check the `helm` version. This document was tested with version v3.2.4.
48
34
49
35
##### Create Service Principal for AKS
50
36
51
37
An AKS cluster requires either an [Azure Active Directory (AD) service principal](https://docs.microsoft.com/azure/active-directory/develop/app-objects-and-service-principals) or a [managed identity](https://docs.microsoft.com/azure/aks/use-managed-identity) to interact with Azure resources.
52
38
53
39
We will use a service principal to create an AKS cluster. Follow the commands below to create a new service principal.
54
40
55
-
If you run commands in your local environment, please run `az login` first. Skip that command if you run on the Azure Cloud Shell. Do set the subscription you want to work with. You can get a list of your subscriptions by running `az account list`.
41
+
Please run `az login` first. Do set the subscription you want to work with. You can get a list of your subscriptions by running `az account list`.
56
42
57
43
```bash
58
44
# Login
@@ -118,24 +104,34 @@ Successful output will look like the following:
118
104
119
105
##### Oracle Container Registry
120
106
121
-
You will need an Oracle account. Follow the steps at [GET IMAGES](/weblogic-kubernetes-operator/quickstart/get-images/), accepting the license agreement for WebLogic Server in the process. Make note of your Oracle Account password and email. This sample pertains to 12.2.1.3, but other
122
-
versions may work as well.
107
+
You will need an Oracle account. The following steps will direct you to accept the license agreement for WebLogic Server. Make note of your Oracle Account password and email. This sample pertains to 12.2.1.3, but other versions may work as well.
108
+
109
+
1. Obtain the WebLogic Server image from the [Oracle Container Registry](https://container-registry.oracle.com/).
110
+
111
+
a. First time users, [follow these directions](/weblogic-kubernetes-operator/userguide/managing-domains/domain-in-image/base-images/#obtaining-standard-images-from-the-oracle-container-registry).
112
+
113
+
b. Find and then pull the WebLogic 12.2.1.3 install image:
##### Clone WebLogic Server Kubernetes Operator repository
125
120
126
-
Clone this repository to your machine. We will use several scripts in this repository to create a WebLogic domain. This sample was tested with v3.0.0.
121
+
Clone the [Oracle WebLogic Server Kubernetes Operator repository](https://github.com/oracle/weblogic-kubernetes-operator) to your machine. We will use several scripts in this repository to create a WebLogic domain. This sample was tested with v3.0.0-wls-aks.
{{% notice info %}} The following sections of the sample instructions will guide you, step-by-step, through the process of setting up a WebLogic cluster on AKS - remaining as close as possible to a native Kubernetes experience. This lets you understand and customize each step. If you wish to have a more automated experience that abstracts some lower level details, you can skip to the [Automation](#automation) section.
134
130
{{% /notice %}}
135
131
136
132
#### Create the AKS cluster
137
133
138
-
This sample requires that you disable http-application-routing by default. If you want to enable http_application_routing, please follow [HTTP application routing](https://docs.microsoft.com/azure/aks/http-application-routing).
134
+
This sample requires that you disable the AKS addon `http_application_routing`by default. If you want to enable`http_application_routing`, please follow [HTTP application routing](https://docs.microsoft.com/azure/aks/http-application-routing).
139
135
140
136
Run the following commands to create the AKS cluster instance.
141
137
@@ -273,9 +269,9 @@ For example, given the service principal created above, the following values mus
|`dockerEmail`|`yourDockerEmail`|The email address corresponding to the Docker user name|
277
-
|`dockerPassword`|`yourDockerPassword`| Your Docker password in clear text |
278
-
|`dockerUserName`|`yourDockerId`|Your Docker ID|
272
+
|`dockerEmail`|`yourDockerEmail`|Your Oracle Single Sign-On (SSO) account email, used to pull the WebLogic Server Docker image from the Oracle Container Registry.|
273
+
|`dockerPassword`|`yourDockerPassword`| Your Oracle Single Sign-On (SSO) account password in clear text.|
274
+
|`dockerUserName`|`yourDockerId`|The same value as `dockerEmail`. |
279
275
|`namePrefix`|`0730`| Alphanumeric value used as a disambiguation prefix forseveral Kubernetes resources. Make sure the value matches the value of `${NAME_PREFIX}` to keep namesin step-by-step commands the same with those in configuration files. |
280
276
281
277
Use the following command to generate configuration files, assuming the output directory is `~/azure`. The script will overwrite any files generated by a previous invocation.
@@ -307,7 +303,7 @@ Completed
307
303
308
304
In order to mount the file share as a persistent volume, we have provided a configuration file `pv.yaml`. You can find it in your output directory. The following content is an example that uses the value `0730-weblogic-1597391432` as "shareName", `0730azure-secret` as "secretName", and the persistent volume name is `0730-azurefile-1597391432`.
309
305
310
-
We will use the initial StorageClasses`azurefile`. If you want to create a new class, follow this document [Create a storage class](https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv#create-a-storage-class). For more information, see the page [Storage options for applications in Azure Kubernetes Service (AKS)](https://docs.microsoft.com/en-us/azure/aks/concepts-storage#storage-classes).
306
+
We will use the storage class`azurefile`. If you want to create a new class, follow this document [Create a storage class](https://docs.microsoft.com/en-us/azure/aks/azure-files-dynamic-pv#create-a-storage-class). For more information, see the page [Storage options forapplicationsin Azure Kubernetes Service (AKS)](https://docs.microsoft.com/en-us/azure/aks/concepts-storage#storage-classes).
The Oracle WebLogic Server Kubernetes Operator is an adapter to integrate WebLogic Server and Kubernetes, allowing Kubernetes to serve as a container infrastructure hosting WLS instances. The operator runs as a Kubernetes Pod and stands ready to perform actions related to running WLS on Kubernetes.
390
386
391
-
Kubernetes Operators use [Helm](https://helm.sh/) to manage Kubernetes applications. The operator’s Helm chart is located in the `kubernetes/charts/weblogic-operator` directory. Please check the Helm version first if you are using the Azure Cloud Shell, and run the corresponding command. This sample was tested with v3.0.0.
387
+
Kubernetes Operators use [Helm](https://helm.sh/) to manage Kubernetes applications. The operator’s Helm chart is located in the `kubernetes/charts/weblogic-operator` directory. Please install the operator by running the corresponding command.
The secret 0730regcred has been successfully created in the default namespace.
468
460
```
@@ -490,9 +482,9 @@ Now that we have created the AKS cluster, installed the operator, and verified t
490
482
491
483
3. We will use the `kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh` script to create the WLS domain in the persistent volume we created previously.
492
484
493
-
First, we need to set up the domain configuration for the WebLogic domain. This step uses the configuration generated previously.
485
+
We need to set up the domain configuration for the WebLogic domain. This step uses the configuration generated previously.
494
486
495
-
Next, validate all the resources created above using script `kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/validate.sh`.
487
+
Validate all the resources created above using the script `kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/validate.sh`.
496
488
497
489
Use the following commands to check if the resources are ready:
498
490
@@ -816,8 +808,8 @@ For input values, you can edit `kubernetes/samples/scripts/create-weblogic-domai
816
808
| `azureServicePrincipalClientSecret` | `8693089o-q190-45ps-9319-or36252s3s90` | A client secret of your service principal, refer to the client secret in the [Create Service Principal](#create-service-principal-for-aks) section. |
817
809
| `azureServicePrincipalTenantId` | `72s988os-86s1-cafe-babe-2q7pq011qo47` | Tenant (Directory ) ID of your service principal, refer to the client secret in the [Create Service Principal](#create-service-principal-for-aks) section. |
818
810
| `dockerEmail` | `yourDockerEmail` | Oracle Single Sign-On (SSO) account email, used to pull the WebLogic Server Docker image. |
819
-
| `dockerPassword` | `yourDockerPassword`| Password for Oracle SSO account password, used to pull the WebLogic Server Docker image. In clear text. |
820
-
| `dockerUserName` | `yourDockerId` | The same value as `dockerEmail` |
811
+
| `dockerPassword` | `yourDockerPassword`| Password for Oracle SSO account, used to pull the WebLogic Server Docker image. In clear text. |
812
+
| `dockerUserName` | `yourDockerId` | The same value as `dockerEmail`. |
821
813
| `namePrefix` | `0730` | Alphanumeric value used as a disambiguation prefix for several Kubernetes resources. |
822
814
823
815
If you don't want to change the other parameters, you can use the default values. Please make sure no extra whitespaces are added!
@@ -930,9 +922,9 @@ The logs are stored in the Azure file share. Follow these steps to access the lo
930
922
Check the deploy log and find the failure details with `kubectl describe pod podname`.
931
923
Please go to 1. Getting pod error details.
932
924
933
-
* **Process of starting the Administration Server is still running**
925
+
* **Process of starting the servers is still running**
934
926
935
-
Check with `kubectl get svc` and if domain1-admin-server is not listed,
927
+
Check with `kubectl get svc` and if domain1-admin-server, domain1-managed-server1 and domain1-managed-server2 are not listed,
936
928
we need to wait some more for the Administration Server to start.
937
929
938
930
The following output is an example of when the Administration Server has started.
@@ -951,6 +943,55 @@ The logs are stored in the Azure file share. Follow these steps to access the lo
951
943
kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 16m
952
944
```
953
945
946
+
If services are up but the WLS Administration Console is still not available, use `kubectl describe domain` to check domain status.
947
+
948
+
```bash
949
+
$ kubectl describe domain domain1
950
+
```
951
+
952
+
Make sure the status of cluster-1 is `ServersReady` and `Available`. The status of admin-server, managed-server1 and managed-server2 should be `RUNNING`. Otherwise, the cluster is likely still in the process of becoming fully ready.
953
+
954
+
```yaml
955
+
Status:
956
+
Clusters:
957
+
Cluster Name: cluster-1
958
+
Maximum Replicas: 5
959
+
Minimum Replicas: 1
960
+
Ready Replicas: 2
961
+
Replicas: 2
962
+
Replicas Goal: 2
963
+
Conditions:
964
+
Last Transition Time: 2020-07-06T05:39:32.539Z
965
+
Reason: ServersReady
966
+
Status: True
967
+
Type: Available
968
+
Replicas: 2
969
+
Servers:
970
+
Desired State: RUNNING
971
+
Node Name: aks-nodepool1-11471722-vmss000001
972
+
Server Name: admin-server
973
+
State: RUNNING
974
+
Cluster Name: cluster-1
975
+
Desired State: RUNNING
976
+
Node Name: aks-nodepool1-11471722-vmss000001
977
+
Server Name: managed-server1
978
+
State: RUNNING
979
+
Cluster Name: cluster-1
980
+
Desired State: RUNNING
981
+
Node Name: aks-nodepool1-11471722-vmss000001
982
+
Server Name: managed-server2
983
+
State: RUNNING
984
+
Cluster Name: cluster-1
985
+
Desired State: SHUTDOWN
986
+
Server Name: managed-server3
987
+
Cluster Name: cluster-1
988
+
Desired State: SHUTDOWN
989
+
Server Name: managed-server4
990
+
Cluster Name: cluster-1
991
+
Desired State: SHUTDOWN
992
+
Server Name: managed-server5
993
+
```
994
+
954
995
3. **Domain debugging**
955
996
956
997
Some suggestions for debugging problems with Model in Image after your Domain YAML file is deployed are found in the section on [debugging](/weblogic-kubernetes-operator/userguide/managing-domains/model-in-image/debugging/).
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks-inputs.yaml
0 commit comments