Skip to Content
Migrating Applications to the Cloud with Azure
book

Migrating Applications to the Cloud with Azure

by Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
December 2019
Intermediate to advanced content levelIntermediate to advanced
494 pages
11h 41m
English
Packt Publishing
Content preview from Migrating Applications to the Cloud with Azure

Service for the frontend application

Here's the code for the service object for frontend application pods:

---apiVersion: v1kind: Servicemetadata:  name: azure-vote-frontspec:  type: LoadBalancer  ports:  - port: 80  selector:    app: azure-vote-front

Let's go over the preceding code:

  • type: LoadBalancer: This specifies how the service is exposed. If we select a Load Balancer, this means Kubernetes will create a Load Balancer in our cloud environment using the configure default class and authentication credentials for the cloud account.

Now that we have our manifest ready for deployment, we can deploy the application.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Migrating Applications to the Cloud

Migrating Applications to the Cloud

Steve Swoyer
Microsoft Azure: Planning, Deploying, and Managing the Cloud

Microsoft Azure: Planning, Deploying, and Managing the Cloud

Julian Soh, Marshall Copeland, Anthony Puca, Micheleen Harris

Publisher Resources

ISBN: 9781839217470Supplemental Content