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
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-deploy-application.md
+33-6Lines changed: 33 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,33 @@ AZD does not require a container registry step.
124
124
125
125
### [Azure CLI](#tab/azure-cli)
126
126
127
+
1. Deploy the application using the [`kubectl apply`][kubectl-apply] command, which parses the manifest file and creates the defined Kubernetes objects.
128
+
129
+
```console
130
+
kubectl apply -f aks-store-quickstart.yaml
131
+
```
132
+
133
+
The following example output shows the resources successfully created in the AKS cluster:
134
+
135
+
```output
136
+
deployment.apps/rabbitmq created
137
+
service/rabbitmq created
138
+
deployment.apps/order-service created
139
+
service/order-service created
140
+
deployment.apps/product-service created
141
+
service/product-service created
142
+
deployment.apps/store-front created
143
+
service/store-front created
144
+
```
145
+
146
+
2. Check the deployment is successful by viewing the pods with `kubectl`
147
+
148
+
```console
149
+
kubectl get pods
150
+
```
151
+
152
+
### [Azure PowerShell](#tab/azure-powershell)
153
+
127
154
1. Deploy the application using the [`kubectl apply`][kubectl-apply] command, which parses the manifest file and creates the defined Kubernetes objects.
128
155
129
156
```console
@@ -163,7 +190,7 @@ You can change this later inside the `.azure/<your-env-name>/.env` file.
163
190
164
191
When the application runs, a Kubernetes service exposes the application front end to the internet. This process can take a few minutes to complete.
165
192
166
-
### [Azure CLI](#tab/azure-cli)
193
+
### Command Line
167
194
168
195
1. Monitor progress using the [`kubectl get service`][kubectl-get] command with the `--watch` argument.
169
196
@@ -189,16 +216,15 @@ When the application runs, a Kubernetes service exposes the application front en
189
216
190
217
If the application doesn't load, it might be an authorization problem with your image registry. To view the status of your containers, use the `kubectl get pods` command. If you can't pull the container images, see [Authenticate with Azure Container Registry from Azure Kubernetes Service](cluster-container-registry-integration.md).
191
218
192
-
### [Azure Portal](#tab/azure-azd)
219
+
### Azure Portal
193
220
194
-
You can navigate to your Azure Portal to find your deployment information.
221
+
Navigate to your Azure Portal to find your deployment information.
195
222
196
-
1. Open your [Resource Group](azure-portal-rg)
223
+
1. Open your [Resource Group][azure-rg] on the Azure Portal.
197
224
2. Navigate to the Kubernetes service for your cluster
198
225
3. Select `Services and Ingress` under `Kubernetes Resources`
199
226
4. Copy the External IP shown in the column for store-front.
200
-
201
-
<!-- TODO: ADD IMAGE -->
227
+
5. Paste the IP into your browser to visit your store page.
202
228
203
229
## Next steps
204
230
@@ -216,6 +242,7 @@ In the next tutorial, you learn how to use PaaS services for stateful workloads
216
242
> [Use PaaS services for stateful workloads in AKS][aks-tutorial-paas]
0 commit comments