Skip to content
admin-infra-linode logo

Linode Infrastructure

admin-infra-linode

Deploys infrastructure on Linode (Akamai Cloud) with Linodes, Firewalls, and VLANs. Strong Kubernetes support with Cluster Autoscaler and Akamai edge network integration. Use when: setting up Linode/Akamai infrastructure, deploying Linodes, configuring firewalls, needing Kubernetes autoscaling, ...

SKILL.md

Full skill instructions

Linode Infrastructure

Status: Production Ready | Dependencies: linode-cli, SSH key pair


Navigation

  • Operations, troubleshooting, config, and cost snapshot: references/​OPERATIONS.md

Step 0: Gather Required Information (MANDATORY)

STOP. Before ANY deployment commands, collect ALL parameters from the user.

Copy this checklist and confirm each item:

Required Parameters:
- [ ] SERVER_NAME      - Unique name for this server
- [ ] LINODE_REGION    - Region (us-east, us-central, us-west, eu-west, ap-south, etc.)
- [ ] LINODE_TYPE      - Linode type (see profiles below)
- [ ] SSH_KEY_LABEL    - Label of SSH key in Linode
- [ ] SSH_KEY_PATH     - Path to local SSH private key (default: ~/​.ssh/​id_rsa)

Deployment Purpose (determines recommended profile):
- [ ] Purpose: coolify / kasm / both / custom
      coolify → g6-standard-2 ($36/​mo)
      kasm    → g6-standard-4 ($72/​mo)
      both    → g6-standard-8 ($144/​mo)
      custom  → Ask for specific type

Recommended profiles by purpose:

PurposeTypevCPURAMMonthly
coolifyg6-standard-224GB$36
kasmg6-standard-448GB$72
bothg6-standard-8816GB$144

DO NOT proceed to Prerequisites until ALL parameters are confirmed.


Prerequisites

Before using this skill, verify the following:

1. Linode CLI Installed

linode-cli --version

If missing, install with:

# Python (pip) - Recommended
pip3 install linode-cli

# macOS (Homebrew)
brew install linode-cli

# Linux (pipx)
pipx install linode-cli

2. Linode Account & API Token

If you don't have a Linode account:

Sign up at: https://www.linode.com/?r=YOUR_REFERRAL_CODE

Disclosure: This is a referral link. You'll receive $100 in credit for 60 days, and the skill author receives $25 account credit after you spend $25. Using this link helps support the development of these skills.

Get API Token: https://cloud.linode.com/profile/tokens

Create a Personal Access Token with Read/​Write access for Linodes, Firewalls, NodeBalancers, etc.

3. linode-cli Configured

linode-cli account view

If it shows an error, configure with:

# Interactive setup
linode-cli configure

# Or via environment variable
export LINODE_CLI_TOKEN="your_token_here"
linode-cli account view

4. SSH Key Pair

ls ~/​.ssh/​id_rsa.pub

If missing, generate with:

ssh-keygen -t rsa -b 4096 -f ~/​.ssh/​id_rsa -N ""

5. SSH Key Uploaded to Linode

linode-cli sshkeys list

If empty, upload with:

linode-cli sshkeys create --label "my-key" --ssh_key "$(cat ~/​.ssh/​id_rsa.pub)"

6. Test Authentication

linode-cli regions list

If this fails: Token may be invalid or expired. Create a new one.


Server Profiles

Coolify/​Kasm Deployments

ProfileLinode TypevCPURAMDiskMonthly Cost
coolifyg6-standard-224GB80GB$36
kasmg6-standard-448GB160GB$72
bothg6-standard-8816GB320GB$144

Dedicated CPU (Best Performance)

ProfileLinode TypevCPURAMDiskMonthly Cost
dedicated-smallg6-dedicated-224GB80GB$36
dedicated-mediumg6-dedicated-448GB160GB$72
dedicated-largeg6-dedicated-8816GB320GB$144
<details> <summary><strong>Premium Plans (Higher Performance)</​strong></​summary>
Linode TypevCPURAMDiskMonthly Cost
g7-premium-224GB100GB$43
g7-premium-448GB200GB$86
g7-premium-8816GB400GB$172

