@@ -345,7 +345,7 @@ You can now start exposing services and deploying applications to this cluster.
345
345
metadata:
346
346
name: voting-storage
347
347
spec:
348
- replicas: 1
348
+ replicas: 10
349
349
selector:
350
350
matchLabels:
351
351
app: voting-storage
@@ -407,7 +407,7 @@ You can now start exposing services and deploying applications to this cluster.
407
407
MYSQL_USER: ZGJ1c2Vy
408
408
MYSQL_PASSWORD: UGFzc3dvcmQxMg==
409
409
MYSQL_DATABASE: YXp1cmV2b3Rl
410
- MYSQL_ROOT_PASSWORD: UGFzc3dvcmQxMg==
410
+ MYSQL_ROOT_PASSWORD: UGFzc3dvcmQxMg==
411
411
---
412
412
# voting-storage-pv-claim.yaml
413
413
apiVersion: v1
@@ -417,7 +417,7 @@ You can now start exposing services and deploying applications to this cluster.
417
417
spec:
418
418
accessModes:
419
419
- ReadWriteOnce
420
- resources:
420
+ resources:
421
421
requests:
422
422
storage: 1Gi
423
423
---
@@ -435,9 +435,9 @@ You can now start exposing services and deploying applications to this cluster.
435
435
selector:
436
436
app: voting-storage
437
437
---
438
- # voting-app-deployment.yaml
438
+ # voting-app-deployment.yaml
439
439
apiVersion: apps/v1
440
- kind: Deployment
440
+ kind: Deployment
441
441
metadata:
442
442
name: voting-app
443
443
spec:
@@ -451,32 +451,31 @@ You can now start exposing services and deploying applications to this cluster.
451
451
app: voting-app
452
452
spec:
453
453
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"
480
479
---
481
480
# voting-app-service.yaml
482
481
apiVersion: v1
@@ -541,7 +540,7 @@ You can now start exposing services and deploying applications to this cluster.
541
540
apiVersion: v1
542
541
kind: Service
543
542
metadata:
544
- name: voting-analytics
543
+ name: voting-analytics
545
544
labels:
546
545
app: voting-analytics
547
546
spec:
0 commit comments