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
The output from the `create-domain-on-aks.sh` script includes a statement about the Azure resources created by the script. To delete the cluster and free all related resources, simply delete the resource groups. The output will list the resource groups, such as.
Copy file name to clipboardExpand all lines: documentation/site/content/samples/azure-kubernetes-service/includes/create-aks-cluster-body-02.txt
+2-10Lines changed: 2 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,12 @@
1
+
1
2
#### Create the AKS cluster
2
3
3
4
This sample requires that you disable the AKS addon `http_application_routing` by default. If you want to enable `http_application_routing`, then follow [HTTP application routing](https://docs.microsoft.com/azure/aks/http-application-routing).
4
5
5
6
Run the following commands to create the AKS cluster instance.
6
7
7
8
```shell
8
-
# Change these parameters as needed for your own environment
9
-
# Specify a prefix to name resources, only allow lowercase letters and numbers, between 1 and 7 characters
@@ -184,74 +181,53 @@ You will dynamically create and use a persistent volume with Azure Files NFS sha
184
181
]
185
182
```
186
183
187
-
##### Create Storage Class
184
+
##### Create SC and PVC
188
185
189
-
This sample will dynamically create and use a persistent volume with Azure Files in AKS. These features are passed to Kubernetes using YAML files.
190
-
191
-
The script `kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks.sh` generates the required configuration files automatically, given an input file containing the parameters.
192
-
193
-
A parameters file is provided at `kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service/create-domain-on-aks-inputs.yaml`. Copy and customize this file for your needs.
194
-
195
-
To generate YAML files to create Storage Class in the AKS cluster, the following values must be substituted in your copy of the input file.
196
-
197
-
| Name in YAML file | Example value | Notes |
198
-
|-------------------|---------------|-------|
199
-
| `namePrefix` | `wls` | Alphanumeric value used as a disambiguation prefix for several Kubernetes resources. Make sure the value matches the value of `${NAME_PREFIX}` to keep names in step-by-step commands the same with those in configuration files. |
200
-
201
-
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.
202
-
203
-
```shell
204
-
$ cd kubernetes/samples/scripts/create-weblogic-domain-on-azure-kubernetes-service
**NOTE**: Beyond the required and default configurations generated by the command, you can modify the generated YAML files to further customize your deployment. For further information about customizing your deployment, consult the operator documentation, [AKS documentation](https://docs.microsoft.com/azure/aks/), and Kubernetes references.
223
-
224
-
##### Apply generated configuration files
190
+
cat >azure-csi-nfs-${TIMESTAMP}.yaml <<EOF
191
+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
192
+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
225
193
226
-
To define how an Azure file NFS share is created, we have provided a configuration file `azure-csi-nfs.yaml`. You can find it in your output directory.
227
-
228
-
The following command displays the YAML content of your current settings. This should be the same with content in `azure-csi-nfs.yaml`. The Storage Class name is `azurefile-csi-nfs`.
229
-
230
-
This sample uses Azure Files Container Storage Interface (CSI) drivers to manage the NFS file share, provisioner is `file.csi.azure.com`, see the [Azure Files CSI drivers documentation](https://docs.microsoft.com/azure/aks/azure-files-csi).
231
-
232
-
```shell
233
-
cat <<EOF
234
194
apiVersion: storage.k8s.io/v1
235
195
kind: StorageClass
236
196
metadata:
237
197
name: azurefile-csi-nfs
238
198
provisioner: file.csi.azure.com
239
-
allowVolumeExpansion: true
240
199
parameters:
241
200
protocol: nfs
242
-
mountOptions:
243
-
- nconnect=4
201
+
resourceGroup: ${AKS_PERS_RESOURCE_GROUP}
202
+
storageAccount: ${AKS_PERS_STORAGE_ACCOUNT_NAME}
203
+
shareName: ${AKS_PERS_SHARE_NAME}
204
+
reclaimPolicy: Delete
205
+
volumeBindingMode: Immediate
206
+
allowVolumeExpansion: true
207
+
208
+
EOF
209
+
210
+
cat >pvc-${TIMESTAMP}.yaml <<EOF
211
+
apiVersion: v1
212
+
kind: PersistentVolumeClaim
213
+
metadata:
214
+
name: wls-azurefile-${TIMESTAMP}
215
+
spec:
216
+
accessModes:
217
+
- ReadWriteMany
218
+
storageClassName: azurefile-csi-nfs
219
+
resources:
220
+
requests:
221
+
storage: 5Gi
222
+
244
223
EOF
245
224
```
246
225
247
226
Use the `kubectl` command to create the Storage Class and persistent volume claim to the `default` namespace.
Copy file name to clipboardExpand all lines: documentation/site/content/samples/azure-kubernetes-service/includes/prerequisites-01.txt
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,16 @@
3
3
This sample assumes the following prerequisite environment.
4
4
5
5
* If you don't have an [Azure subscription](https://learn.microsoft.com/en-us/azure/guides/developer/azure-developer-guide#understanding-accounts-subscriptions-and-billing), create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
6
-
* It's recommended that the Azure identity you use to sign in and complete this article has either the [Owner](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#owner) role in the current subscription or the [Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#contributor) and [User Access Administrator](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#user-access-administrator) roles in the current subscription.
6
+
* It's **strongly** recommended that the Azure identity you use to sign in and complete this article has either the [Owner](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#owner) role in the current subscription or the [Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#contributor) and [User Access Administrator](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#user-access-administrator) roles in the current subscription.
7
7
* If your identity has very limited role assignments, ensure you have the following role assignments in the AKS resource group and AKS node resource group.
8
8
* [Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#contributor) role and [User Access Administrator](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#user-access-administrator) role in the resource group that runs AKS cluster. This requires asking a privileged user to assign the roles before creating resource in the resource group.
9
9
* [Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#contributor) role in the AKS node resource group whose name starts with "MC_". This requires asking a privileged user to assign the role after the AKS instance is created.
10
10
* Operating System: GNU/Linux, macOS or [WSL2 for Windows 10](https://docs.microsoft.com/windows/wsl/install-win10).
11
+
* Note: the Docker image creation steps will not work on a Mac with Apple Silicon.
11
12
* [Git](https://git-scm.com/downloads); use `git --version` to test if `git` works. This document was tested with version 2.25.1.
12
13
* [Azure CLI](https://docs.microsoft.com/cli/azure); use `az --version` to test if `az` works. This document was tested with version 2.48.1.
13
14
* [Docker for Desktop](https://www.docker.com/products/docker-desktop). This document was tested with `Docker version 20.10.7`
14
15
* [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.21.2.
15
16
* [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.6.2.
16
17
* A Java JDK, Version 8 or 11. Azure recommends [Microsoft Build of OpenJDK](https://docs.microsoft.com/java/openjdk/download). Ensure that your `JAVA_HOME` environment variable is set correctly in the shells in which you run the commands.
17
-
* A `domain creation image` with the name `wdt-domain-image:WLS-v1`. You can create it by following the [Build the domain creation image]({{< relref "/samples/domains/domain-home-on-pv/build-domain-creation-image#build-the-domain-creation-image" >}}) step.
18
+
* A `domain creation image` tagged as `wdt-domain-image:WLS-v1` in your local Docker server's image cache. You can create it by following the [Build the domain creation image]({{< relref "/samples/domains/domain-home-on-pv/build-domain-creation-image#build-the-domain-creation-image" >}}) step.
0 commit comments