</​details>


Deployment Steps

Step 1: Set Environment Variables

export LINODE_REGION="us-east"             # See regions below
export LINODE_TYPE="g6-standard-2"         # See profiles above
export LINODE_IMAGE="linode/​ubuntu22.04"
export SERVER_NAME="my-server"
export SSH_KEY_LABEL="my-key"
<details> <summary><strong>Region options</​strong></​summary>
CodeLocationRegion
us-eastNewark, NJUS East
us-centralDallas, TXUS Central
us-westFremont, CAUS West
us-southeastAtlanta, GAUS Southeast
us-ordChicago, ILUS Central
us-laxLos Angeles, CAUS West
us-miaMiami, FLUS Southeast
us-seaSeattle, WAUS Northwest
ca-centralToronto, CanadaCanada
eu-westLondon, UKUK
eu-centralFrankfurt, GermanyGermany
ap-southSingaporeAsia
ap-northeastTokyo, JapanJapan
ap-westMumbai, IndiaIndia
ap-southeastSydney, AustraliaAustralia

Run linode-cli regions list for full list.

</​details>

Step 2: Get SSH Key ID

SSH_KEY_ID=$(linode-cli sshkeys list --label "$SSH_KEY_LABEL" --format id --text --no-headers)
echo "SSH Key ID: $SSH_KEY_ID"

# Verify
if [ -z "$SSH_KEY_ID" ]; then
  echo "ERROR: SSH key '$SSH_KEY_LABEL' not found. Upload it first."
  exit 1
fi

Step 3: Create Firewall

# Create firewall
FIREWALL_ID=$(linode-cli firewalls create \
  --label "my-firewall" \
  --rules.inbound_policy DROP \
  --rules.outbound_policy ACCEPT \
  --format id --text --no-headers)

echo "Firewall ID: $FIREWALL_ID"

# Allow SSH
linode-cli firewalls rules-update "$FIREWALL_ID" \
  --inbound '[
    {"protocol":"TCP","ports":"22","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"80","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"443","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"8000","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"6001-6002","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"8443","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"3389","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"},
    {"protocol":"TCP","ports":"3000-4000","addresses":{"ipv4":["0.0.0.0/​0"],"ipv6":["::/​0"]},"action":"ACCEPT"}
  ]' \
  --inbound_policy DROP \
  --outbound_policy ACCEPT

Step 4: Create Linode

LINODE_ID=$(linode-cli linodes create \
  --region "$LINODE_REGION" \
  --type "$LINODE_TYPE" \
  --image "$LINODE_IMAGE" \
  --label "$SERVER_NAME" \
  --authorized_keys "$(cat ~/​.ssh/​id_rsa.pub)" \
  --root_pass "$(openssl rand -base64 32)" \
  --format id --text --no-headers)

echo "Linode ID: $LINODE_ID"

Step 5: Apply Firewall to Linode

linode-cli firewalls device-create "$FIREWALL_ID" \
  --type linode \
  --id "$LINODE_ID"

Step 6: Wait and Get Linode IP

# Wait for Linode to be running
echo "Waiting for Linode to be running..."
while [ "$(linode-cli linodes view "$LINODE_ID" --format status --text --no-headers)" != "running" ]; do
  sleep 5
done

# Get IP address
SERVER_IP=$(linode-cli linodes view "$LINODE_ID" --format ipv4 --text --no-headers | head -1)
echo "SERVER_IP=$SERVER_IP"

Step 7: Wait for Server Ready

# Wait for SSH to be available (typically 60-90 seconds)
echo "Waiting for server to be ready..."
until ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no root@$SERVER_IP "echo connected" 2>/​dev/​null; do
  sleep 5
