Skip to content

Instantly share code, notes, and snippets.

@hammadzf
hammadzf / main.tf
Created October 20, 2025 13:48
Network provisioning as per requirements in the STACKIT cloud using IaC as part of the CSCE course.
# Define App-Network and Subnets
resource "stackit_network" "app_network" {
name = "app-network"
cidr = "10.0.0.0/16"
}
resource "stackit_subnet" "web_tier" {
network_id = stackit_network.app_network.id
name = "web-tier"
cidr = "10.0.1.0/24"
@hammadzf
hammadzf / main.tf
Created October 20, 2025 13:43
Terraform configuration for SKE cluster provisioning as per CSCE task.
terraform {
required_providers {
stackit = {
source = "stackitcloud/stackit"
version = "0.68.0"
}
}
}
provider "stackit" {
@hammadzf
hammadzf / docker-compose.yml
Created October 20, 2025 13:35
Docker compose manifest for the monitoring task in the CSCE course.
services:
prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
links:
- cadvisor:cadvisor
- node_exporter:node_exporter