December 2019
Intermediate to advanced
494 pages
11h 41m
English
In this section, we'll talk about a few new options that we haven't discussed regarding the deployment object's definition for the backend service. Here's the code for the deployment object for frontend pods:
---apiVersion: apps/v1beta1kind: Deploymentmetadata: name: azure-vote-frontspec: replicas: 1 strategy: rollingUpdate: maxSurge: 1 maxUnavailable: 1 minReadySeconds: 5 template: metadata: labels: app: azure-vote-front spec: containers: - name: azure-vote-front image: microsoft/azure-vote-front:v1 ports: - containerPort: 80 resources: requests: cpu: 250m limits: cpu: 500m env: - name: REDIS value: "azure-vote-back"
Let's go over the preceding code: