Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into test_postgres
  • Loading branch information
aamini7 committed Oct 30, 2024
2 parents 5d1b1ac + 1814cd1 commit 378b9f7
Show file tree
Hide file tree
Showing 355 changed files with 64,578 additions and 7,588 deletions.
28 changes: 28 additions & 0 deletions azure-vote-nginx-ssl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# INGRESS WITH SSL PROD
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: vote-ingress
namespace: default
annotations:
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
ingressClassName: nginx
tls:
- hosts:
- mydnslabel9730fc.westeurope.cloudapp.azure.com
secretName: azure-vote-nginx-secret
rules:
- host: mydnslabel9730fc.westeurope.cloudapp.azure.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: azure-vote-front
port:
number: 80
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@ spec:
targetPort: 8080
selector:
app: store-front
type: LoadBalancer
type: LoadBalancer
29 changes: 29 additions & 0 deletions cluster-issuer-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
# You must replace this email address with your own.
# Let's Encrypt will use this to contact you about expiring
# certificates, and issues related to your account.
email: [email protected]
# ACME server URL for Let’s Encrypt’s prod environment.
# The staging environment will not issue trusted certificates but is
# used to ensure that the verification process is working properly
# before moving to production
server: https://acme-v02.api.letsencrypt.org/directory
# Secret resource used to store the account's private key.
privateKeySecretRef:
name: letsencrypt
# Enable the HTTP-01 challenge provider
# you prove ownership of a domain by ensuring that a particular
# file is present at the domain
solvers:
- http01:
ingress:
class: nginx
podTemplate:
spec:
nodeSelector:
"kubernetes.io/os": linux
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ms.custom: 'mvc, devx-track-azurecli, mode-api, innovation-engine, linux-related

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

[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2286318)

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ů.

