Skip to content

Commit 378b9f7

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/executable-docs into test_postgres
2 parents 5d1b1ac + 1814cd1 commit 378b9f7

File tree

355 files changed

+64578
-7588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

355 files changed

+64578
-7588
lines changed

azure-vote-nginx-ssl.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
# INGRESS WITH SSL PROD
3+
apiVersion: networking.k8s.io/v1
4+
kind: Ingress
5+
metadata:
6+
name: vote-ingress
7+
namespace: default
8+
annotations:
9+
kubernetes.io/tls-acme: "true"
10+
nginx.ingress.kubernetes.io/ssl-redirect: "true"
11+
cert-manager.io/cluster-issuer: letsencrypt-prod
12+
spec:
13+
ingressClassName: nginx
14+
tls:
15+
- hosts:
16+
- mydnslabel9730fc.westeurope.cloudapp.azure.com
17+
secretName: azure-vote-nginx-secret
18+
rules:
19+
- host: mydnslabel9730fc.westeurope.cloudapp.azure.com
20+
http:
21+
paths:
22+
- path: /
23+
pathType: Prefix
24+
backend:
25+
service:
26+
name: azure-vote-front
27+
port:
28+
number: 80

scenarios/CreateAKSDeployment/aks-store-quickstart.yaml renamed to azure-vote-start.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ spec:
223223
targetPort: 8080
224224
selector:
225225
app: store-front
226-
type: LoadBalancer
226+
type: LoadBalancer

cluster-issuer-prod.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: ClusterIssuer
3+
metadata:
4+
name: letsencrypt-prod
5+
spec:
6+
acme:
7+
# You must replace this email address with your own.
8+
# Let's Encrypt will use this to contact you about expiring
9+
# certificates, and issues related to your account.
10+
11+
# ACME server URL for Let’s Encrypt’s prod environment.
12+
# The staging environment will not issue trusted certificates but is
13+
# used to ensure that the verification process is working properly
14+
# before moving to production
15+
server: https://acme-v02.api.letsencrypt.org/directory
16+
# Secret resource used to store the account's private key.
17+
privateKeySecretRef:
18+
name: letsencrypt
19+
# Enable the HTTP-01 challenge provider
20+
# you prove ownership of a domain by ensuring that a particular
21+
# file is present at the domain
22+
solvers:
23+
- http01:
24+
ingress:
25+
class: nginx
26+
podTemplate:
27+
spec:
28+
nodeSelector:
29+
"kubernetes.io/os": linux

localized/cs-CZ/scenarios/AttachDataDiskLinuxVM/attach-data-disk-linux-vm.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ ms.custom: 'mvc, devx-track-azurecli, mode-api, innovation-engine, linux-related
1212

1313
# Rychlý start: Vytvoření virtuálního počítače s Ubuntu pomocí Azure CLI a připojení datového disku Azure
1414

15+
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2286318)
16+
1517
V tomto rychlém startu se dozvíte, jak pomocí Azure CLI nasadit virtuální počítač s Ubuntu Linuxem v Azure a připojit k němu datový disk Azure. Azure CLI slouží k vytváření a správě prostředků Azure prostřednictvím příkazového řádku nebo skriptů.
1618

1719
Pokud ještě nemáte předplatné Azure, vytvořte si napřed [bezplatný účet](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).

localized/cs-CZ/scenarios/CreateAKSDeployment/create-aks-deployment.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ ms.custom: 'H1Hack27Feb2017, mvc, devcenter, devx-track-azurecli, mode-api, inno
1010

1111
# Rychlý start: Nasazení clusteru Azure Kubernetes Service (AKS) pomocí Azure CLI
1212

13-
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2262758)
14-
1513
Azure Kubernetes Service (AKS) je spravovaná služba Kubernetes, která umožňuje rychle nasazovat a spravovat clustery. V tomto rychlém startu se naučíte:
1614

1715
- Nasaďte cluster AKS pomocí Azure CLI.

localized/cs-CZ/scenarios/CreateAKSWebApp/README.md

Lines changed: 170 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.custom: innovation-engine
1010

1111
# Rychlý start: Nasazení škálovatelného a zabezpečeného clusteru Azure Kubernetes Service pomocí Azure CLI
1212

13-
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/?Microsoft_Azure_CloudNative_clientoptimizations=false&feature.canmodifyextensions=true#view/Microsoft_Azure_CloudNative/SubscriptionSelectionPage.ReactView/tutorialKey/CreateAKSDeployment)
13+
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2286416)
1414

