Skip to content

Conversation

@galiacheng
Copy link
Contributor

@galiacheng galiacheng commented Jan 21, 2022

This pr depends on #2726.

Changes:

  • update aks sample document in documentation/3.3
  • update aks sample document in documentation/staging
  • update aks sample scripts in main branch

Live page for review: https://zealous-dune-0dac9090f.1.azurestaticapps.net/samples/azure-kubernetes-service/domain-on-pv

Note that I have removed the specified operator version from staging document and scripts, as it's not available to use v3.3 for coming API version weblogic.oracle/v9.

@galiacheng galiacheng changed the title Update WLS on AKS sample with Azure NFS file share for storage Update aks sample with Azure NFS file share for storage Jan 21, 2022
@galiacheng
Copy link
Contributor Author

galiacheng commented Jan 24, 2022

Hello @rjeberhard @mriccell @rosemarymarano may I have your attention to this PR? Thank you!

Copy link
Contributor

@rosemarymarano rosemarymarano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edits and suggestions. There is a degree of content duplication and I did not want to re-enter the same edits/suggestions more than once. Please apply the same edits to all identical content.

6. Select logs.
7. Select domain1.
8. WebLogic Server logs are listed in the folder.
- Use Azure Storage bowser, make sure you have permission to access the NFS server, see [Azure Storage firewalls and virtual networks document](https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bowser, -> browser. (put a period after browser, then capitalize the next sentence.) -> Make sure you have permission..., then please put a period at the end of that sentence.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7. Select domain1.
8. WebLogic Server logs are listed in the folder.
- Use Azure Storage bowser, make sure you have permission to access the NFS server, see [Azure Storage firewalls and virtual networks document](https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal)
- Mount the same NFS share in an existing virtual machine from Azure, access files from the mounted path, see [Mount Azure NFS file share to Linux](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-how-to-mount-nfs-shares).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure, _ Azure. (put a period after Azure, then capitalize the next sentence.) -> Access files from the mounted path...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{%expand "Click here to view the WebLogic Server logs screenshot." %}}
![WebLogic Server Logs](../screenshot-logs.png)
{{% /expand %}}
We will use `kubectl exec` to enter the admin server pod to check file system status:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will use -> Use

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kubectl exec -it domain1-admin-server -- df -h
```

You should find output like the following, with filesystem `${AKS_PERS_STORAGE_ACCOUNT_NAME}.file.core.windows.net:/${AKS_PERS_STORAGE_ACCOUNT_NAME}/${AKS_PERS_SHARE_NAME}`, size `100G`, and mounted on `/shared`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should find output -> You will find output

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

##### Create an Azure Storage account and NFS share

Create a storage account using the Azure CLI. Note that the storage account name can contain only lowercase letters and numbers, and must be between 3 and 24 characters in length:
1. Create an Azure Storage Account
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create an Azure Storage Account -> Create an Azure Storage Account. (Please put a period at the end of the sentence.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7. Select domain1.
8. WebLogic Server logs are listed in the folder.
- Use Azure Storage bowser, make sure you have permission to access the NFS server, see [Azure Storage firewalls and virtual networks document](https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal)
- Mount the same NFS share in an existing virtual machine from Azure, access files from the mounted path, see [Mount Azure NFS file share to Linux](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-how-to-mount-nfs-shares).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the same edits here that I suggested previously for these statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

##### Create an Azure Storage account and NFS share

Create a storage account using the Azure CLI. Note that the storage account name can contain only lowercase letters and numbers, and must be between 3 and 24 characters in length:
1. Create an Azure Storage Account
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the same edits here that I suggested previously for these statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-l $AKS_PERS_LOCATION \
--sku Standard_LRS
```
Create a storage account using the Azure CLI. Make sure the following values must be specified:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the same edits here that I suggested previously for these statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3. Configure network security

You will see the following output:
We have to configure the network security allowing access from AKS cluster to the storage account.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the same edits here that I suggested previously for these statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