done
echo "Server is ready!"

Step 8: Verify Connection

ssh root@$SERVER_IP "uname -a && free -h && df -h /"

Step 9: Output for Downstream Skills

# Linode only offers x86 architecture
SERVER_ARCH="amd64"

# Save to .env.local for downstream skills
echo "SERVER_IP=$SERVER_IP" >> .env.local
echo "SSH_USER=root" >> .env.local
echo "SSH_KEY_PATH=~/​.ssh/​id_rsa" >> .env.local
echo "SERVER_ARCH=$SERVER_ARCH" >> .env.local
echo "COOLIFY_SERVER_IP=$SERVER_IP" >> .env.local
echo "KASM_SERVER_IP=$SERVER_IP" >> .env.local

echo ""
echo "Linode deployed successfully!"
echo "  IP: $SERVER_IP"
echo "  Arch: $SERVER_ARCH"
echo "  SSH: ssh root@$SERVER_IP"

Verify Deployment

ssh root@$SERVER_IP "echo 'Linode connected successfully'"

Kubernetes Auto-Scaling

Linode Kubernetes Engine (LKE) supports Cluster Autoscaler for automatic node scaling.

Create LKE Cluster

# Create cluster (via API - CLI doesn't support all options)
linode-cli lke cluster-create \
  --label "my-lke" \
  --region "$LINODE_REGION" \
  --k8s_version "1.28"

Enable Cluster Autoscaler

The Cluster Autoscaler runs in the management cluster and scales based on workload:

  1. Install Cluster Autoscaler add-on in your cluster
  2. Configure with Linode API token
  3. Set min/​max nodes per pool

See: https://linode.github.io/cluster-api-provider-linode/topics/autoscaling.html


Cleanup

Warning: This is destructive and cannot be undone.

# Delete Linode
linode-cli linodes delete "$LINODE_ID"

# Delete firewall
linode-cli firewalls delete "$FIREWALL_ID"

# Optionally delete SSH key
# linode-cli sshkeys delete "$SSH_KEY_ID"

Operations

Troubleshooting, best practices, configuration variables, and cost snapshots are in references/​OPERATIONS.md.


Logging Integration

When performing infrastructure operations, log to the centralized system:

# After provisioning
log_admin "SUCCESS" "operation" "Provisioned Linode" "id=$LINODE_ID provider=Linode"

# After destroying
log_admin "SUCCESS" "operation" "Deleted Linode" "id=$LINODE_ID"

# On error
log_admin "ERROR" "operation" "Linode deployment failed" "error=$ERROR_MSG"

See admin skill's references/​logging.md for full logging documentation.


References

More DevOps & CI/CD skills

Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.

6K 472.6K
View

Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.

6K 472.6K
View

Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.

1.5K 454.3K
View
azure-kubernetes logo
DevOps & CI/CD

azure-kubernetes

Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.

1.5K 447.1K
View

Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.

92.7K 354.9K
View
just-scrape logo
DevOps & CI/CD

just-scrape

Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.

69 245K
View

Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.

462 159.7K
View

Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.

462 159.1K
View
deploy-to-vercel logo
DevOps & CI/CD

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

31.9K 146.6K
View
programmatic-seo logo
DevOps & CI/CD

programmatic-seo

Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.

53.3K 140.1K
View

Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.

63 123.5K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View

Coding & apps AI tools

Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View
I
Coding & apps

Imagica

Build a no-code AI app in minutes.

Freemium
View
E
Coding & apps

Emergent.sh

An IDE for code migration from legacy to modern frameworks through coding agents.

Freemium
View
Wonder Dynamics logo
Coding & apps

Wonder Dynamics

Automate CGI animation in live-action scenes

Paid
View
M
Coding & apps

Mixo

Launch a website in seconds with AI.

Paid
View
AI Code Convert logo
Coding & apps

AI Code Convert

Streamline Your Coding Experience with AI Code Helper

Free
View