1515
Vítejte v tomto kurzu, kde vás provedeme krok za krokem při vytváření webové aplikace Azure Kubernetes, která je zabezpečená přes https. V tomto kurzu se předpokládá, že jste už přihlášení k Azure CLI a vybrali jste předplatné, které se má použít s rozhraním příkazového řádku. Předpokládá se také, že máte nainstalovaný Helm ([pokyny najdete tady](https://helm.sh/docs/intro/install/)).
1616

@@ -213,109 +213,229 @@ cat << EOF > azure-vote-start.yml
213213
apiVersion: apps/v1
214214
kind: Deployment
215215
metadata:
216-
name: azure-vote-back
217-
namespace: default
216+
name: rabbitmq
218217
spec:
219218
replicas: 1
220219
selector:
221220
matchLabels:
222-
app: azure-vote-back
221+
app: rabbitmq
223222
template:
224223
metadata:
225224
labels:
226-
app: azure-vote-back
225+
app: rabbitmq
227226
spec:
228227
nodeSelector:
229228
"kubernetes.io/os": linux
230229
containers:
231-
- name: azure-vote-back
232-
image: docker.io/bitnami/redis:6.0.8
230+
- name: rabbitmq
231+
image: mcr.microsoft.com/mirror/docker/library/rabbitmq:3.10-management-alpine
232+
ports:
233+
- containerPort: 5672
234+
name: rabbitmq-amqp
235+
- containerPort: 15672
236+
name: rabbitmq-http
233237
env:
234-
- name: ALLOW_EMPTY_PASSWORD
235-
value: "yes"
238+
- name: RABBITMQ_DEFAULT_USER
239+
value: "username"
240+
- name: RABBITMQ_DEFAULT_PASS
241+
value: "password"
236242
resources:
237243
requests:
238-
cpu: 100m
244+
cpu: 10m
239245
memory: 128Mi
240246
limits:
241247
cpu: 250m
242248
memory: 256Mi
243-
ports:
244-
- containerPort: 6379
245-
name: redis
249+
volumeMounts:
250+
- name: rabbitmq-enabled-plugins
251+
mountPath: /etc/rabbitmq/enabled_plugins
252+
subPath: enabled_plugins
253+
volumes:
254+
- name: rabbitmq-enabled-plugins
255+
configMap:
256+
name: rabbitmq-enabled-plugins
257+
items:
258+
- key: rabbitmq_enabled_plugins
259+
path: enabled_plugins
260+
---
261+
apiVersion: v1
262+
data:
263+
rabbitmq_enabled_plugins: |
264+
[rabbitmq_management,rabbitmq_prometheus,rabbitmq_amqp1_0].
265+
kind: ConfigMap
266+
metadata:
267+
name: rabbitmq-enabled-plugins
246268
---
247269
apiVersion: v1
248270
kind: Service
249271
metadata:
250-
name: azure-vote-back
251-
namespace: default
272+
name: rabbitmq
252273
spec:
253-
ports:
254-
- port: 6379
255274
selector:
256-
app: azure-vote-back
275+
app: rabbitmq
276+
ports:
277+
- name: rabbitmq-amqp
278+
port: 5672
279+
targetPort: 5672
280+
- name: rabbitmq-http
281+
port: 15672
282+
targetPort: 15672
283+
type: ClusterIP
257284
---
258285
apiVersion: apps/v1
259286
kind: Deployment
260287
metadata:
261-
name: azure-vote-front
262-
namespace: default
288+
name: order-service
263289
spec:
264290
replicas: 1
265291
selector:
266292
matchLabels:
267-
app: azure-vote-front
293+
app: order-service
268294
template:
269295
metadata:
270296
labels:
271-
app: azure-vote-front
297+
app: order-service
272298
spec:
273299
nodeSelector:
274300
"kubernetes.io/os": linux
275301
containers:
276-
- name: azure-vote-front
277-
image: mcr.microsoft.com/azuredocs/azure-vote-front:v1
302+
- name: order-service
303+
image: ghcr.io/azure-samples/aks-store-demo/order-service:latest
304+
ports:
305+
- containerPort: 3000
306+
env:
307+
- name: ORDER_QUEUE_HOSTNAME
308+
value: "rabbitmq"
309+
- name: ORDER_QUEUE_PORT
310+
value: "5672"
311+
- name: ORDER_QUEUE_USERNAME
312+
value: "username"
313+
- name: ORDER_QUEUE_PASSWORD
314+
value: "password"
315+
- name: ORDER_QUEUE_NAME
316+
value: "orders"
317+
- name: FASTIFY_ADDRESS
318+
value: "0.0.0.0"
278319
resources:
279320
requests:
280-
cpu: 100m
321+
cpu: 1m
322+
memory: 50Mi
323+
limits:
324+
cpu: 75m
281325
memory: 128Mi
326+
initContainers:
327+
- name: wait-for-rabbitmq
328+
image: busybox
329+
command: ['sh', '-c', 'until nc -zv rabbitmq 5672; do echo waiting for rabbitmq; sleep 2; done;']
330+
resources:
331+
requests:
332+
cpu: 1m
333+
memory: 50Mi
282334
limits:
283-
cpu: 250m
284-
memory: 256Mi
335+
cpu: 75m
336+
memory: 128Mi
337+
---
338+
apiVersion: v1
339+
kind: Service
340+
metadata:
341+
name: order-service
342+
spec:
343+
type: ClusterIP
344+
ports:
345+
- name: http
346+
port: 3000
347+
targetPort: 3000
348+
selector:
349+
app: order-service
350+
---
351+
apiVersion: apps/v1
352+
kind: Deployment
353+
metadata:
354+
name: product-service
355+
spec:
356+
replicas: 1
357+
selector:
358+
matchLabels:
359+
app: product-service
360+
template:
361+
metadata:
362+
labels:
363+
app: product-service
364+
spec:
365+
nodeSelector:
366+
"kubernetes.io/os": linux
367+
containers:
368+
- name: product-service
369+
image: ghcr.io/azure-samples/aks-store-demo/product-service:latest
285370
ports:
286-
- containerPort: 80
287-
env:
288-
- name: REDIS
289-
value: "azure-vote-back"
371+
- containerPort: 3002
372+
resources:
373+
requests:
374+
cpu: 1m
375+
memory: 1Mi
376+
limits:
377+
cpu: 1m
378+
memory: 7Mi
290379
---
291380
apiVersion: v1
292381
kind: Service
293382
metadata:
294-
name: azure-vote-front
295-
namespace: default
383+
name: product-service
296384
spec:
385+
type: ClusterIP
297386
ports:
298-
- port: 80
387+
- name: http
388+
port: 3002
389+
targetPort: 3002
299390
selector:
300-
app: azure-vote-front
391+
app: product-service
301392
---
302-
apiVersion: networking.k8s.io/v1
303-
kind: Ingress
393+
apiVersion: apps/v1
394+
kind: Deployment
304395
metadata:
305-
name: vote-ingress
306-
namespace: default
396+
name: store-front
307397
spec:
308-
ingressClassName: nginx
309-
rules:
310-
- http:
311-
paths:
312-
- path: /
313-
pathType: Prefix
314-
backend:
315-
service:
316-
name: azure-vote-front
317-
port:
318-
number: 80
398+
replicas: 1
399+
selector:
400+
matchLabels:
401+
app: store-front
402+
template:
403+
metadata:
404+
labels:
405+
app: store-front
406+
spec:
407+
nodeSelector:
408+
"kubernetes.io/os": linux
409+
containers:
410+
- name: store-front
411+
image: ghcr.io/azure-samples/aks-store-demo/store-front:latest
412+
ports:
413+
- containerPort: 8080
414+
name: store-front
415+
env:
416+
- name: VUE_APP_ORDER_SERVICE_URL
417+
value: "http://order-service:3000/"
418+
- name: VUE_APP_PRODUCT_SERVICE_URL
419+
value: "http://product-service:3002/"
420+
resources:
421+
requests:
422+
cpu: 1m
423+
memory: 200Mi
424+
limits:
425+
cpu: 1000m
426+
memory: 512Mi
427+
---
428+
apiVersion: v1
429+
kind: Service
430+
metadata:
431+
name: store-front
432+
spec:
433+
ports:
434+
- port: 80
435+
targetPort: 8080
436+
selector:
437+
app: store-front
438+
type: LoadBalancer
319439
EOF
320440
```
321441

localized/cs-CZ/scenarios/CreateRHELVMAndSSH/create-rhel-vm-ssh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.custom: 'mvc, devx-track-azurecli, mode-api, innovation-engine, linux-related
1414

1515
**Platí pro:** :heavy_check_mark: virtuální počítače s Linuxem
1616

17-
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2262692)
17+
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2286317)
1818

1919
V tomto rychlém startu se dozvíte, jak pomocí Azure CLI nasadit virtuální počítač s Red Hat Enterprise Linuxem v Azure. Azure CLI slouží k vytváření a správě prostředků Azure prostřednictvím příkazového řádku nebo skriptů.
2020

localized/cs-CZ/scenarios/DeployIGonAKS/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.custom: innovation-engine
1010

1111
# Rychlý start: Nasazení miniaplikace Inspektor v clusteru Azure Kubernetes Service
1212

13-
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2262844)
13+
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2276309)
1414

1515
Vítejte v tomto kurzu, kde vás provedeme krok za krokem při nasazování [Miniaplikace](https://www.inspektor-gadget.io/) Inspektor v clusteru Azure Kubernetes Service (AKS) s modulem plug-in kubectl: `gadget`. V tomto kurzu se předpokládá, že jste už přihlášení k Azure CLI a vybrali jste předplatné, které se má použít s rozhraním příkazového řádku.
1616

0 commit comments

Comments
 (0)