How to Deploy Your First Application#
Learn how to deploy an application using SCO services.
Emma, a developer at ACME Corp, needs to deploy her application with a virtual machine and a dedicated project.
Overview#
Deploying an application on SCO involves three main steps:
- Set up identity — Create the users and groups who will access the application environment
- Create a project — Provision an isolated project with network and quota configuration
- Provision compute — Deploy the virtual machines or clusters your application needs
Step 1: Create Users and Groups#
Before creating a project, set up identity resources for your team.
Create a user for each team member:
# See: How to Create an IAM User
kubectl apply -f user.yaml
Organise users into a group:
# See: How to Create an IAM Group
kubectl apply -f group.yaml
See the dedicated guides for full details:
Step 2: Create a Project#
Create a project to isolate your application's resources:
apiVersion: tenant.cloud.stakater.com/v1
kind: Project
metadata:
name: my-app-dev
spec:
parameters:
name: my-app-dev
network:
name: app-network
cidr: 10.100.0.0/16
tenantQuota: small
access:
- role: cluster-admin
users:
- emma@acmecorp.example.com
- role: view
groups:
- developers
kubectl apply -f project.yaml
See the full guide: Create a Project
Step 3: Provision a Virtual Machine#
Deploy a VM in your new project:
apiVersion: compute.cloud.stakater.com/v1
kind: VirtualMachine
metadata:
name: app-server
spec:
parameters:
flavour: rhel9
instanceType: o1.medium
storageSize: medium
connection: private
sshPublicKey:
data: <base64-encoded-ssh-public-key>
cloudInit:
userData: |
#cloud-config
packages:
- git
- curl
kubectl apply -f vm.yaml
See the full guide: Provision a Virtual Machine
What's Next?#
- Create a Project - Detailed project creation guide
- Create an IAM User - Provision user accounts
- Create an IAM Group - Organise users into groups
- Provision a Virtual Machine - Deploy compute resources
- Provision an OpenShift Cluster - Deploy an OpenShift cluster
- Getting Started - Cloud user quick start