Skip to content

Commit 2012d07

Browse files
Merge pull request #252340 from schaffererin/limitegresstrafficyamlupdate
Updated YAML file with proper formatting
2 parents 02a17ec + 9a02492 commit 2012d07

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed

articles/aks/limit-egress-traffic.md

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ You can now start exposing services and deploying applications to this cluster.
345345
metadata:
346346
name: voting-storage
347347
spec:
348-
replicas: 1
348+
replicas: 10
349349
selector:
350350
matchLabels:
351351
app: voting-storage
@@ -407,7 +407,7 @@ You can now start exposing services and deploying applications to this cluster.
407407
MYSQL_USER: ZGJ1c2Vy
408408
MYSQL_PASSWORD: UGFzc3dvcmQxMg==
409409
MYSQL_DATABASE: YXp1cmV2b3Rl
410-
MYSQL_ROOT_PASSWORD: UGFzc3dvcmQxMg==
410+
MYSQL_ROOT_PASSWORD: UGFzc3dvcmQxMg==
411411
---
412412
# voting-storage-pv-claim.yaml
413413
apiVersion: v1
@@ -417,7 +417,7 @@ You can now start exposing services and deploying applications to this cluster.
417417
spec:
418418
accessModes:
419419
- ReadWriteOnce
420-
resources:
420+
resources:
421421
requests:
422422
storage: 1Gi
423423
---
@@ -435,9 +435,9 @@ You can now start exposing services and deploying applications to this cluster.
435435
selector:
436436
app: voting-storage
437437
---
438-
# voting-app-deployment.yaml
438+
# voting-app-deployment.yaml
439439
apiVersion: apps/v1
440-
kind: Deployment
440+
kind: Deployment
441441
metadata:
442442
name: voting-app
443443
spec:
@@ -451,32 +451,31 @@ You can now start exposing services and deploying applications to this cluster.
451451
app: voting-app
452452
spec:
453453
containers:
454-
- name: voting-app
455-
image: mcr.microsoft.com/aks/samples/voting/app:2.0
456-
imagePullPolicy: Always
457-
ports:
458-
- containerPort: 8080
459-
name: http
460-
env:
461-
- name: MYSQL_HOST
462-
value: "voting-storage"
463-
- name: MYSQL_USER
464-
valueFrom:
465-
secretKeyRef:
466-
name: voting-storage-secret
467-
key: MYSQL_USER
468-
- name: MYSQL_PASSWORD
469-
valueFrom:
470-
secretKeyRef:
471-
name: voting-storage-secret
472-
key: MYSQL_PASSWORD
473-
- name: MYSQL_DATABASE
474-
valueFrom:
475-
secretKeyRef:
476-
name: voting-storage-secret
477-
key: MYSQL_DATABASE
478-
- name: ANALYTICS_HOST
479-
value: "voting-analytics"
454+
- name: voting-app
455+
image: mcr.microsoft.com/aks/samples/voting/app:2.0
456+
imagePullPolicy: Always
457+
ports:
458+
- containerPort: 8080
459+
env:
460+
- name: MYSQL_HOST
461+
value: "voting-storage"
462+
- name: MYSQL_USER
463+
valueFrom:
464+
secretKeyRef:
465+
name: voting-storage-secret
466+
key: MYSQL_USER
467+
- name: MYSQL_PASSWORD
468+
valueFrom:
469+
secretKeyRef:
470+
name: voting-storage-secret
471+
key: MYSQL_PASSWORD
472+
- name: MYSQL_DATABASE
473+
valueFrom:
474+
secretKeyRef:
475+
name: voting-storage-secret
476+
key: MYSQL_DATABASE
477+
- name: ANALYTICS_HOST
478+
value: "voting-analytics"
480479
---
481480
# voting-app-service.yaml
482481
apiVersion: v1
@@ -541,7 +540,7 @@ You can now start exposing services and deploying applications to this cluster.
541540
apiVersion: v1
542541
kind: Service
543542
metadata:
544-
name: voting-analytics
543+
name: voting-analytics
545544
labels:
546545
app: voting-analytics
547546
spec:

0 commit comments

Comments
 (0)