0% found this document useful (0 votes)
5 views

05 - Cloud & IaaS Basics Handout

The document discusses setting up infrastructure on DigitalOcean to deploy Java applications. It involves creating a DigitalOcean account, generating SSH keys, launching a Ubuntu Droplet virtual machine, opening ports, installing Java, and copying and running a Java application JAR file on the remote server. The summary also stresses the importance of security best practices like using separate user accounts with limited permissions instead of the root user.

Uploaded by

venky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

05 - Cloud & IaaS Basics Handout

The document discusses setting up infrastructure on DigitalOcean to deploy Java applications. It involves creating a DigitalOcean account, generating SSH keys, launching a Ubuntu Droplet virtual machine, opening ports, installing Java, and copying and running a Java application JAR file on the remote server. The summary also stresses the importance of security best practices like using separate user accounts with limited permissions instead of the root user.

Uploaded by

venky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

DEVOPS Cloud &

BOOTCAMP Infrastructure as a
Service (IaaS)
Throughout the DevOps Bootcamp, we will install and configure

Nexus Jenkins Deploy own &


Artifact Repository Build Automation Applications on Servers more

We don't install it locally on our laptop!


Realistic way: Install them on remote dedicated servers in cloud
What is Infrastructure as a Service (IaaS)?
Offers compute, storage and networking resources on demand

Instead of:
Company buys own server Delegate Infrastructure Management

You manage own servers and infrastructure Move your physical infrastructure to cloud
If something breaks, you need to fix it You just rent the servers on demand

What is Cloud Computing?

Cloud Computing is the delivery of computing services - including servers, storage, databases,
networking, software - over the internet ("the cloud")
IaaS is 1 of 4 types of cloud services. Others: Software as a Service (SaaS), Platform as a Service (PaaS)
and Serverless
Infrastructure as a Service Providers

Most used IaaS


Providers

AWS most used one: Powerful, but complex (learn in later module)

DigitalOcean: Easier to start


Setup Server on DigitalOcean (DO) - 1
to run packaged java application (jar file)

Servers on DigitalOcean are called "Droplets"


Droplets are Linux-based virtual machines (VMs)

Summary of Steps:
1. Pre-Requisite: Create DigitalOcean account (with new signup credits - free tier)
2. Configure SSH keys
3. Create a Droplet with Linux Ubuntu distribution
4. Open SSH port 22 on server using firewall configuration
5. SSH into the server using its public IP address
6. Install Java to run Java applications on it
Setup Server on DigitalOcean (DO) - 2
to run packaged java application (jar file)

Configure SSH keys

To be able to access
any server on DO from
local computer using
SSH
Setup Server on DigitalOcean (DO) - 3
to run packaged java application (jar file)

Create a Droplet

With Linux Ubuntu


distribution
Setup Server on DigitalOcean (DO) - 4
to run packaged java application (jar file)

Open SSH port 22

Open SSH port 22 on the


server by creating a new
Firewall configuration

Inbound Rules = for


incoming traffic
Outbound Rules = for
outgoing traffic
Setup Server on DigitalOcean (DO) - 5
to run packaged java application (jar file)

SSH into the server

By using its public IP address


Setup Server on DigitalOcean (DO) - 6
to run packaged java application (jar file)

Install Java 1. Check if java is installed and


get installation commands

2. Install java to run Java applications on it


Run packaged Java Application - 1
on prepared DigitalOcean server

In real world, applications will run on a remote server!

Server prepared to run java application jar

Summary of Steps:
1. Build jar file
2. Copy to remote server
3. Run the application
Run packaged Java Application - 2
on prepared DigitalOcean server

1. Build Jar File 2. Copy to Remote Server


Run packaged Java Application - 3
on prepared DigitalOcean server

3. Run the application


Security Best Practices

Create separate Linux user on remote server (as you learned in Linux module)
Every cloud platform configuration for their remote servers is different
On droplet, per default you work with the "root" user
Create a new "admin" user
Using the "admin" user, create own users for each application you run (e.g. nexus,
jenkins, my-app)

Give it only the permission it needs to run that application

Don't work with the root user!

You might also like