google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
arc-terraform-deployment
Deploy ARC (Actions Runner Controller) infrastructure using Terraform on Rackspace Spot. Handles CRD registration, ArgoCD installation, and namespace management. Use when deploying or troubleshooting ARC infrastructure.
Full skill instructions
This skill covers Terraform patterns for deploying GitHub Actions Runner Controller (ARC) on Rackspace Spot Kubernetes. Key challenge: managing resources that depend on CRDs installed during the same apply.
When deploying ARC, ArgoCD Applications are CRDs that don't exist until ArgoCD Helm chart is installed. Using kubernetes_manifest fails:
Error: Provider produced inconsistent result after apply
The CRD "applications.argoproj.io" does not exist
WRONG - kubernetes_manifest validates at plan time:
resource "kubernetes_manifest" "argocd_app" {
manifest = {
apiVersion = "argoproj.io/v1alpha1"
kind = "Application"
# ...
}
}
# ERROR: CRD doesn't exist during terraform plan
CORRECT - kubectl_manifest applies at runtime:
resource "kubectl_manifest" "argocd_app" {
yaml_body = yamlencode({
apiVersion = "argoproj.io/v1alpha1"
kind = "Application"
# ...
})
depends_on = [
helm_release.argocd,
time_sleep.wait_for_crds
]
}
| Provider | Plan Behavior | Apply Behavior | Use Case |
|---|---|---|---|
kubernetes_manifest | Validates CRD exists | Applies manifest | Resources where CRD pre-exists |
kubectl_manifest | No validation | Runs kubectl apply | Resources where CRD installed in same run |
After installing Helm charts that provide CRDs, add explicit wait:
resource "helm_release" "argocd" {
name = "argocd"
chart = "argo-cd"
repository = "https://argoproj.github.io/argo-helm"
namespace = "argocd"
# ... chart configuration
}
resource "time_sleep" "wait_for_crds" {
depends_on = [helm_release.argocd]
create_duration = "30s" # Wait for CRDs to register with K8s API
}
resource "kubectl_manifest" "bootstrap_app" {
yaml_body = yamlencode({
apiVersion = "argoproj.io/v1alpha1"
kind = "Application"
# ...
})
depends_on = [time_sleep.wait_for_crds]
}
Why 30 seconds?
When both Terraform and ArgoCD try to create namespaces:
CreateNamespace=trueWRONG - Terraform creates namespace:
resource "kubernetes_namespace" "arc_runners" {
metadata {
name = "arc-runners"
}
}
resource "kubectl_manifest" "argocd_app" {
yaml_body = yamlencode({
# ...
spec = {
destination = {
namespace = "arc-runners" # Already exists
}
syncPolicy = {
syncOptions = ["CreateNamespace=true"] # Conflict!
}
}
})
}
CORRECT - ArgoCD creates namespace:
resource "kubectl_manifest" "argocd_app" {
yaml_body = yamlencode({
apiVersion = "argoproj.io/v1alpha1"
kind = "Application"
metadata = {
name = "arc-runners"
namespace = "argocd"
}
spec = {
destination = {
namespace = "arc-runners" # ArgoCD will create this
}
syncPolicy = {
automated = {
prune = true
selfHeal = true
}
syncOptions = ["CreateNamespace=true"] # ArgoCD manages it
}
}
})
}
Exception: Namespace needs pre-created secrets
If you need to create secrets BEFORE the application deploys:
resource "kubernetes_namespace" "arc_runners" {
metadata {
name = "arc-runners"
}
}
resource "kubernetes_secret" "github_token" {
metadata {
name = "arc-org-github-secret"
namespace = kubernetes_namespace.arc_runners.metadata[0].name
}
data = {
github_token = var.github_token
}
type = "Opaque"
}
resource "kubectl_manifest" "argocd_app" {
yaml_body = yamlencode({
# ...
spec = {
destination = {
namespace = "arc-runners"
}
syncPolicy = {
syncOptions = [] # Do NOT include CreateNamespace - we created it
}
}
})
depends_on = [
kubernetes_namespace.arc_runners,
kubernetes_secret.github_token
]
}
module "argocd" {
source = "./modules/argocd"
kubeconfig_path = module.cloudspace.kubeconfig_path
github_token_secret = var.github_token
bootstrap_repo_url = "https://github.com/Matchpoint-AI/matchpoint-github-runners-helm"
}
Module responsibilities:
ArgoCD manages runner deployments via ApplicationSet:
# argocd/applicationset.yaml
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: github-runners
spec:
generators:
- list:
elements:
- name: arc-beta-runners
valuesFile: examples/beta-runners-values.yaml
template:
metadata:
name: '{{name}}'
spec:
source:
repoURL: https://github.com/Matchpoint-AI/matchpoint-github-runners-helm
targetRevision: main
path: charts/github-actions-runners
helm:
releaseName: '{{name}}' # CRITICAL: Must match runnerScaleSetName
valueFiles:
- '../../{{valuesFile}}'
Symptom:
Error: Provider produced inconsistent result after apply
The CRD "applications.argoproj.io" does not exist
Fix: Change from kubernetes_manifest to kubectl_manifest
Symptom:
ArgoCD sync failed: namespace "arc-runners" already exists
Fix: Remove CreateNamespace=true from ArgoCD Application if Terraform created the namespace
Symptom:
kubectl_manifest failed: no matches for kind "Application"
Fix: Add time_sleep resource after ArgoCD Helm release:
resource "time_sleep" "wait_for_crds" {
depends_on = [helm_release.argocd]
create_duration = "30s"
}
# Check if ArgoCD CRDs are registered
kubectl api-resources | grep argoproj
# Verify ArgoCD installation
kubectl get pods -n argocd
# Check Application CRD definition
kubectl get crd applications.argoproj.io
# View terraform state for ArgoCD resources
cd terraform
terraform state list | grep argocd
# Check for orphaned kubernetes resources
terraform state list | grep kubernetes_
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
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.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
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.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
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".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
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".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.