Pokud ještě nemáte předplatné Azure, vytvořte si napřed [bezplatný účet](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ ms.custom: 'H1Hack27Feb2017, mvc, devcenter, devx-track-azurecli, mode-api, inno

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

[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2262758)

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:

- Nasaďte cluster AKS pomocí Azure CLI.
Expand Down
220 changes: 170 additions & 50 deletions localized/cs-CZ/scenarios/CreateAKSWebApp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ms.custom: innovation-engine

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

[![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)
[![Nasazení do Azure](https://aka.ms/deploytoazurebutton)](https://go.microsoft.com/fwlink/?linkid=2286416)

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/)).

Expand Down Expand Up @@ -213,109 +213,229 @@ cat << EOF > azure-vote-start.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-back
namespace: default
name: rabbitmq
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-back
app: rabbitmq
template:
metadata:
labels:
app: azure-vote-back
app: rabbitmq
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: azure-vote-back
image: docker.io/bitnami/redis:6.0.8
- name: rabbitmq
image: mcr.microsoft.com/mirror/docker/library/rabbitmq:3.10-management-alpine
ports:
- containerPort: 5672
name: rabbitmq-amqp
- containerPort: 15672
name: rabbitmq-http
env:
- name: ALLOW_EMPTY_PASSWORD
value: "yes"
- name: RABBITMQ_DEFAULT_USER
value: "username"
- name: RABBITMQ_DEFAULT_PASS
value: "password"
resources:
requests:
cpu: 100m
cpu: 10m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 6379
name: redis
volumeMounts:
- name: rabbitmq-enabled-plugins
mountPath: /etc/rabbitmq/enabled_plugins
subPath: enabled_plugins
volumes:
- name: rabbitmq-enabled-plugins
configMap:
name: rabbitmq-enabled-plugins
items:
- key: rabbitmq_enabled_plugins
path: enabled_plugins
---
apiVersion: v1
data:
rabbitmq_enabled_plugins: |
[rabbitmq_management,rabbitmq_prometheus,rabbitmq_amqp1_0].
kind: ConfigMap
metadata:
name: rabbitmq-enabled-plugins
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-back
namespace: default
name: rabbitmq
spec:
ports:
- port: 6379
selector:
app: azure-vote-back
app: rabbitmq
ports:
- name: rabbitmq-amqp
port: 5672
targetPort: 5672
- name: rabbitmq-http
port: 15672
targetPort: 15672
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-vote-front
namespace: default
name: order-service
spec:
replicas: 1
selector:
matchLabels:
app: azure-vote-front
app: order-service
template:
metadata:
labels:
app: azure-vote-front
app: order-service
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: azure-vote-front
image: mcr.microsoft.com/azuredocs/azure-vote-front:v1
- name: order-service
image: ghcr.io/azure-samples/aks-store-demo/order-service:latest
ports:
- containerPort: 3000
env:
- name: ORDER_QUEUE_HOSTNAME
value: "rabbitmq"
- name: ORDER_QUEUE_PORT
value: "5672"
- name: ORDER_QUEUE_USERNAME
value: "username"
- name: ORDER_QUEUE_PASSWORD
value: "password"
- name: ORDER_QUEUE_NAME
value: "orders"
- name: FASTIFY_ADDRESS
value: "0.0.0.0"
resources:
requests:
cpu: 100m
cpu: 1m
memory: 50Mi
limits:
cpu: 75m
memory: 128Mi
initContainers:
- name: wait-for-rabbitmq
image: busybox
command: ['sh', '-c', 'until nc -zv rabbitmq 5672; do echo waiting for rabbitmq; sleep 2; done;']
resources:
requests:
cpu: 1m
memory: 50Mi
limits:
cpu: 250m
memory: 256Mi
cpu: 75m
memory: 128Mi
---
apiVersion: v1
kind: Service
metadata:
name: order-service
spec:
type: ClusterIP
ports:
- name: http
port: 3000
targetPort: 3000
selector:
app: order-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: product-service
spec:
replicas: 1
selector:
matchLabels:
app: product-service
template:
metadata:
labels:
app: product-service
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: product-service
image: ghcr.io/azure-samples/aks-store-demo/product-service:latest
ports:
- containerPort: 80
env:
- name: REDIS
value: "azure-vote-back"
- containerPort: 3002
resources:
requests:
cpu: 1m
memory: 1Mi
limits:
cpu: 1m
memory: 7Mi
---
apiVersion: v1
kind: Service
metadata:
name: azure-vote-front
namespace: default
name: product-service
spec:
type: ClusterIP
ports:
- port: 80
- name: http
port: 3002
targetPort: 3002
selector:
app: azure-vote-front
app: product-service
---
apiVersion: networking.k8s.io/v1
kind: Ingress
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote-ingress
namespace: default
name: store-front
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: azure-vote-front
port:
number: 80
replicas: 1
selector:
matchLabels:
app: store-front
template:
metadata:
labels:
app: store-front
spec:
nodeSelector:
"kubernetes.io/os": linux
containers:
- name: store-front
image: ghcr.io/azure-samples/aks-store-demo/store-front:latest
ports:
- containerPort: 8080
name: store-front
env:
- name: VUE_APP_ORDER_SERVICE_URL
value: "http://order-service:3000/"
- name: VUE_APP_PRODUCT_SERVICE_URL
value: "http://product-service:3002/"
resources:
requests:
cpu: 1m
memory: 200Mi
limits:
cpu: 1000m
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: store-front
spec:
ports:
- port: 80
targetPort: 8080
selector:
app: store-front
type: LoadBalancer
EOF
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ms.custom: 'mvc, devx-track-azurecli, mode-api, innovation-engine, linux-related

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

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

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ů.

Expand Down
2 changes: 1 addition & 1 deletion localized/cs-CZ/scenarios/DeployIGonAKS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ms.custom: innovation-engine

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

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

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.

Expand Down
Loading

0 comments on commit 378b9f7

Please sign in to comment.