secret/wlsazure-secret created
The secret wlsazure-secret has been successfully created in the default namespace.
```
Firstly, we have to get the virtual network name and the subnet name of the AKS cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the same edits here that I suggested previously for these statements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

step.

{{% notice note %}} This sample creates WebLogic Server Pods with reasonable values for memory, CPU, and JVM heap size (as a percentage of memory). These settings were determined by running a skeleton WebLogic domain with minimal or no deployed services and applications on potentially limited or heavily shared container environments. For advice about tuning CPU and memory requests and limits for broader use cases or in a production environment, see the [Pod memory and CPU resources](https://oracle.github.io/weblogic-kubernetes-operator/faq/resource-settings/) FAQ. To supply different values, edit `~/azure/weblogic-on-aks/domain1.yaml` and set the desired values for `serverPodMemoryRequest`, `serverPodMemoryLimit`, `serverPodCpuRequest`, `serverPodCpuLimit` and `javaOptions` before running `./create-domain.sh -i ~/azure/weblogic-on-aks/domain1.yaml -o ~/azure -e -v`.
{{% notice note %}} This sample creates WebLogic Server pods with reasonable values for memory, CPU, and JVM heap size (as a percentage of memory). You can supply different values. Edit `~/azure/weblogic-on-aks/domain1.yaml` and set the desired values for `serverPodMemoryRequest`, `serverPodMemoryLimit`, `serverPodCpuRequest`, `serverPodCpuLimit` and `javaOptions` before running `./create-domain.sh -i ~/azure/weblogic-on-aks/domain1.yaml -o ~/azure -e -v`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new notice seems to revert capacity planning guidance text that we all agreed to earlier. Was this done on purpose?

Copy link
Contributor Author

@galiacheng galiacheng Jan 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I copied the content from 3.3 doc , will revert them, and also applied the changes to /3.3/content/samples/azure-kubernetes-service/domain-on-pv.md.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please apply my edits/comments to both docs. Thank you.

Copy link
Contributor Author

@galiacheng galiacheng Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure @rosemarymarano please have a look at this commit dfddc4c

galiacheng and others added 16 commits January 26, 2022 15:04
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   documentation/3.3/content/samples/azure-kubernetes-service/domain-on-pv.md
	modified:   documentation/3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   documentation/3.3/content/samples/azure-kubernetes-service/domain-on-pv.md
	modified:   documentation/3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	deleted:    documentation/3.3/content/samples/azure-kubernetes-service/screenshot-logs.png
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   documentation/3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   documentation/staging/content/samples/azure-kubernetes-service/domain-on-pv.md
	modified:   documentation/staging/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
	deleted:    documentation/staging/content/samples/azure-kubernetes-service/screenshot-logs.png
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   kubernetes/samples/scripts/common/utility.sh
	new file:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/azure-csi-storageaccount-template.yaml
	deleted:    kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/azure-file-pv-template.yaml
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/azure-file-pvc-template.yaml
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks-inputs.yaml
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/validate.sh
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   documentation/staging/content/samples/azure-kubernetes-service/domain-on-pv.md
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh
	modified:   kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/validate.sh
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   ../documentation/3.3/content/samples/azure-kubernetes-service/domain-on-pv.md
	modified:   ../documentation/3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
	modified:   ../documentation/staging/content/samples/azure-kubernetes-service/domain-on-pv.md
	modified:   ../documentation/staging/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   samples/scripts/common/utility.sh
	modified:   samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   ../documentation/3.3/content/samples/azure-kubernetes-service/domain-on-pv.md
	modified:   ../documentation/staging/content/samples/azure-kubernetes-service/domain-on-pv.md
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
	modified:   staging/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
…ate-aks-cluster-storage.txt

Signed-off-by: galiacheng <haixia.cheng@microsoft.com>

 Changes to be committed:
	modified:   3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
	modified:   staging/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt
Signed-off-by: galiacheng <haixia.cheng@microsoft.com>
…. This allows localized content to be served, where available.

modified:   documentation/3.3/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt

Signed-off-by: Ed Burns <edburns@microsoft.com>
attempts=0
svcState="running"
while [ ! "$svcState" == "completed" ] && [ ! $attempts -eq 30 ]; do
local attempts=0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see local here. We should probably use it more often.

modified:   documentation/staging/content/samples/azure-kubernetes-service/domain-on-pv.md

- Fix capitalization.

modified:   documentation/staging/content/samples/azure-kubernetes-service/includes/create-aks-cluster-storage.txt

- Do not use localized URLs.

Signed-off-by: Ed Burns <edburns@microsoft.com>
@robertpatrick robertpatrick merged commit b88a666 into oracle:main Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants