# Configuration & Setup Source: https://docs.skyhook.io/application/cicd/configuration Reference for what Skyhook generates into your repo, the secrets and variables it expects, the workflow actions it calls, and how to customize or regenerate. This page is the reference side of Skyhook's CI/CD. **Credential setup — cloud OIDC / Workload Identity, the GitHub Apps, protected branches — lives on [GitHub Actions setup](/infrastructure/cicd-setup/github-integration).** Start there if you're setting things up for the first time; come back here for the cheat-sheets and the knobs. ## Supported cloud stacks Skyhook's generated workflows accept a `///` tuple in the `cloud_provider_account_location_cluster` input and route to the right cloud authentication + registry login automatically. The formats are: ### AWS (EKS + ECR) **Cluster tuple:** `aws/123456789/us-east-1/my-cluster` — provider, AWS account ID, region, EKS cluster name. **Needs:** EKS cluster, ECR repository (created by workflows on first push), and either an IAM role (OIDC, recommended) or static access keys. ### GCP (GKE + Artifact Registry) **Cluster tuple:** `gcp/my-project/us-central1/my-cluster` — provider, GCP project ID, location, GKE cluster name. **Needs:** GKE cluster, Artifact Registry or GCR, and either Workload Identity Federation (recommended) or a service account JSON key. ### Azure (AKS + ACR) **Cluster tuple:** `azure/subscription-id/eastus/my-cluster` — provider, subscription ID, region, AKS cluster name. **Needs:** AKS cluster, ACR, and a service principal or managed identity. ### BYOK / other registries For clusters you operate yourself (on-prem, bare-metal, k3s, DigitalOcean, etc.) and non-cloud registries (Docker Hub, GHCR, Harbor, Quay), cloud CLI setup doesn't apply. Workflows use a base64-encoded `KUBECONFIG` secret and standard registry credentials — see [GitHub Actions setup → BYOK tab](/infrastructure/cicd-setup/github-integration). ## Secrets and variables reference Configure these in **GitHub Repository (or Organization) Settings → Secrets and Variables → Actions**. Repository **variables** are for non-sensitive values like role ARNs and service account emails; **secrets** are for credentials. ### Cluster authentication | Provider | Method | Name | Type | Used by | | -------- | ------------------------------- | ------------------------------------------------------------- | --------------- | --------------------- | | AWS | OIDC (recommended) | `AWS_BUILD_ROLE` | variable | build workflow (ECR) | | AWS | OIDC (recommended) | `AWS_DEPLOY_ROLE` | variable | deploy workflow (EKS) | | AWS | Access keys | `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY` | secret | build + deploy | | GCP | Workload Identity (recommended) | `WIF_PROVIDER`, `WIF_SERVICE_ACCOUNT` | variable | build + deploy | | GCP | Service account key | `GCP_CREDENTIALS` | secret | build + deploy | | Azure | OIDC federated (recommended) | `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_SUBSCRIPTION_ID` | variable | build + deploy | | Azure | Client secret | `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`, `AZURE_TENANT_ID` | secret | build + deploy | | BYOK | kubeconfig | `KUBECONFIG` | secret (base64) | deploy | OIDC / WIF and static credentials are alternatives — pick one path per cloud, not both. The `AWS_BUILD_ROLE` and `AWS_DEPLOY_ROLE` can point at the same role if you prefer; separating them lets you give each workflow the minimum IAM policy it needs. ### Registry credentials Registry auth is handled automatically for AWS ECR, GCP Artifact Registry, and Azure ACR once cluster authentication is in place. For other registries: | Registry | Name | Type | | -------------------------------- | -------------------------------------------------- | ------ | | GitHub Container Registry (GHCR) | uses the built-in `github.token` — no setup needed | — | | Docker Hub | `DOCKERHUB_USERNAME`, `DOCKERHUB_TOKEN` | secret | | Private / OCI-compliant | `REGISTRY_USERNAME`, `REGISTRY_PASSWORD` | secret | ### Cross-repo GitHub access Required when your service pushes to a separate deployment repository (GitOps) or a central Helm-charts repo: | Method | Names | Type | | ------------------------ | ------------------------ | ------ | | GitHub App (recommended) | `GH_APP_ID`, `GH_APP_PK` | secret | | Personal Access Token | `GHA_PAT` | secret | Skyhook's [Deployment GitHub App flow](/infrastructure/gitops/overview#deployment-github-app) configures these for you. Use a PAT for quick setups where a single user's credentials are acceptable. ## Advanced Features ### Separate Deployment Repositories Skyhook supports separating your application code from deployment configuration for better organization and security. **Repository structure:** ``` Organization/ ├── my-service/ # Application code + Dockerfile │ ├── src/ │ ├── Dockerfile │ └── .github/workflows/ └── deployments/ # Kubernetes manifests └── services/ └── my-service/ ├── base/ │ ├── deployment.yaml │ └── service.yaml └── overlays/ ├── dev/ ├── staging/ └── production/ ``` **Configuration in `.koala.toml`:** ```toml theme={"system"} [repo] deployment_repo = "Organization/deployments" deployment_folder_path = "services/my-service" ``` **Benefits:** * Separate permissions for code and config * Shared deployment patterns across services * Easier management of multi-service deployments * Security teams can review config changes independently ### Deploy Config Source Format Override the deployment repository or path at runtime using the `deploy_config_source` input. **Format:** ``` [][@][:] ``` **Examples:** * `@feature-branch` - Same repo, different branch * `:services/payment` - Same repo, different path * `Acme/deployments@main:services/api` - Different repo, specific branch and path * `OtherOrg/configs:k8s/staging` - Different org, specific path * Empty - Uses repository defaults from `.koala.toml` **Use cases:** * Test configuration from a feature branch * Use different deployment repos for different environments * Override paths for special deployments ### Environment Configuration Overrides Apply runtime configuration changes without modifying files in your repository. **Format:** JSON object mapping file paths to key-value pairs **Example:** ```json theme={"system"} { "overlays/dev/.env": { "DATABASE_URL": "postgres://dev-db:5432/myapp", "LOG_LEVEL": "debug", "FEATURE_FLAG_NEW_UI": "true" }, "config/settings.yaml": { "max_connections": "100", "timeout_seconds": "30" } } ``` **Use cases:** * Override environment variables per deployment * Test feature flags without code changes * Adjust configuration for specific deployments * Emergency configuration changes ### Progressive Delivery with Argo Rollouts When Argo Rollouts is enabled, Skyhook workflows support advanced deployment strategies. **Features:** * Canary deployments - Gradually shift traffic to new version * Blue-green deployments - Switch all traffic after validation * Automatic rollback on failures * Traffic splitting and promotion * Success metric monitoring **Workflow behavior:** * Deploys new version using rollout strategy * Monitors rollout progress * Waits for manual or automatic promotion * Marks deployment successful only after rollout completes **Rollout strategies:** **Canary:** ```yaml theme={"system"} strategy: canary: steps: - setWeight: 20 - pause: {duration: 5m} - setWeight: 50 - pause: {duration: 5m} - setWeight: 100 ``` **Blue-Green:** ```yaml theme={"system"} strategy: blueGreen: activeService: my-service previewService: my-service-preview autoPromotionEnabled: false ``` [Learn more about Argo Rollouts →](https://argoproj.github.io/argo-rollouts/) ## Managing Workflows ### Generated Workflow Files When you create a service, Skyhook generates workflows in `.github/workflows/`: ``` .github/ └── workflows/ ├── release.yml # Automated CI/CD on main ├── build_and_deploy.yml # Manual build + deploy ├── deploy.yml # Manual deploy only └── build_image.yml # Manual build only ``` ### Updating Workflows To regenerate workflows after configuration changes: ```bash theme={"system"} # Via Skyhook CLI skyhook update cicd --reset # For monorepos skyhook update cicd --reset --monorepo ``` The `--reset` flag ensures complete regeneration from templates, incorporating any changes from your `.koala.toml` configuration. **When to regenerate:** * Changed cloud provider * Enabled/disabled ArgoCD * Modified deployment repository settings * Updated to latest workflow templates * Added/removed Argo Rollouts ### Customizing Workflows You can customize generated workflows in three ways: #### 1. Add Custom Steps Insert additional steps between existing actions: ```yaml theme={"system"} - name: Build image uses: skyhook-io/docker-build-push-action@v1 - name: Security scan uses: aquasecurity/trivy-action@master with: image-ref: ${{ env.IMAGE }} - name: Run tests run: docker run ${{ env.IMAGE }} npm test - name: Deploy uses: skyhook-io/kustomize-deploy@v1 ``` #### 2. Override Inputs Modify default input values: ```yaml theme={"system"} with: environment: ${{ inputs.environment }} tag: ${{ inputs.tag }} # Add custom input slack_webhook: ${{ secrets.SLACK_WEBHOOK }} ``` #### 3. Replace Actions Swap Skyhook actions with your own implementations: ```yaml theme={"system"} # Instead of skyhook-io/cloud-login - name: Custom AWS authentication run: | aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws eks update-kubeconfig --name ${{ env.CLUSTER }} ``` ## Workflow Actions Reference Skyhook workflows use composable GitHub Actions published under the [`skyhook-io`](https://github.com/skyhook-io) organization. All are open source, versioned, and pinned to `@v1` in generated workflows. ### Build and tagging * [`skyhook-io/determine-image-tag@v1`](https://github.com/skyhook-io/determine-image-tag) — tag generation with branch, date, and counter components * [`skyhook-io/docker-build-push-action@v1`](https://github.com/skyhook-io/docker-build-push-action) — multi-registry Docker build and push with caching * [`skyhook-io/parse-image-registry@v1`](https://github.com/skyhook-io/parse-image-registry) — parse an image URL into provider/registry/repository/tag ### Cloud authentication * [`skyhook-io/cloud-login@v1`](https://github.com/skyhook-io/cloud-login) — unified AWS/GCP/Azure authentication with optional kubectl and registry login (orchestrator used by the generated workflows) * [`skyhook-io/login-aws@v1`](https://github.com/skyhook-io/login-aws), [`skyhook-io/login-gcp-gke@v1`](https://github.com/skyhook-io/login-gcp-gke), [`skyhook-io/login-azure-aks@v1`](https://github.com/skyhook-io/login-azure-aks) — per-cloud building blocks if you want to call them directly * [`skyhook-io/parse-cloud-provider-cluster@v1`](https://github.com/skyhook-io/parse-cloud-provider-cluster) — parse the `///` tuple format * [`skyhook-io/ensure-ecr-repository@v1`](https://github.com/skyhook-io/ensure-ecr-repository) — create an ECR repository if it doesn't exist ### Deployment * [`skyhook-io/kustomize-deploy@v1`](https://github.com/skyhook-io/kustomize-deploy) — deploys via kubectl or GitOps depending on how the overlay is configured (orchestrator used by the generated `deploy.yml`) * [`skyhook-io/kustomize-edit@v1`](https://github.com/skyhook-io/kustomize-edit), [`skyhook-io/kustomize-inspect@v1`](https://github.com/skyhook-io/kustomize-inspect), [`skyhook-io/kustomize-apply@v1`](https://github.com/skyhook-io/kustomize-apply) — building blocks for the deploy orchestrator * [`skyhook-io/parse-deploy-config-source@v1`](https://github.com/skyhook-io/parse-deploy-config-source) — parse the `[][@][:]` deploy source string * [`skyhook-io/patch-env-files@v1`](https://github.com/skyhook-io/patch-env-files) — apply runtime overrides to overlay `.env` files * [`skyhook-io/determine-deploy-dir@v1`](https://github.com/skyhook-io/determine-deploy-dir) — find the deployment directory for a service ### Waiting for rollouts * [`skyhook-io/wait-for-deployment@v1`](https://github.com/skyhook-io/wait-for-deployment) — wait for Kubernetes workloads to become ready; delegates to the Rollout waiter for Argo Rollouts resources (used by the generated `deploy.yml` when ArgoCD isn't managing the deploy) * [`skyhook-io/wait-for-rollout@v1`](https://github.com/skyhook-io/wait-for-rollout) — wait for a specific Argo Rollout to complete * [`skyhook-io/wait-for-argocd-sync@v1`](https://github.com/skyhook-io/wait-for-argocd-sync) — wait for ArgoCD-managed workloads to sync ### Matrix generation (monorepos + separate deployment repos) * [`skyhook-io/generate-service-matrix@v1`](https://github.com/skyhook-io/generate-service-matrix) — reads `.skyhook/skyhook.yaml` (or the legacy `.koala-monorepo.json`) and produces the build/deploy matrix used by `release.yml` ### Cross-repo GitHub access * [`skyhook-io/github-auth-token@v1`](https://github.com/skyhook-io/github-auth-token) — exchange a PAT or GitHub App credentials for a token scoped to another repository (used when deploying to a separate deployment repo) * [`skyhook-io/git-sync-commit@v1`](https://github.com/skyhook-io/git-sync-commit) — commit and push changes safely with automatic rebase and retry ### Jobs * [`skyhook-io/resolve-job-template@v1`](https://github.com/skyhook-io/resolve-job-template), [`skyhook-io/submit-job@v1`](https://github.com/skyhook-io/submit-job) — used by the generated `execute_job.yml` to discover and trigger Kubernetes CronJobs and Argo Workflows ## Security Best Practices 1. **Use OIDC/Workload Identity** - Avoid long-lived credentials whenever possible 2. **Separate Environments** - Different clusters for dev/staging/prod with isolated credentials 3. **Protect Main Branch** - Require PR reviews before merging to prevent unauthorized deployments 4. **GitOps for Production** - Use ArgoCD for critical environments to maintain audit trail 5. **Test in Staging** - Always test deployments before production 6. **Monitor Rollouts** - Use Argo Rollouts for gradual rollouts with automatic rollback 7. **Tag Production Releases** - Use semantic versioning for production deployments 8. **Rotate Credentials** - Regularly rotate any long-lived credentials 9. **Audit Access** - Review who has access to GitHub secrets and cloud resources 10. **Use Separate Deployment Repos** - Isolate configuration from code for better security ## Next Steps * [Using Workflows](/application/cicd/workflows) - Learn how to deploy your services * [Troubleshooting](/application/cicd/troubleshooting) - Resolve common issues * [GitOps with ArgoCD](/infrastructure/gitops/overview) - Set up declarative deployments * [GitHub Actions Setup](/infrastructure/cicd-setup/github-integration) - Configure GitHub credentials * [GitHub OIDC Setup](/infrastructure/cicd-setup/github-oidc) - Deep-dive on the recommended cloud-auth path # CI/CD Overview Source: https://docs.skyhook.io/application/cicd/overview Skyhook provides automated CI/CD pipelines for your services using GitHub Actions. When you create or import a service, Skyhook generates ready-to-use workflows that handle building Docker images, deploying to Kubernetes, and managing your entire release process. ## What you get Docker images tagged, built, and pushed to your registry on every commit to main. Promote across dev, staging, production, or any custom environment from the UI or CLI. Optional ArgoCD path — workflows update Git, ArgoCD reconciles the cluster. Argo Rollouts canary and blue-green strategies wired into the deploy step. AWS (EKS + ECR), GCP (GKE + Artifact Registry), Azure (AKS + ACR), or BYOK clusters. Build and deploy multiple services from a single repo with a generated matrix. Everything is generated into your repo as plain GitHub Actions YAML — customize, fork, or replace any step. ## How it works When you create a service with Skyhook, we automatically generate GitHub Actions workflows in your repository: ``` .github/ └── workflows/ ├── release.yml # Automated CI/CD on push to main ├── build_and_deploy.yml # Manual build + deploy ├── deploy.yml # Manual deploy only └── build_image.yml # Manual build only ``` These workflows integrate with: * Your container registry (ECR, GCR, ACR, Docker Hub, GHCR) * Your Kubernetes clusters * Your Git repository (for GitOps deployments) ## Deployment methods Two paths, picked per service. You can mix — direct for dev, GitOps for production. Workflow updates Kubernetes manifests in Git; ArgoCD reconciles the cluster. Best for production: Git as the source of truth, drift detection, easy Git-based rollbacks. Workflow authenticates to the cluster and applies manifests directly. Best for dev and staging: faster feedback, fewer moving parts, no extra infrastructure. ## Workflow types Automatic — triggers on push to main. Builds, tags, pushes images, and (optionally) deploys to a development environment. Detects monorepo services and builds only what changed. Manual — build a new image from any ref and deploy it in one shot. Useful for promoting a feature branch to staging before merge. Manual — deploy an already-built image without rebuilding. Promote staging → production, roll back to a known-good image, or replicate a deployment across regions. Manual — build and push without deploying. Useful for pre-baking release candidates or testing Docker changes. [Day-to-day deployment guide →](/application/cicd/workflows) ## Cloud and registry support | Cloud | Cluster | Registry | Default auth | | ----- | ------------------------- | ----------------------------------- | ------------------------------------ | | AWS | EKS | ECR | OIDC + IAM role (no long-lived keys) | | GCP | GKE | Artifact Registry / GCR | Workload Identity Federation | | Azure | AKS | ACR | Service principal or OIDC | | BYOK | Any conformant Kubernetes | Docker Hub, GHCR, Harbor, Quay, OCI | kubeconfig + registry secret | The `skyhook github setup` CLI configures the OIDC trust automatically. See [Configuration & Setup](/application/cicd/configuration) for the full setup walkthrough. ## Next steps Deploy modal, branch refs, image promotion, rollback patterns. Cloud authentication, generated workflow files, advanced overrides, actions reference. Auth failures, build issues, ArgoCD sync problems, common error messages. # Troubleshooting Source: https://docs.skyhook.io/application/cicd/troubleshooting This guide helps you diagnose and resolve common issues with Skyhook CI/CD workflows. ## Build Failures ### Docker Build Fails **Symptoms:** * Build step fails in GitHub Actions * Error messages about Dockerfile syntax or missing files * Build context errors **Common causes and solutions:** 1. **Invalid Dockerfile syntax** ``` Check your Dockerfile for: - Correct instruction format (FROM, RUN, COPY, etc.) - Proper line continuation with backslashes - Valid base image references ``` 2. **Missing files or directories** ``` Ensure files referenced in COPY or ADD commands exist: - Check file paths are relative to build context - Verify .dockerignore isn't excluding required files - Confirm files are committed to Git ``` 3. **Base image not found** ``` Verify base image exists and is accessible: - Check image name and tag are correct - Ensure you have access to private registries - Try pulling the image locally first ``` 4. **Build context too large** ``` Reduce build context size: - Add node_modules, .git, etc. to .dockerignore - Remove unnecessary files from repository - Use multi-stage builds to minimize final image size ``` **Debugging steps:** 1. Review the full build logs in GitHub Actions 2. Try building locally: `docker build -t test .` 3. Check recent changes to Dockerfile or dependencies 4. Verify all required files are in the repository ### Image Push Fails **Symptoms:** * Build succeeds but push to registry fails * Authentication errors to container registry * "Repository does not exist" errors **Common causes and solutions:** 1. **Invalid registry credentials** ``` For AWS ECR: - Verify AWS_DEPLOY_ROLE or AWS credentials are correct - Check IAM role has ecr:GetAuthorizationToken permission - Ensure role trust policy includes GitHub OIDC provider For GCP Artifact Registry: - Verify WIF_PROVIDER and WIF_SERVICE_ACCOUNT are correct - Check service account has Artifact Registry Writer role - Ensure Workload Identity binding is configured For Azure ACR: - Verify service principal credentials - Check service principal has AcrPush role ``` 2. **Repository doesn't exist** ``` AWS ECR: Repositories are created automatically - Verify IAM permissions include ecr:CreateRepository GCP/Azure: Create repository manually - GCP: gcloud artifacts repositories create - Azure: az acr repository create ``` 3. **Registry URL is incorrect** ``` Check registry format in .koala.toml: - AWS: 123456789.dkr.ecr.us-east-1.amazonaws.com - GCP: us-docker.pkg.dev/project-id/repository - Azure: myregistry.azurecr.io ``` **Debugging steps:** 1. Verify registry URL in workflow logs 2. Test authentication manually with cloud CLI tools 3. Check registry permissions in cloud console 4. Review GitHub secrets configuration ## Deployment Failures ### CI workflow ignores the `ref` you picked Applies to services on **older or customized workflow files** — current generated workflows declare `ref` already, so if you haven't modified yours you won't hit this. **Symptoms:** * Deploying from a branch works, but the workflow runs against `main` instead of the ref you picked in the Skyhook UI * Skyhook's deploy triggers a workflow run with no `ref` parameter applied **Cause:** Skyhook passes a `ref` input to your `workflow_dispatch` call. If your workflow file doesn't declare that input, GitHub rejects the value silently and falls back to the HEAD of the target branch. **Fix:** The fastest path is to regenerate your workflows with the CLI, which ships the current template (including the `ref` input): ```bash theme={"system"} skyhook update cicd --reset ``` If you've customized the workflow and want to keep your changes, add `ref` manually: ```yaml theme={"system"} on: workflow_dispatch: inputs: ref: description: 'Git ref (branch, tag, or SHA) to build from' required: false type: string jobs: build: steps: - uses: actions/checkout@v6 with: ref: ${{ inputs.ref || github.ref }} ``` ### kubectl Deployment Fails **Symptoms:** * Deployment step fails after successful build * "connection refused" or "unauthorized" errors * kubectl commands timeout **Common causes and solutions:** 1. **Invalid cluster credentials** ``` Verify cluster access: - Check cluster name and region are correct - Ensure credentials have cluster admin permissions - Test connection: kubectl get nodes ``` 2. **Cluster name format incorrect** ``` Verify cluster format matches cloud provider: AWS: aws/123456789/us-east-1/my-cluster - Account ID, region, cluster name must be exact GCP: gcp/my-project/us-central1/my-cluster - Project ID, location, cluster name must match Azure: azure/subscription-id/eastus/my-cluster - Subscription ID, region, cluster name must match ``` 3. **Insufficient permissions** ``` Ensure service account/role has Kubernetes permissions: - AWS: IAM role needs eks:DescribeCluster - GCP: Service account needs container.clusters.get - Azure: Service principal needs AKS Cluster User ``` 4. **Invalid Kubernetes manifests** ``` Check manifest syntax: - Validate YAML syntax - Ensure apiVersion is correct for your cluster - Verify resource names follow Kubernetes naming rules - Test locally: kubectl apply --dry-run=client -f manifests/ ``` **Debugging steps:** 1. Review kubectl output in workflow logs 2. Verify cluster exists and is accessible 3. Check Kubernetes manifest syntax 4. Test deployment locally with kubectl ### ArgoCD Not Syncing **Symptoms:** * Workflow completes but changes don't appear in cluster * ArgoCD shows "OutOfSync" status * Application health degraded **Common causes and solutions:** 1. **ArgoCD not configured correctly** ``` Verify ArgoCD setup: - Check ArgoCD is installed in cluster - Ensure Application resource exists - Verify repository is connected in ArgoCD - Check sync policy is configured ``` 2. **Repository access issues** ``` Ensure ArgoCD can access deployment repository: - For private repos: Add deploy key or credentials in ArgoCD - Verify repository URL is correct - Check branch name matches ArgoCD Application spec ``` 3. **Manifest path incorrect** ``` Check path configuration: - Verify path in ArgoCD Application matches repo structure - Ensure kustomization.yaml exists at specified path - Check environment overlay path is correct ``` 4. **Sync policy prevents auto-sync** ``` Check ArgoCD Application sync settings: - Enable automated sync if desired - Check for required manual approval - Review sync options and prune settings ``` **Debugging steps:** 1. Check ArgoCD UI for application status 2. Review ArgoCD application logs: `kubectl logs -n argocd ` 3. Verify Git commits appear in deployment repository 4. Manually trigger sync in ArgoCD UI 5. Check ArgoCD application events: `kubectl describe application -n argocd ` ## Authentication Issues ### AWS Authentication Fails **Symptoms:** * "Unable to locate credentials" error * "Access denied" when accessing EKS or ECR * OIDC token validation errors **Common causes and solutions:** 1. **OIDC provider not configured** ``` Ensure OIDC provider exists in AWS IAM: - Provider URL: token.actions.githubusercontent.com - Audience: sts.amazonaws.com - Verify provider is active ``` 2. **IAM role trust policy incorrect** ``` Check role trust policy includes GitHub: { "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam::ACCOUNT:oidc-provider/token.actions.githubusercontent.com" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { "token.actions.githubusercontent.com:sub": "repo:ORG/REPO:ref:refs/heads/main" } } } ``` 3. **Missing IAM permissions** ``` Verify role has required policies: - EKS access: eks:DescribeCluster, eks:ListClusters - ECR access: ecr:GetAuthorizationToken, ecr:BatchCheckLayerAvailability, ecr:PutImage, ecr:InitiateLayerUpload, ecr:UploadLayerPart, ecr:CompleteLayerUpload, ecr:CreateRepository ``` 4. **AWS\_DEPLOY\_ROLE variable not set** ``` Configure in GitHub repository: - Go to Settings → Secrets and Variables → Actions - Add variable: AWS_DEPLOY_ROLE - Value: arn:aws:iam::123456789:role/github-actions-deploy ``` **Debugging steps:** 1. Verify OIDC provider exists in IAM 2. Check role ARN is correct in GitHub variable 3. Review IAM role trust policy and permissions 4. Test role assumption locally with AWS CLI ### GCP Authentication Fails **Symptoms:** * "Permission denied" errors * "Invalid JWT" or token validation errors * Cannot access GKE or Artifact Registry **Common causes and solutions:** 1. **Workload Identity not configured** ``` Verify Workload Identity setup: - Pool exists: gcloud iam workload-identity-pools describe github-actions - Provider configured for GitHub OIDC - Attribute mapping includes repository ``` 2. **Service account permissions missing** ``` Ensure service account has required roles: - GKE access: roles/container.developer - Artifact Registry: roles/artifactregistry.writer - Basic: roles/iam.serviceAccountTokenCreator ``` 3. **Workload Identity binding incorrect** ``` Check service account IAM policy binding: gcloud iam service-accounts get-iam-policy \ SERVICE_ACCOUNT@PROJECT.iam.gserviceaccount.com Should include: - Role: roles/iam.workloadIdentityUser - Member: principalSet://iam.googleapis.com/projects/PROJECT_NUM/locations/global/workloadIdentityPools/github-actions/attribute.repository/ORG/REPO ``` 4. **WIF variables not set correctly** ``` Configure in GitHub repository: - WIF_PROVIDER: projects/PROJECT_NUM/locations/global/workloadIdentityPools/github-actions/providers/github - WIF_SERVICE_ACCOUNT: SERVICE_ACCOUNT@PROJECT.iam.gserviceaccount.com ``` **Debugging steps:** 1. Verify Workload Identity pool and provider exist 2. Check service account has necessary roles 3. Review Workload Identity binding for repository 4. Test authentication locally with gcloud ### GitHub Authentication Fails **Symptoms:** * Cannot access deployment repository * "Resource not accessible by integration" error * PAT or GitHub App authentication fails **Common causes and solutions:** 1. **GitHub App not installed** ``` Verify GitHub App installation: - Check app is installed on target repository - Review app permissions include repository access - Ensure app has Contents: Read & Write permission ``` 2. **GitHub App credentials incorrect** ``` Check GitHub secrets: - GH_APP_ID: Numeric app ID (not app name) - GH_APP_PK: Complete private key including headers -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- ``` 3. **PAT lacks required permissions** ``` If using Personal Access Token: - Ensure PAT has 'repo' scope - Check PAT hasn't expired - Verify user has access to deployment repository ``` 4. **Cross-organization access** ``` For accessing repos in different organizations: - GitHub App must be installed in target org - PAT user must be member of target org - Check organization SSO requirements ``` **Debugging steps:** 1. Verify GitHub App installation and permissions 2. Check secret values are complete and correct 3. Test repository access manually 4. Review workflow logs for specific error messages ## Common Error Messages ### "ImagePullBackOff" in Kubernetes **Cause**: Kubernetes cannot pull the Docker image **Solutions:** 1. Verify image tag exists in registry 2. Check image name and registry URL are correct 3. Ensure Kubernetes has credentials to access private registry 4. For ECR: Verify ECR image pull secret is configured 5. Check network connectivity from cluster to registry ### "CrashLoopBackOff" in Kubernetes **Cause**: Container starts but immediately crashes **Solutions:** 1. Check application logs: `kubectl logs ` 2. Verify environment variables are set correctly 3. Ensure required secrets and config maps exist 4. Check application dependencies (database, APIs) are accessible 5. Review resource limits aren't too restrictive ### "Workflow dispatch failed" **Cause**: Cannot trigger GitHub Actions workflow **Solutions:** 1. Verify workflow file exists in repository 2. Check workflow\_dispatch trigger is configured 3. Ensure you have permission to trigger workflows 4. Review workflow inputs match expected parameters 5. Check GitHub Actions is enabled for repository ## Getting Help If you're still experiencing issues: 1. **Check GitHub Actions logs** - Detailed error messages and stack traces 2. **Review Skyhook documentation** - Additional guides and examples 3. **Verify configuration** - Double-check .koala.toml and secrets 4. **Test components individually** - Isolate the failing step 5. **Contact support** - Provide workflow run URL and error details ## Next Steps * [Using Workflows](/application/cicd/workflows) - Learn deployment operations * [Configuration & Setup](/application/cicd/configuration) - Review setup steps * [GitOps with ArgoCD](/infrastructure/gitops/overview) - Troubleshoot ArgoCD issues # Using Workflows Source: https://docs.skyhook.io/application/cicd/workflows Skyhook provides both automated and manual workflows for building and deploying your services. This page covers day-to-day deployment operations. ## Automated Workflows ### Release Workflow The **Release** workflow automatically triggers when you push to your main branch (typically `main` or `master`). **What it does:** 1. Generates a unique image tag based on branch name, date, and build counter 2. Builds your Docker image 3. Pushes the image to your configured container registry 4. Optionally deploys to your development environment automatically **Trigger:** ```yaml theme={"system"} on: push: branches: - main ``` **Use case:** Continuous deployment - every merge to main automatically builds and can deploy to dev. ### Monorepo Support For monorepos containing multiple services, the Release workflow: * Detects which services changed in the commit * Builds only the affected services in parallel * Uses a shared image tag across all services for consistency * Can deploy all changed services to development automatically ## Manual Deployments Skyhook provides flexible deployment options through manual workflows that are **primarily triggered from the Skyhook UI**, though they can also be run directly from GitHub Actions if needed. ### Deploying from the Skyhook UI The easiest way to deploy your service is through the Skyhook web application: 1. Navigate to **Services → \[Your Service] → Deploy** 2. Choose your deployment mode: * **Deploy Existing Image** - Deploy an already-built image * **Build Image** - Build a new image and deploy it Deploy Dialog in Skyhook UI 3. Configure your deployment: * **Image Tag** (Deploy Existing) or **Git Code Reference** (Build Image) - Select what to deploy or build * **Kubernetes Resources (Config Reference)** - Select Git reference for Kubernetes manifests * **CI Workflows (Git CI Reference)** - Select Git reference for workflow files * **Environment** - Choose target environment (dev, staging, production) 4. Select Git references using the branch/tag/commit picker: Git Reference Selector Each Git reference field opens a picker where you can: * Search and select from **Branches**, **Tags**, or **Commits** * See commit timestamps and SHAs * Easily switch between different reference types 5. Review your deployment before confirming: Deployment Summary The deployment summary shows: * What branch/tag you're deploying from * Current version vs new version * Target environment * Link to see the full diff on GitHub 6. Click **Deploy** to trigger the workflow **Benefits of using the Skyhook UI:** * Pre-filled defaults for your service configuration * Visual interface for selecting environments and options * Browse branches, tags, and commits without leaving the UI * See deployment summary and diff before confirming * Real-time feedback and deployment status * No need to remember workflow input formats * Automatically routes to the correct GitHub Actions workflow ### Deploying from GitHub Actions You can also trigger deployments directly from GitHub: 1. Go to your repository on GitHub 2. Navigate to **Actions** tab 3. Select the workflow you want to run 4. Click **Run workflow** 5. Fill in the required inputs **When to use GitHub directly:** * Automation scripts or external CI/CD integrations * Custom deployment pipelines * Advanced users who prefer the GitHub interface ### Available Workflows #### Build and Deploy Builds a new Docker image and deploys it in one operation. **When to use:** * Deploying to staging or production from a specific branch * Testing a feature branch before merging * Creating a release from a specific commit or tag **How to use:** 1. Select **Build Image** tab in the deploy dialog 2. Choose **Git Code Reference** (branch, tag, or commit to build from) 3. Set **Config Reference** for Kubernetes manifests (defaults to main) 4. Select target **Environment** 5. Review and confirm deployment **Example scenarios:** * Deploy `feature/new-api` branch to `dev` environment for testing * Deploy `v1.2.3` tag to `production` with stable configuration * Build from `main` branch and deploy to `staging` #### Deploy Existing Image Deploys an already-built Docker image without rebuilding. **When to use:** * Promoting an existing image from staging to production * Rolling back to a previous version * Deploying the same tested image to multiple clusters or environments **How to use:** 1. Select **Deploy Existing Image** tab in the deploy dialog 2. Choose **Image Tag** from the list of available images 3. Set **Config Reference** for Kubernetes manifests 4. Select target **Environment** 5. Review and confirm deployment **Example scenarios:** * Promote `main-2024-01-15-42` image from staging to production * Rollback production to previous stable image `v1.2.2` * Deploy the same image across multiple regions #### Build Image Only Builds and pushes a Docker image without deploying it. **When to use:** * Pre-building images for later deployment * Testing Docker builds without affecting running services * Creating release candidates for approval before deployment **How to use:** 1. Trigger the **Build Image** workflow from GitHub Actions 2. Specify the Git reference to build from 3. Optionally provide a custom image tag 4. The image will be built and pushed to your container registry **Example scenarios:** * Build release candidate images for testing: `rc-v1.3.0` * Pre-build images during off-peak hours * Create images for manual QA validation before deployment ## Understanding Git References When deploying, you can specify different Git references for your code and configuration: ### Git Code Reference * Where to build the Docker image from * Can be a branch name (`main`, `feature/new-api`), tag (`v1.2.3`), or commit SHA * Determines what code gets built into your container ### Git Config Reference (Kubernetes Resources) * Where to get Kubernetes manifests and configuration from * Typically uses `main` branch for stable configuration * Can override to use feature branches or specific tags for testing * Controls how your service is deployed (replicas, resources, environment variables, etc.) ### Git CI Reference (CI Workflows) * Where to get the GitHub Actions workflow files from * Usually points to `main` for stable CI/CD definitions * Can be overridden when testing workflow changes ### Why Separate References? This separation allows you to: * **Test new code with stable configuration** - Deploy a feature branch with production-like config * **Test configuration changes with stable code** - Update Kubernetes settings without code changes * **Deploy hotfixes cleanly** - Fix code without modifying deployment configuration * **Experiment safely** - Try different combinations without affecting your repository **Example:** Deploy `feature/new-payment-api` code with `main` branch configuration to test the new API with production-like settings before merging. ## Viewing Deployments In the Skyhook web app, navigate to **Services → \[Your Service] → CI/CD** to: * View recent deployments and their status * See which version is deployed to each environment * Access direct links to GitHub Actions runs * Monitor deployment progress in real-time * Review deployment history and rollbacks ## Common Deployment Scenarios ### Deploying a Feature to Dev 1. Push your feature branch to GitHub 2. Open Skyhook UI → Services → Your Service → Deploy 3. Select **Build Image** tab 4. Choose your feature branch as **Git Code Reference** 5. Select `dev` environment 6. Click Deploy ### Promoting Staging to Production 1. Note the image tag currently deployed in staging (e.g., `main-2024-01-15-42`) 2. Open Skyhook UI → Services → Your Service → Deploy 3. Select **Deploy Existing Image** tab 4. Enter the staging image tag 5. Select `production` environment 6. Review the diff and click Deploy ### Rolling Back Production 1. Find the previous working image tag from deployment history 2. Open Skyhook UI → Services → Your Service → Deploy 3. Select **Deploy Existing Image** tab 4. Enter the previous image tag 5. Select `production` environment 6. Click Deploy ### Testing Configuration Changes 1. Create a branch with your configuration changes 2. Open Skyhook UI → Services → Your Service → Deploy 3. Select **Deploy Existing Image** tab 4. Choose the current stable image tag 5. Set **Config Reference** to your configuration branch 6. Select `dev` environment 7. Click Deploy ## Next Steps * [Configuration & Setup](/application/cicd/configuration) - Configure authentication and advanced features * [Troubleshooting](/application/cicd/troubleshooting) - Resolve common deployment issues * [GitOps with ArgoCD](/infrastructure/gitops/overview) - Set up declarative deployments # Environments Source: https://docs.skyhook.io/application/environments/overview Manage deployment environments at the organization level — cluster, namespace, labels, clone-from-source, AutoDeploy, and per-workload env name prefixes. Environments in Skyhook are **org-level** resources that define *where* a service or job runs — a cluster, a namespace, a region, and a set of labels you can use to group things. Services and jobs reference environments by name; a single environment can host many workloads, and a single workload can deploy to many environments. This page covers the **Environments** section in the sidebar where you manage the environments themselves. For deploying into them, see [Deploying Services](/application/services/deploy). For ephemeral/PR-preview environments, see [Preview Environments](/application/environments/preview). ## Environments list Environments list page showing a table of 40 global and service-specific environments with Name, Cluster, Location, Namespace, Services, and Labels columns, 'Global' badges on some rows, cluster provider icons, and an Add Environment button in the top-right Navigate to **Environments** in the sidebar. The list shows every environment in your org in a sortable, searchable table with: * **Name** — the environment identifier (e.g. `dev`, `prod`, `staging`, `ap-northeast-1`) * **Cluster** — target cluster with provider icon (AWS, GCP, Azure) * **Location** — the cluster's region/zone * **Namespace** — Kubernetes namespace * **Services** — count of services currently deployed * **Labels** — tags applied to this environment **Global** badges mark environments that aren't tied to a specific service — they're available for any workload to deploy to. Environments without the Global badge are scoped to a particular service. ### Searching and filtering * **Search** box matches on name, cluster, namespace * **Cluster** dropdown filters to environments on a specific cluster * Column headers are sortable * Rows per page is configurable (default 50) The sidebar also groups environments by **Static** (persistent), **Preview** (ephemeral), and the specific environment names so you can click straight into the environment deployment page. ## Creating an environment Click **Add Environment** in the top-right. Skyhook opens a create dialog. Create New Environment dialog showing General section with Environment Name (helper text 'Lowercase letters, numbers, and hyphens'), Namespace, Cluster dropdown, and a Labels section with 'Select or create labels' input ### Fields **General:** * **Environment Name** — lowercase letters, numbers, and hyphens only (e.g. `dev`, `staging`, `prod`). Used everywhere the environment is referenced. * **Namespace** — the Kubernetes namespace. Defaults to the environment name if left empty. * **Cluster** — target cluster. Clusters come from **Infrastructure > Clusters**. **Labels:** * **Labels** — free-form labels for grouping environments. Labels don't affect deployment — they're used for filtering and for label-based deploy rules (see below). ### Clone configuration from another environment When creating a new environment, you can **clone** deployment configuration from an existing environment to avoid retyping settings. The clone section appears below Labels once you pick a source environment. Clonable sections: * **Deployment strategy** (RollingUpdate, Recreate, etc.) * **Pod resources** (CPU/memory requests and limits) * **Autoscaling** (HPA thresholds, replica counts) * **Health checks** (liveness, readiness, startup probes) * **ArgoCD configuration** — sync policy, destination overrides Only sections that *have* configuration in the source environment are shown as available — nothing is cloned blindly. Cloning is particularly useful when adding a new region or customer environment: clone from an existing prod-like environment and then adjust the cluster and namespace. Base + patches stay consistent with your existing setup. Click **Create**. Skyhook opens a pull request against your deployment repository adding the new environment; ArgoCD applies it after merge. A confirmation banner shows the pull request URL and offers a **Review PR** button to review and merge it in-app ([more on branches and PRs](/infrastructure/gitops/branches-and-prs)). ## Labels and label-based deployments Labels are the primary way to organize environments at scale. Common uses: * **Region** — `region:us-east`, `region:eu-west` * **Role** — `role:canary`, `role:ha` * **Team** — `team:payments`, `team:analytics` * **Lifecycle** — `lifecycle:temporary`, `lifecycle:production` ### Filtering by label The environment label picker (in the services deploy tab, the deployments list page, and the org environments page) lets you: * Select one or more environments by name * Or select one or more labels — every environment matching any selected label is included This lets you do things like *"deploy this new image to every environment labeled `role:canary`"* without listing them individually. ### Label-based deployments When deploying a service, the environment picker has two tabs: * **Environments** — pick specific environments to deploy to * **Labels** — pick one or more labels, and Skyhook deploys to every environment that matches This is the fastest way to roll out to a fleet of regional or customer environments without selecting each one individually. ### Filtering the deployment list The deployments list page (per service) has a label filter in addition to the environment name filter — so you can see "all deployments to environments labeled `region:us-east`" across time. ## AutoDeploy Environments can be marked as **auto-deploy targets**, meaning every new commit/image build automatically deploys without manual intervention. Two levels: * **Service-level AutoDeploy** — set on a specific environment within a service's environments tab. Only that service auto-deploys. * **Global environment AutoDeploy** — set on a **Global** environment from the context menu on the environments list page. Every service using that global environment auto-deploys. To toggle global AutoDeploy: right-click an environment row (or use the **⋮** context menu) and pick **Set as Auto-deploy** or **Disable Auto-deploy**. A **🚀 rocket icon** displays next to environments that have AutoDeploy enabled so you can see the state at a glance. Global AutoDeploy affects *every service* deploying to that environment. Make sure that's actually what you want — accidentally enabling AutoDeploy on `prod` will start pushing every build to production. The AutoDeploy action opens a PR, tracked with the same pending PR indicator as other environment changes. ## Environment name prefix For cases where you want to run multiple instances of the same workload in the same Kubernetes namespace — think multi-tenant apps, customer-specific deployments — you can enable **environment name prefixing** to disambiguate Kubernetes resource names. Toggle **Enable environment name prefix** on the service's **Settings > Deployment** tab (or the job's **Settings > General** tab). When enabled, Kubernetes resources are named `-` instead of just ``: * Deployment: `dev-my-service` instead of `my-service` * Service: `dev-my-service` instead of `my-service` * ConfigMap / Secret: `dev-my-service` prefix * Ingress: `dev-my-service` prefix This lets `dev-my-service` and `staging-my-service` coexist in the same namespace without colliding. If you use one namespace per environment (the default pattern), you don't need environment name prefixing. It's mainly useful for multi-tenant setups where per-customer environments share a namespace. ## Environment settings beyond the basics The basic create dialog covers name/namespace/cluster/labels. Each environment has additional settings you can edit after creation: * **Ingress** — enable ingress, ingress host, ingress class * **Deployment strategy** — RollingUpdate, Recreate, with max surge / max unavailable * **Pod resources** — CPU/memory requests and limits * **Autoscaling** — HPA targets (see [Autoscaling](/application/services/autoscaling)) * **Health checks** — liveness, readiness, startup probes * **ArgoCD config** — destination cluster, sync policy, ignore differences Most of these are on the service's **Environments** tab when you select the environment, so they can vary per service even when the environment itself is shared. ## Per-environment env vars and secrets Environments can override env vars and secrets on a per-service basis. Two layers: * **Base env vars** defined on the service apply to every environment by default * **Environment overrides** apply only when that environment is selected Change environment-specific values on the service's **Env Vars & Secrets** tab by selecting the relevant environment from the dropdown. See [Secrets Management](/application/services/envvars-secrets) for details. ## Deleting environments From the environments list, select one or more rows and click **Delete** (or use the context menu on a single row). Skyhook opens a PR removing the environment from the deployment repo; ArgoCD prunes resources on sync. Bulk delete is supported — tick the checkboxes on multiple rows and delete them all in one PR. Deleting a static environment does **not** delete the Kubernetes namespace by default — resources are pruned but the namespace persists. If you want the namespace gone too, delete it manually via kubectl or the cluster resource viewer. ## Troubleshooting Skyhook needs a connected cluster and a deployment repository to write environment manifests. The gate shows a checklist: **Connect a Kubernetes cluster** (covered by [Connecting Clusters](/infrastructure/clusters/connecting-clusters)) and **Configure a deployment repository** (Settings → Code & Repositories). Once both are done, the environments list appears. When you enable the environment name prefix, the default ingress host is regenerated using the new prefixed service name. Custom ingress hosts are preserved; if you were relying on the auto-generated host, update it in the environment's Ingress settings. # Preview Environments Source: https://docs.skyhook.io/application/environments/preview Ephemeral environments for testing a feature branch, reviewing a PR, or reproducing a bug — spun up on demand, cleaned up when no longer needed. Preview environments are **ephemeral** environments — copies of your production configuration spun up on demand for a specific purpose (a feature branch, a PR review, a bug repro, a demo). They use the `deploy/overlays/ephemeral` overlay in your deployment repo, so their configuration comes from the same base as your static environments but with overrides for short-lived usage. The biggest practical difference between a preview environment and a static one: **previews don't count toward your production rollout policies**. Readiness checks, label-based deployments, AutoDeploy — features that target static environments — skip previews by default. ## Preview environments list Preview Environments list page showing a table of 12 ephemeral environments (preview-20240906t1258, preview-radar, preview-pedro-demo, etc.) with Environment, Namespace, Deployed Services, and Actions columns, and a Setup + Add button in the top-right Navigate to **Environments → Preview** in the sidebar to open the list. It only shows environments with the `Ephemeral: true` flag — static environments never appear here. Each row shows: * **Environment** — the unique identifier (also used as the Kubernetes namespace) * **Namespace** — for preview environments, this is always identical to the environment ID * **Deployed Services** — how many services are currently running in this environment * **Actions** — delete the environment (and optionally its namespace) Clicking a row opens the same environment deployment page used for static environments, so you can deploy services, view their status, and manage per-env configuration. ## Creating a preview environment Click **Add** in the top-right of the list. Skyhook shows a compact creation form. New Preview Environment form showing Environment id field pre-filled with a timestamp (preview-20260305t1258), Environment blueprint name, Cluster, and Top domain fields with a Create button ### Fields * **Environment id** — auto-generated as `preview-`. You can change it to something descriptive like `preview-bug-repro` or `preview-nadav` — it's used both as the unique ID and the Kubernetes namespace, so keep it DNS-safe. * **Environment blueprint name** — the name Skyhook uses to reference the ephemeral overlay in your deployment repository. Read-only by default and set to the standard `deploy/overlays/ephemeral` path. * **Cluster** — the target cluster for the new environment. Org defaults are pre-filled from **Settings → Preview Environments**. * **Top domain** — the ingress domain new services in this environment will use (e.g. `preview-bug-repro.dev.example.com`). Defaults to the org's configured preview domain. Click **Create** to provision. Skyhook opens a PR against your deployment repo adding the new overlay; ArgoCD applies it once merged. **Ephemeral marker.** Environments created from this form are flagged as ephemeral, which is what keeps them in the Preview list, excludes them from production readiness monitoring, and will drive future auto-teardown behavior. ## Configuration defaults Preview environments inherit their defaults from **Settings → Preview Environments** at the org level: * **Default cluster** — the cluster new previews are created on * **Default top domain** — the ingress domain for preview services * **Blueprint path** — the overlay path Skyhook templates new environments from (usually `deploy/overlays/ephemeral`) Setting these once means anyone creating a preview from the **Add** form doesn't have to pick a cluster or domain every time. ## Deploying services to a preview environment Open any preview environment from the list to reach the deployment page. This is the same interface used for static environments: 1. Pick the services you want to deploy 2. Choose the image tag / branch for each service 3. Pick the config branch (defaults to `main`, but you can point at a feature branch for bundled testing) 4. Click **Review and Deploy** Every service gets environment-specific env vars and secrets from the blueprint, plus any **preview-specific** overrides you've defined for individual services on the service's **Env Vars & Secrets** tab. ## Env vars and secrets for preview environments Because previews use the ephemeral overlay, they inherit the base env vars defined on each service — but you can still override per-preview-environment. Two patterns: * **Blueprint templates** — defined once on the service, applied automatically to every new preview environment * **Environment-specific overrides** — set on a specific preview environment after it's created, visible in the **Env Vars & Secrets** tab when that environment is selected Deleting a preview environment cleans up its overrides; nothing leaks into the next preview. ## Deleting preview environments Click the trash icon on any row in the preview environments list. Skyhook opens a PR removing the overlay from the deployment repo; ArgoCD prunes the namespace and all resources on sync. Ephemeral namespaces are deleted along with the environment — there's no risk of leaving an orphaned namespace behind (unlike static environments, which preserve their namespace on removal). ## Troubleshooting The most common cause is a missing or broken `deploy/overlays/ephemeral` overlay in your deployment repository. Open the cluster's ArgoCD UI from the Addons page and check the application's sync status. You can also review the pull request Skyhook opened to see the generated manifests before merging. The list filters to ephemeral environments only. If a static environment is showing here, it was likely created via the API or an older version of Skyhook without the ephemeral marker. Delete and recreate it via the **Add** form to get it properly marked. Automatic teardown of stale preview environments is on the roadmap. For now, use a scheduled workflow to delete previews older than a certain age with zero deployed services. ## Further Reading * [Preview Environments: A Game-Changer for Testing and Collaboration](https://www.skyhook.io/blog/preview-environments-a-game-changer-for-testing-and-collaboration) - why preview environments transform development workflows # Static Environments Source: https://docs.skyhook.io/application/environments/static Long-lived environments like dev, staging, and prod used by the whole team for structured development and production workflows. Static environments are the **long-lived** environments a team shares for structured workflows — the typical `dev`, `staging`, `prod` trio, plus any regional, customer-specific, or role-specific environments you add. The distinction between static and [preview](/application/environments/preview) environments is whether they're meant to stick around: | | Static | Preview | | ------------------------ | ---------------------- | --------------------------- | | **Lifetime** | Persistent | Ephemeral | | **Overlay** | Base + per-env patches | `deploy/overlays/ephemeral` | | **Readiness monitoring** | Tracked | Excluded | | **Global AutoDeploy** | Supported | Not applicable | | **Namespace on delete** | Preserved | Removed | Both types are managed from the [Environments](/application/environments/overview) page — they show up in the same table and use the same create/edit/delete flows. ## Creating static environments See the main [Environments overview](/application/environments/overview#creating-an-environment) for the create dialog walkthrough, including: * Cluster and namespace selection * Labels for grouping and filtering * Cloning deployment configuration from a source environment (strategy, resources, autoscaling, health checks, ArgoCD config) ## Common static environment setups **Single cluster, multiple environments by namespace** — the classic: one cluster with `dev`, `qa`, `staging`, `prod` namespaces. Simple, cheap, good for small teams. Enable **environment name prefix** if you want to collapse this further into a single namespace. **Per-environment cluster** — each environment gets its own cluster. Better isolation, higher cost. Common for regulated workloads where prod must be on a separate network. **Regional fleet** — multiple regional environments (`us-east`, `eu-west`, `ap-southeast`) deployed to regional clusters. Use [labels](/application/environments/overview#labels-and-label-based-deployments) to deploy to all of them at once (e.g. `region:prod` label on every production regional environment). **Customer-specific** — per-customer environments, each with its own cluster or namespace, labeled by customer. Label-based deployments let you roll out to every customer or a specific customer cohort. ## Deploying to a static environment Clicking a static environment in the sidebar opens the environment deployment page — the same page used for preview environments. See [Deploying Services](/application/services/deploy) for the deploy flow. ## Production readiness and static environments [Production Readiness Checks](/application/production-readiness/overview) only apply to static environments. When enabling readiness for a service, ephemeral environments are filtered out of the selection dialog — readiness scores wouldn't be meaningful on a 24-hour preview anyway. ## Best practices * **Clear naming** — stick to lowercase-and-hyphens (`dev`, `staging`, `prod-us-east`) so names work as Kubernetes namespaces and DNS labels without mangling. * **Labels over sprawl** — as the fleet grows, consistent labels (`region:us-east`, `role:prod`, `team:payments`) save you from writing per-environment rules. * **Clone when adding siblings** — cloning deployment strategy, resources, autoscaling, and health checks keeps new environments consistent with existing prod-like environments without retyping. * **AutoDeploy on dev, not prod** — enable AutoDeploy on `dev` so every commit lands automatically. Keep `staging` and `prod` manual (or gated through PR reviews) so rollouts are deliberate. # Argo Workflows Source: https://docs.skyhook.io/application/jobs/argo-workflows Argo Workflows in Skyhook provide workflow orchestration for multi-step batch processes. Built on [Argo Workflows](https://argo-workflows.readthedocs.io/), they enable you to model workflows as sequences of steps or directed acyclic graphs (DAGs), with support for parameters, artifact passing, conditional logic, and advanced retry strategies. Use Argo Workflows when you need to coordinate multiple steps with dependencies, pass data between steps, or reuse workflow templates with different parameters - regardless of whether each individual step is simple or complex. ## Workflow Types Skyhook supports two Argo workflow types: **Multi-step orchestration** Workflows with multiple steps, dependencies, and data flow. Best for ETL pipelines, ML training, and processes requiring step coordination. **Scheduled orchestration** Recurring multi-step workflows with cron scheduling. Best for periodic data pipelines and processes with coordinated stages. ### Argo Workflow One-time multi-step workflows perfect for ETL pipelines, ML training, and complex data processing. **What Skyhook provides:** * Template deployment through UI * Parameter management and execution * Real-time monitoring with Argo UI integration * Step-by-step logs and status tracking [Learn more about Argo Workflows →](https://argo-workflows.readthedocs.io/en/latest/walk-through/) ### Argo CronWorkflow Scheduled multi-step workflows that combine Argo's orchestration with cron scheduling. **What Skyhook provides:** * Common Argo Workflow features + cron scheduling in the UI * Timezone-aware schedule configuration * Manual execution outside schedule ("Execute Now" button) * Parameter support for each execution [Learn more about Argo CronWorkflows →](https://argo-workflows.readthedocs.io/en/latest/cron-workflows/) ## Template-Based Architecture Argo workflows use a template/instance model optimized for reusability. The **WorkflowTemplate** (reusable definition) is stored in Git and deployed to your cluster. Each execution creates a **Workflow instance** dynamically at runtime. These instances are ephemeral and cleaned up based on TTL settings. **Execution flow:** ```mermaid theme={"system"} graph LR A[Click Execute in UI] --> B[GitHub Actions Workflow] B --> C[Workflow Instance Created] C --> D[Pods Execute Steps] ``` ### Repository Structure Your workflow lives in Git with Kustomize-based structure for environment-specific overrides: ``` my-workflow/ ├── base/ │ ├── argo-workflowtemplate.yaml # Reusable workflow definition │ └── kustomization.yaml │ └── overlays/ ├── dev/ │ ├── kustomization.yaml │ ├── argo-workflowtemplate-patch.yaml # Dev template overrides │ └── .env │ ├── staging/ │ ├── kustomization.yaml │ ├── argo-workflowtemplate-patch.yaml # Staging template overrides │ └── .env │ └── prod/ ├── kustomization.yaml ├── argo-workflowtemplate-patch.yaml # Prod template overrides └── .env ``` ### WorkflowTemplate Example The `WorkflowTemplate` in the base directory defines reusable workflow logic: ```yaml theme={"system"} apiVersion: argoproj.io/v1alpha1 kind: WorkflowTemplate metadata: name: data-processing-template namespace: default labels: app: data-processing spec: entrypoint: main arguments: parameters: - name: input-file value: "default-input.csv" - name: batch-size value: "1000" templates: - name: main container: image: my-registry/data-processor:latest command: ["python", "process.py"] args: - "--input={{workflow.parameters.input-file}}" - "--batch={{workflow.parameters.batch-size}}" resources: requests: cpu: "1" memory: "2Gi" limits: cpu: "2" memory: "4Gi" ``` [Learn more about WorkflowTemplates →](https://argo-workflows.readthedocs.io/en/latest/workflow-templates/) ### Environment-Specific Patches Each environment can override settings using Kustomize patches: **Development** (`overlays/dev/argo-workflowtemplate-patch.yaml`): ```yaml theme={"system"} apiVersion: argoproj.io/v1alpha1 kind: WorkflowTemplate metadata: name: data-processing-template spec: templates: - name: main container: resources: requests: cpu: "500m" memory: "1Gi" env: - name: LOG_LEVEL value: "debug" ``` **Production** (`overlays/prod/argo-workflowtemplate-patch.yaml`): ```yaml theme={"system"} apiVersion: argoproj.io/v1alpha1 kind: WorkflowTemplate metadata: name: data-processing-template spec: templates: - name: main container: resources: requests: cpu: "4" memory: "8Gi" env: - name: LOG_LEVEL value: "warning" ``` ### Workflow Instance Creation When you execute a workflow from the Skyhook UI: 1. GitHub Actions workflow (`execute_job.yml`) is triggered 2. Workflow authenticates with your cluster 3. Uses `argo submit` CLI command to create a Workflow instance 4. Passes parameters you provided in the execution dialog 5. Workflow executes in your cluster **Example Argo CLI command:** ```bash theme={"system"} argo submit --from workflowtemplate/data-processing-template \ -p input-file="prod-data-2024-01-15.csv" \ -p batch-size="5000" \ --name data-processing-20240115 ``` **Benefits:** * Template defined once, executed many times with different parameters * Environment-specific overrides without duplicating workflow logic * Clean Git history (only templates tracked, not ephemeral instances) ## Creating a Workflow ### 1. Access the Job Creation Form 1. Navigate to **Jobs** in the Skyhook UI 2. Click **Create New Job** 3. Select **Argo Workflow** or **Argo CronWorkflow** as job type Job Creation Form ### 2. Basic Details Same as Kubernetes Jobs - configure name, description, container registry, and repository. ### 3. Job Type Selection Choose **Argo Workflow** (one-time) or **Argo CronWorkflow** (scheduled). For CronWorkflow, configure: * **Cron Schedule** - Standard cron expression * **Timezone** - IANA timezone for accurate scheduling * **Concurrency Policy** - How to handle overlapping runs ### 4. Add Environments Configure where your workflow will run (dev, staging, prod). **Repository Configuration:** Like Kubernetes Jobs, Argo Workflows support [multiple jobs in one repository](/application/repository/monorepos) and [flexible deployment repository options](/application/repository/deployment-repositories). See the Kubernetes Jobs documentation for detailed repository configuration options. ### 5. Configure Parameters (Optional) After creating the workflow, go to the **Settings** tab to define parameters under **Workflow Parameters**: Each parameter has: * **Name** - Identifier used in your workflow (e.g., `input-file`, `batch-size`) * **Default Value** - Used if not overridden at execution time * **Description** - Help text displayed to users in the Execute dialog Parameters are referenced in your workflow YAML using `{{workflow.parameters.parameter-name}}` syntax. When users execute the workflow, they can override default values via the execution dialog. ## Executing Workflows

Template deployment + parameterized execution

Argo Workflows separate template deployment from workflow execution: **1. Deploy Template First** (one-time setup, or when workflow logic changes) 1. Click **Deploy Template** 2. Select deployment options (build new or deploy existing) 3. Choose Git references 4. Deploy to environment This installs/updates the WorkflowTemplate in your cluster. **2. Execute Workflow** (run the workflow with specific parameters) 1. Click **Execute Workflow** 2. Execution dialog appears with: * **Environment** - Select where to execute * **Parameters** - Fill in parameter values (if defined) 3. Review parameter values 4. Click **Execute** This creates a Workflow instance from the template. Execute Workflow Dialog **What happens:** * Workflow instance created from template * Parameters injected into workflow * Workflow orchestrator executes steps in sequence * Each step creates pods as needed * Workflow tracks progress through completion

Scheduled workflows with parameters

Combines scheduled execution with parameterized workflows. **Scheduled Execution (Automatic):** * Runs automatically on cron schedule * Uses default parameter values from template * Creates workflow instance at scheduled time **Manual Execution:** 1. Click **Execute Now** 2. Select environment 3. Provide parameter values (if defined) 4. Click **Execute** **What happens:** * Same as Argo Workflow execution * Does not affect next scheduled run * Custom parameters only apply to this execution
## Monitoring Workflows ### Executions Tab Job Executions Tab **What you see:** * List of all workflow instances * Status (Pending/Running/Succeeded/Failed) * Start time, completion time, duration * Environment where workflow ran | Status | Description | Indicates | | --------------- | ------------------------------------ | ------------------------ | | 🟡 **Pending** | Workflow created but not yet running | Waiting to start | | 🔵 **Running** | Workflow currently executing | Steps are running | | ✅ **Succeeded** | Workflow completed successfully | All steps succeeded | | ❌ **Failed** | Workflow did not complete | One or more steps failed | ### Workflow Details Execution details show: Argo Workflow Execution Details **Workflow Phase:** * Overall workflow status **Node Information:** * Total nodes (steps) in workflow * Completed nodes * Current executing node * Failed nodes (if any) **Step Progress:** * Visual representation of workflow steps * Individual step status * Step dependencies and execution order * Time spent per step **Workflow Specifications:** * Workflow template used * Parameters provided * Service account * Execution limits **Actions:** * View individual step logs * Inspect step containers * Access Argo UI for detailed visualization ### Argo UI Integration For advanced visualization, access the Argo Workflows UI: 1. Click on a workflow execution 2. Click **View in Argo UI** link 3. Opens Argo Workflows dashboard **Argo UI features:** * Graphical workflow visualization * DAG (Directed Acyclic Graph) view * Step-by-step execution timeline * Artifact browser * Advanced debugging tools ### Viewing Logs **Access Step Logs:** 1. Click on a workflow execution 2. Select specific step/container 3. Click **View Logs** 4. See logs for that step ## Advanced Configuration Advanced Argo Workflow configuration options using WorkflowTemplate YAML. Define parameters that can be passed at execution time. **In WorkflowTemplate:** ```yaml theme={"system"} spec: arguments: parameters: - name: input-file value: "default.csv" - name: batch-size value: "1000" - name: environment value: "dev" ``` **Use in templates:** ```yaml theme={"system"} templates: - name: process container: args: - "--input={{workflow.parameters.input-file}}" - "--batch={{workflow.parameters.batch-size}}" - "--env={{workflow.parameters.environment}}" ``` **Override at execution** via the Skyhook UI when you click "Execute Workflow" - you'll be prompted to provide values for each parameter. Configure automatic retry behavior for failed steps. **Exponential Backoff (Recommended):** ```yaml theme={"system"} templates: - name: flaky-step retryStrategy: limit: "3" retryPolicy: "OnFailure" backoff: duration: "30s" factor: "2" maxDuration: "5m" ``` **Fixed Delay:** ```yaml theme={"system"} retryStrategy: limit: "3" backoff: duration: "30s" factor: "1" ``` **Immediate Retry:** ```yaml theme={"system"} retryStrategy: limit: "3" retryPolicy: "Always" # No backoff = immediate ``` **Good candidates for retries:** * Network operations (API calls, database connections) * External service dependencies * Transient infrastructure issues * Resource contention scenarios **Poor candidates for retries:** * Logic errors in code * Missing required files or data * Authentication failures * Resource exhaustion (will keep failing) Automatically clean up completed workflows. **Clean up all workflows after 1 hour:** ```yaml theme={"system"} spec: ttlStrategy: secondsAfterCompletion: 3600 ``` **Different TTL for success vs failure:** ```yaml theme={"system"} spec: ttlStrategy: secondsAfterSuccess: 3600 # 1 hour for successful secondsAfterFailure: 86400 # 24 hours for failed (debugging) ``` **Recommended TTL values:** * Development: 1-6 hours * Staging: 6-24 hours * Production: 24-72 hours (keep longer for audit) Control when workflow pods are deleted. **Delete pods when workflow completes:** ```yaml theme={"system"} spec: podGC: strategy: OnWorkflowCompletion ``` **Delete pods only on success:** ```yaml theme={"system"} spec: podGC: strategy: OnWorkflowSuccess # Failed workflow pods retained for debugging ``` **Delete each pod when it completes:** ```yaml theme={"system"} spec: podGC: strategy: OnPodCompletion # Minimizes resource usage ``` **Never delete pods automatically:** ```yaml theme={"system"} spec: podGC: strategy: Never # Manual cleanup required ``` Configure CPU and memory for workflow steps. **Per-template resources:** ```yaml theme={"system"} templates: - name: process-data container: resources: requests: cpu: "2" memory: "4Gi" limits: cpu: "4" memory: "8Gi" ``` **Template defaults (apply to all steps):** ```yaml theme={"system"} spec: templateDefaults: container: resources: requests: cpu: "1" memory: "2Gi" limits: cpu: "2" memory: "4Gi" ``` **GPU resources:** ```yaml theme={"system"} resources: limits: nvidia.com/gpu: "1" ``` Set time limits for workflow execution. **Active deadline (workflow timeout):** ```yaml theme={"system"} spec: activeDeadlineSeconds: 3600 # 1 hour max ``` **Per-step timeout:** ```yaml theme={"system"} templates: - name: api-call container: image: my-app:v1 activeDeadlineSeconds: 300 # 5 minutes ``` **Recommended limits:** * API calls: 5-15 minutes * Data processing: 30-60 minutes * ML training: 2-6 hours * ETL pipelines: 2-12 hours Execute steps sequentially. ```yaml theme={"system"} templates: - name: multi-step-workflow steps: - - name: fetch-data template: fetch - - name: process-data template: process arguments: parameters: - name: input value: "{{steps.fetch-data.outputs.result}}" - - name: upload-results template: upload ``` [Learn more about Steps →](https://argo-workflows.readthedocs.io/en/latest/walk-through/steps/) Execute steps in parallel with dependencies. ```yaml theme={"system"} templates: - name: dag-workflow dag: tasks: - name: fetch-data template: fetch - name: process-a dependencies: [fetch-data] template: process arguments: parameters: - name: type value: "A" - name: process-b dependencies: [fetch-data] template: process arguments: parameters: - name: type value: "B" - name: combine dependencies: [process-a, process-b] template: combine ``` [Learn more about DAGs →](https://argo-workflows.readthedocs.io/en/latest/walk-through/dag/) Configure environment variables for workflow steps. **Static env vars:** ```yaml theme={"system"} templates: - name: process container: env: - name: LOG_LEVEL value: "info" - name: ENVIRONMENT value: "production" ``` **From parameters:** ```yaml theme={"system"} env: - name: INPUT_FILE value: "{{workflow.parameters.input-file}}" ``` **From secrets:** ```yaml theme={"system"} env: - name: API_KEY valueFrom: secretKeyRef: name: my-secrets key: api-key ``` **From ConfigMaps:** ```yaml theme={"system"} env: - name: CONFIG valueFrom: configMapKeyRef: name: my-config key: config.json ``` Control where workflow pods run. **Node selector:** ```yaml theme={"system"} templates: - name: gpu-task nodeSelector: gpu: "true" instance-type: "g4dn.xlarge" ``` **Tolerations:** ```yaml theme={"system"} tolerations: - key: "special" operator: "Equal" value: "true" effect: "NoSchedule" ``` **Affinity:** ```yaml theme={"system"} affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: gpu operator: In values: - "true" ``` ## Best Practices **Workflow Design:** * Keep each step focused on a single responsibility * Use DAGs for parallelizable work * Set appropriate timeouts and retries per step * Pass data between steps via parameters or artifacts **Parameters & Resource Management:** * Provide clear parameter descriptions with sensible defaults * Validate parameter values in your code * Set realistic resource requests/limits based on actual usage * Use larger resources in production than development * Enable TTL cleanup to prevent workflow accumulation **Security:** * Always use secrets for sensitive data (API keys, credentials) * Rotate secrets regularly * Use different secrets per environment * Never hardcode credentials in workflow definitions # Kubernetes Jobs Source: https://docs.skyhook.io/application/jobs/kubernetes-jobs Kubernetes Jobs in Skyhook handle one-time and scheduled batch workloads using native Kubernetes Job and CronJob resources. They're ideal for standalone, single-container tasks that run to completion without requiring multi-step orchestration or dependencies between steps. ## Job Types Skyhook supports two Kubernetes job types: **One-time execution** Single-container tasks that run once and exit. Best for standalone operations like migrations, data imports, and one-off scripts. **Scheduled tasks** Recurring single-container jobs on cron schedule with timezone support. Best for backups, cleanups, and regular maintenance. ### Kubernetes Job **Key features:** * **Deploy & Run** - Single button that deploys job manifest and triggers immediate execution * **Built-in retry mechanisms** - Automatic pod restart on failure * **Automatic resource cleanup** - TTL-based pod cleanup after completion * **Pod parallelism** - Run multiple pods concurrently for the same job * **Completion tracking** - Kubernetes tracks job completion status ### Kubernetes CronJob **Key features:** * **Cron schedule syntax** - Standard cron expressions (e.g., `0 2 * * *` for daily at 2 AM) * **Timezone support** - Schedule in local timezone, not just UTC * **Concurrency policies** - Prevent overlapping runs (Allow, Forbid, Replace) * **Job history retention** - Configure how many completed jobs to keep * **Manual trigger** - Execute immediately outside schedule with "Run Now" ## Creating a Job ### 1. Access the Job Creation Form 1. Navigate to **Jobs** in the Skyhook UI 2. Click **Create New Job** 3. The job creation form appears with multiple configuration sections Job Creation Form ### 2. Basic Details Configure your job's fundamental properties: **Job Name** * Must be lowercase with no spaces * Use hyphens for multi-word names (e.g., `daily-data-sync`) * Must be unique within your organization **Description** (optional) * Brief explanation of the job's purpose * Helps team members understand the job's function **Container Registry** * Select where your Docker images will be stored * Supports ECR, GCR, GHCR, Docker Hub, and custom registries * Format varies by provider: * **AWS ECR**: `123456789.dkr.ecr.us-east-1.amazonaws.com` * **GCP Artifact Registry**: `us-docker.pkg.dev/project-id/repository` * **GHCR**: `ghcr.io/organization` ### 3. Repository Configuration Choose how to set up your job's code repository: **Option A: Create New Repository** * Skyhook creates a new Git repository for your job * Initializes with basic job structure * Best for brand new jobs **Option B: Use Existing Repository (Multiple Jobs/Services)** * Add job to an existing repository with multiple jobs or services * Specify the path within the repository (e.g., `/jobs/my-job`) * Share code and infrastructure with other jobs/services * [Learn more about Multiple Services in One Repository](/application/repository/monorepos) **Option C: Import Existing Repository** * Connect an existing repository containing job code * Provide repository URL and path * Skyhook configures CI/CD for the existing code **Deployment Repository:** You'll also choose where to store Kubernetes manifests and deployment configuration: * **Keep in job repository** - Deployment files alongside code (simpler) * **Create separate deployment repository** - Dedicated repo for configs * **Use existing deployment repository** - Add to centralized deployment repo [Learn more about Deployment Repository Options](/application/repository/deployment-repositories) ### 4. Select Job Type Choose between Kubernetes Job (one-time), Kubernetes CronJob (scheduled), [Argo Workflow](/application/jobs/argo-workflows), or [Argo CronWorkflow](/application/jobs/argo-workflows). The dropdown displays each job type with a description to help you choose the right option for your use case. ### 5. Cron Configuration (CronJob only) When you select CronJob, additional scheduling options appear: Cron Configuration Options **Cron Schedule** (required) * Standard 5-field cron expression: `minute hour day month weekday` * Examples: * `0 2 * * *` - Every day at 2:00 AM * `0 */6 * * *` - Every 6 hours * `0 0 * * 0` - Every Sunday at midnight * `30 14 1 * *` - At 2:30 PM on the first day of each month * Shortcuts: * `@hourly` - Run every hour * `@daily` or `@midnight` - Run daily at midnight * `@weekly` - Run weekly on Sunday at midnight * `@monthly` - Run monthly on the first at midnight **Timezone** (optional, defaults to UTC) * Select from searchable dropdown of all IANA timezones * UI displays current UTC offset for each timezone (e.g., `America/New_York (GMT-5)`) * Ensures schedule runs at the correct local time regardless of DST changes **Concurrency Policy** (optional, defaults to Allow) * **Allow** - Allow concurrent executions (jobs can overlap) * **Forbid** - Skip new run if previous is still running * **Replace** - Cancel previous run and start new one **Starting Deadline Seconds** (optional) * Maximum seconds to start a missed job * If job misses its schedule and this deadline passes, skip it * Useful for preventing backlog of missed jobs **Successful Jobs History Limit** (optional, default 30) * Number of successful job pods to retain * Older successful jobs are automatically cleaned up * Recommended: 3-30 depending on debugging needs **Failed Jobs History Limit** (optional, default 30) * Number of failed job pods to retain * Keep failed jobs longer for debugging * Recommended: 1-30 depending on failure frequency ### 6. Add Environments Configure where your job will run: 1. Click **Add Environment** 2. For each environment, provide: * **Name** - Environment identifier (dev, staging, prod, etc.) * **Namespace** - Kubernetes namespace (must exist in cluster) * **Cluster** - Select from available clusters in your organization 3. Add multiple environments as needed ### 7. Submit and Create 1. Review all configuration 2. Click **Create Job** 3. Skyhook creates the job and redirects to the job detail page ## Executing Jobs

Deploy & Run in one action

Kubernetes Jobs combine deployment and execution in a single action. **To execute:** 1. Navigate to your job's detail page 2. Click **Deploy & Run** 3. Configure deployment options: * Build new image or deploy existing image * Select Git code reference (branch, tag, commit) * Choose config reference for Kubernetes manifests * Pick target environment 4. Review deployment summary 5. Click **Deploy** **What happens:** * GitHub Actions workflow builds image (if needed) * Deploys job manifest to cluster * Job immediately creates pod(s) and starts execution * Job runs to completion * Pod cleanup after TTL expiration **Execution tracking:** * View workflow progress via GitHub Actions link * Monitor job status on Executions tab * Check pod logs once running

Automatic + manual execution

CronJobs execute automatically on schedule but can also be triggered manually. **Scheduled Execution (Automatic):** * Runs automatically based on configured cron schedule * Creates new job instance at each scheduled time * Timezone-aware scheduling * No manual action required **Manual Execution:** 1. Navigate to job's detail page 2. Click **Run Now** 3. Select target environment 4. Click **Execute** **What happens:** * CronJob controller creates a new Job instance * Job executes immediately (outside of schedule) * Does not affect next scheduled run * Tracked separately in execution history **Concurrency behavior:** * **Allow** - New execution starts even if previous still running * **Forbid** - Skips execution if previous job still running * **Replace** - Cancels previous job and starts new one
## Monitoring Executions ### Executions Tab The Executions tab provides a comprehensive view of all job runs. **Access:** 1. Navigate to job detail page 2. Click **Executions** tab Job Executions Tab **What you see:** * List of all job instances/executions * Status for each execution (Running, Succeeded, Failed, Pending) * Start time, completion time, duration * Environment where job ran * Filter and search capabilities **Filters:** * By environment (dev, staging, prod) * By status (succeeded, failed, running) * By job name (search/filter) * Date range (recent executions) ### Execution Status Jobs display different statuses throughout their lifecycle: | Status | Description | Indicates | | --------------- | --------------------------------- | ----------------------------------- | | 🟡 **Pending** | Job created but not yet running | Waiting for resources or schedule | | 🔵 **Running** | Job currently executing | Pods are active and processing | | ✅ **Succeeded** | Job completed successfully | All pods finished with exit code 0 | | ❌ **Failed** | Job did not complete successfully | Pods failed or retry limit exceeded | | ⚪ **Unknown** | Status cannot be determined | Possible connectivity issues | ### Job Details Execution details show: **Pod Information:** * **Active Pods** - Currently running * **Succeeded Pods** - Completed successfully * **Failed Pods** - Terminated with errors **Job Specifications:** * Completions required * Parallelism (concurrent pods) * Restart policy * Active deadline **Timing:** * Start time * Completion time (when finished) * Duration (total execution time) **Actions:** * View pod logs * Inspect pod details * Download logs ### Viewing Logs **Access Pod Logs:** 1. Click on a job execution in the list 2. Expand pod details 3. Click **View Logs** 4. Logs display in real-time ## Managing Your Job The job detail page provides everything you need to manage your job through the Skyhook UI: **General Tab** * View basic details and cron schedule (for CronJobs) * See next run time and recent execution history * Quick status overview with badges **Environments Tab** * Add, edit, or remove environments * Update cluster and namespace assignments * Environment-specific configuration **Env Vars & Secrets Tab** * Set global variables (shared across all environments) * Configure environment-specific variables * Manage encrypted secrets (integrated with Sealed Secrets) **Settings Tab** * Update execution settings (active deadline, retry strategy) * Configure resource limits (CPU, memory) * Adjust history retention limits (for CronJobs) For advanced users, Skyhook uses Kustomize to manage job configurations. Jobs are stored in Git with environment-specific overrides: ``` my-job/ ├── base/ │ ├── job.yaml # Job or CronJob definition │ └── kustomization.yaml │ └── overlays/ ├── dev/ │ ├── kustomization.yaml │ ├── job-patch.yaml # Dev-specific overrides │ └── .env │ └── prod/ ├── kustomization.yaml ├── job-patch.yaml # Prod-specific overrides └── .env ``` **Base configuration** defines the core job specification (container image, command, resources). **Environment overlays** provide environment-specific customizations (different resources, schedules, env vars per environment). You can edit these files directly in your Git repository for advanced configuration not available in the UI. ## Common Tasks 1. Go to **Settings** tab 2. Update cron schedule expression 3. Optionally update timezone 4. Click **Save** 5. Deploy changes to environments 1. Navigate to **Env Vars & Secrets** tab 2. Click **Add** 3. Choose variable type (global, environment-specific, or secret) 4. Enter key and value 5. Click **Save** 6. Redeploy job to apply 1. Go to **Settings** → **Execution** section 2. Update CPU or memory limits 3. Click **Save** 4. Redeploy to environment UI support for pausing CronJobs is coming soon. For now, use kubectl: ```bash theme={"system"} kubectl patch cronjob my-job -n namespace -p '{"spec":{"suspend":true}}' ``` To resume, set `suspend` to `false`. ## Best Practices **Scheduling (for CronJobs):** * Use timezone-aware schedules to avoid DST issues * Use **Forbid** concurrency policy for jobs that shouldn't overlap * Adjust history limits from defaults (30 each) based on debugging needs and storage capacity * Test cron expressions before deploying: [crontab.guru](https://crontab.guru) **Resource Management:** * Set active deadlines to prevent runaway jobs * Configure resource limits based on actual usage * Use more resources in production than dev * Monitor execution duration trends and adjust **Security:** * Always use secrets (not env vars) for sensitive data * Rotate secrets regularly * Use different secrets per environment * Never hardcode credentials in code or manifests # Jobs Overview Source: https://docs.skyhook.io/application/jobs/overview Jobs in Skyhook are batch processing workloads that run to completion, unlike Services which run continuously. Jobs are perfect for one-time operations, scheduled tasks, and complex multi-step workflows. ## What are Jobs? Jobs handle workloads that: * Execute once and terminate when complete * Run on a schedule (hourly, daily, weekly, etc.) * Process data in batches * Require orchestration of multiple steps **Common use cases:** * **ETL Pipelines** - Extract, transform, and load data between systems * **Data Processing** - Batch processing of files, reports, or analytics * **Database Operations** - Migrations, backups, cleanup tasks * **Scheduled Maintenance** - Cache warming, data archival, log rotation * **Workflow Orchestration** - Complex multi-step processes with dependencies * **Report Generation** - Periodic business reports or exports ## Job Types Skyhook supports four job types to fit different execution patterns: **One-time execution** Single-container tasks that run once and exit. Best for standalone operations like migrations, data imports, and one-off scripts. **Scheduled tasks** Recurring single-container jobs on cron schedule with timezone support. Best for backups, cleanups, and regular maintenance. **Multi-step orchestration** Workflows with multiple steps, dependencies, and data flow between steps. Best for ETL pipelines, ML training, and processes requiring step coordination. **Scheduled orchestration** Recurring multi-step workflows with cron scheduling. Best for periodic data pipelines and processes with multiple coordinated stages. ## Kubernetes Jobs vs Argo Workflows **Choose Kubernetes Jobs when:** * You have a standalone task with no step dependencies * A single container can do all the work * You don't need to pass data between multiple steps * You want immediate execution on deployment (for Jobs) or simple cron scheduling (for CronJobs) **Choose Argo Workflows when:** * You need to coordinate multiple steps with dependencies * You want to pass artifacts or data between steps * You need conditional logic, branching, or loops * You want to reuse a workflow template with different parameters * You need better observability with step-by-step tracking and DAG visualization * You want suspend/resume capabilities for manual approvals ## Choose Your Path Select the guide that matches your job type: **Single-container execution** Complete guide to Kubernetes Job and CronJob - creating, executing, monitoring, and configuring standalone batch tasks. **Multi-step orchestration** Complete guide to Argo Workflow and CronWorkflow - template architecture, parameters, step dependencies, artifact passing, and advanced configuration. ## Key Features **GitOps-Based Configuration** * All job definitions stored in Git with Kustomize structure * Version control, code review, and audit trail for all changes * Environment-specific overrides (schedules, resources, parameters) **Flexible Execution Control** * Configure retry strategies, execution limits, and TTL cleanup * Set concurrency policies to prevent overlapping runs * Customize resource allocation (CPU, memory, GPU) per environment **Unified Management** * Single UI for all job types (Kubernetes Jobs, CronJobs, Argo Workflows) * Deploy templates, execute with parameters, monitor status * Integrated logging and execution history tracking ## Getting Started Jobs use the same create/import wizard as services, with one extra step where you pick the job type. See [Create and Import Services](/application/services/create-import) for the full wizard walkthrough — everything there applies to jobs too. From the **Home** dashboard or the Jobs list, click **New Job**. Pick an existing repository (import an existing codebase) or create a new one from a template. Skyhook auto-detects the Dockerfile, container port, and framework just like the service wizard. Confirm the Dockerfile path, container registry, and deployment repository (same repo as job, or a separate GitOps repo). Pick one of: * **Kubernetes Job** — single-container one-time task * **Kubernetes CronJob** — single-container scheduled task, with cron expression and timezone * **Argo Workflow** — multi-step workflow with orchestration * **Argo CronWorkflow** — scheduled multi-step workflow Pick which environments the job should be deployed to. Multi-step workflows can have different cluster assignments per environment. Skyhook opens the required pull requests and walks you through merging them, the same way as for services. ## Managing existing jobs Once a job exists, you can manage it from the Jobs list: * **View recent runs** — the Jobs list shows the latest execution status for each job * **Trigger manually** — kick off a run outside the cron schedule from the job detail page * **Edit configuration** — use the job's settings tabs for cron schedule, resource limits, environment variables, and secrets * **Delete** — remove a job from Skyhook; you'll be asked to confirm before the deletion pull request is opened ### Notifications Job execution notifications are configured per organization in **Settings → Notifications**. You can send notifications to Slack, email, or webhooks on events like: * Job failure * Job success (if you want to know about every run) * Schedule drift (a scheduled run was skipped or delayed) * Long-running jobs that exceed expected duration Notifications apply across all jobs in the org; per-job overrides aren't supported today. ### Deleting a job Click **Delete** on the job's settings page. Skyhook opens a pull request that removes the job's manifests from your GitOps repository. After merge, ArgoCD prunes the Job / CronJob / Workflow resources from your clusters. Deletion does not remove historical execution data or logs retained elsewhere. ## Next Steps * [Kubernetes Jobs](/application/jobs/kubernetes-jobs) — complete guide to Kubernetes Job and CronJob * [Argo Workflows](/application/jobs/argo-workflows) — complete guide to Argo Workflow and CronWorkflow # Production Readiness Source: https://docs.skyhook.io/application/production-readiness/overview Evaluate services against an organization-wide checklist of reliability, security, and best-practice checks before they go live. Production Readiness lets your organization define a shared checklist of standards — probes, resource limits, security context, disruption budgets, and anything else you want to enforce — then scores every service against that checklist per environment. The feature is designed to answer one question: **is this service actually ready for production?** Readiness is evaluated at two levels: * **Organization-wide** (Settings → Production Readiness) — enable the feature, configure which checks apply, add custom checks, and see an aggregate score distribution across all services. * **Per-service** (service → Production Readiness tab) — see the service's score, what's failing, and how to fix it, with a breakdown by category. ## Enabling Production Readiness Readiness is off by default. An org owner enables it by selecting which environments and services to monitor. Navigate to **Settings > Production Readiness**. If readiness hasn't been enabled yet, you'll see an **Enable Production Readiness** card. Click **Get Started** to open the Environment Selection dialog. * Pick one or more environments to monitor. **Ephemeral (preview) environments are filtered out** — readiness only applies to static environments. * For each environment, either toggle **Select all services** or pick specific services. Click **Enable** to activate readiness checks for the selected service/environment pairs. Scores start populating as Skyhook evaluates each service. Once enabled, the settings page shows an **Add Environments** button in the top-right to extend coverage to additional environments or services. Existing selections are pre-populated so you only add what's new. ## Organization overview The settings page gives you a top-level view of readiness across your org: * **Org Score** — a weighted average of all evaluated services, shown as a large percentage with a visual score ring. * **Service compliance distribution** — how many services fall into each bucket: * **Excellent** (80–100%) — green * **Good** (60–79%) — amber * **Needs Work** (\< 60%) — red * **Unconfigured** — services with no checks enabled or with evaluation errors * **Checklist table** — every check in your org, with filters for category, importance, and recommended-only, plus a search box. Toggle checks on/off here without touching individual services. ## Per-service view Each service has a **Production Readiness** tab that shows how it's doing in a selected environment. Service production readiness tab showing 50% score, Passing 6, Failing 1, Warnings 3, N/A 2 counts, and the Issues Requiring Attention section with critical and medium priority items ### Score card * **Score** — 0–100, computed from passing checks weighted by importance. Labeled as **Excellent**, **Good**, **Fair**, or **Needs Work**. * **Environment selector** — switch between monitored environments for this service. * **Status counts** — how many checks are **PASSING**, **FAILING**, in **WARNING** state, or **N/A** (not applicable to this workload). ### Issues Requiring Attention Surfaces failing and warning checks grouped by importance — **Critical**, **High**, **Medium**, **Low** — so you fix the most important things first. Each item shows: * The check title and description * A **Docs** link to the relevant documentation * A **Fix** action where Skyhook knows how to resolve the issue — this often deep-links into the deployment configuration with the right field highlighted ### All Checks A category-grouped accordion showing every check that applies to the service. Each category (e.g. Reliability, Performance & Testing, Security, Best Practices, Custom Checks) shows a pass rate and count. All Checks section showing category groups - Custom Checks, Reliability, Performance & Testing, Best Practices, Security - each with a pass rate percentage Expanding a category reveals each individual check with its status icon, importance tag, and action buttons. Expanded Reliability category showing Readiness Probe Configured as Critical failing, Liveness Probe Configured as Critical passing, Multiple Replicas as High passing, and Pod Disruption Budget as Medium passing ### Status reference | Status | Meaning | | ----------- | ---------------------------------------------------------------------------------------- | | **Passing** | Check succeeded | | **Failing** | Check failed — counts against the score | | **Warning** | Check succeeded with caveats | | **N/A** | Check doesn't apply to this workload (for example, a stateful-set check on a deployment) | ## Custom checks Beyond the built-in checklist, organizations can author **custom checks** that match their own standards. Custom checks appear alongside the built-in ones in the service view and count toward the score. On the **Settings > Production Readiness** page, click **Configure Checks** and then **Create Custom Check** (top-right of the checklist table). Fill in: * **Name** and **Description** — what the check represents * **Importance** — Critical, High, Medium, or Low (drives sort order and weight) * **Apply to** — **All services** or **Select services** (picks specific services) * **Recommended** — flag the check as a recommended best practice * **Initial status** — what to report before anyone resolves it (defaults to **N/A**) * **Failure reason** — text shown to users when the check fails * **Suggested fix** — free-form guidance shown alongside the failure Custom checks are editable and deletable from the checklist table. Deletions require confirmation. Custom checks with `Apply type = All` automatically apply to every newly created service. Checks with `Apply type = Select services` only apply to services you explicitly pick. ## How scoring works * Each enabled check has an **importance level** (Critical, High, Medium, or Low) that determines how much it counts toward the score. * The service score is the percentage of passing checks, weighted by importance. Warnings partially penalize the score; N/A checks don't count for or against. * The org score is the average of all service scores across all monitored environments. * A service with no enabled checks, or whose evaluation errored, is counted as **Unconfigured** — it doesn't pull the org score down. ## Troubleshooting The service isn't enrolled in readiness monitoring. Open **Settings > Production Readiness**, click **Add Environments**, and add this service + environment pair. N/A means the check does not apply to this workload. For example, a StatefulSet-only check won't run against a Deployment. Check the category and description to confirm the check is intended for this workload type. Most built-in checks deep-link into the deployment config with the relevant field highlighted. If the link lands on the wrong tab, use the **Docs** link on the check to navigate manually — please also file an issue so we can fix the deep-link target. Readiness is visibility-focused today — it tracks and reports, but does not block deployments. For hard enforcement, combine a Kyverno policy (see [Policies](/infrastructure/gitops/policies)) with the readiness checklist so non-compliant configuration is caught at admission time. # Deployment Repository Options Source: https://docs.skyhook.io/application/repository/deployment-repositories When creating services or jobs in Skyhook, you choose how to organize your deployment configuration files (Kubernetes manifests, Kustomize overlays, CI/CD workflows). This decision affects your repository structure and GitOps workflow. ## Two Approaches Skyhook supports two deployment repository strategies: **All-in-one approach** Deployment files live alongside your application code in each service's repository. **Separation of concerns** All deployment files for all services live in a single, shared deployment repository. ## Option A: Deployment Files in Code Repository Your service/job repository contains both application code and deployment configuration. Each service has its own repository with everything included. ### Directory Structure ``` my-service/ ├── src/ # Application code │ └── main.go ├── Dockerfile ├── .koala.toml # Skyhook configuration ├── deploy/ # Deployment files │ ├── base/ │ │ ├── deployment.yaml │ │ ├── service.yaml │ │ └── kustomization.yaml │ └── overlays/ │ ├── dev/ │ │ ├── kustomization.yaml │ │ └── deployment-patch.yaml │ └── prod/ │ ├── kustomization.yaml │ └── deployment-patch.yaml └── .github/ └── workflows/ ├── build_image.yml └── deploy.yml ``` ### When to Use **✅ Best for:** * Small teams or individual developers * Single-service repositories * Simpler mental model (everything in one place) * Faster iteration (single PR for code + config changes) * Services where deployment changes are closely tied to code changes **✅ Advantages:** * **Simplicity** - One repository to manage * **Atomic changes** - Code and deployment updated together * **Single PR review** - Reviewers see code + config in same PR * **Easier rollback** - Git revert affects both code and config **⚠️ Considerations:** * Repository access control is all-or-nothing * Deployment config changes require code repo access * Multiple services need multiple repos (or monorepo) ### Configuration in .koala.toml **Example: Deploy files in code repository** ```toml theme={"system"} [Repo] Name = "my-service" GitUser = "myorg" URL = "https://github.com/myorg/my-service" Path = "" # Root of repo (or path if in monorepo) IsMonorepo = false # No DeploymentRepo = deploy files in same repo ``` ### How It Works 1. **During creation**, Skyhook adds `deploy/` directory to your code repository 2. **CI/CD workflows** run from the same repository 3. **GitOps tool** (like ArgoCD) can watch the `deploy/` directory in your code repo (optional) 4. **Changes** to either code or config trigger appropriate workflows ## Option B: Centralized Deployment Repository All services store their deployment configuration in a single, shared repository separate from application code. ### Directory Structure **Code repositories** (one per service): ``` api-gateway/ # Service 1 code repo ├── src/ │ └── main.go ├── Dockerfile └── .github/ └── workflows/ ├── build_image.yml # Builds and pushes images └── deploy.yml # Updates central deployment repo user-service/ # Service 2 code repo ├── src/ │ └── main.go ├── Dockerfile └── .github/ └── workflows/ ├── build_image.yml └── deploy.yml payment-service/ # Service 3 code repo ├── src/ │ └── main.go ├── Dockerfile └── .github/ └── workflows/ ├── build_image.yml └── deploy.yml ``` **Central deployment repository** (`deployments` - shared by all services): ``` deployments/ ├── api-gateway/ │ ├── .koala.toml │ └── deploy/ │ ├── base/ │ │ ├── deployment.yaml │ │ ├── service.yaml │ │ └── kustomization.yaml │ └── overlays/ │ ├── dev/ │ └── prod/ ├── user-service/ │ ├── .koala.toml │ └── deploy/ │ ├── base/ │ └── overlays/ └── payment-service/ ├── .koala.toml └── deploy/ ├── base/ └── overlays/ ``` ### When to Use **✅ Best for:** * Organizations with separate dev and platform teams * Platform engineering teams managing multiple services * Stricter access control requirements (separate code and deployment permissions) * Strong standardization and consistency requirements * GitOps-focused workflows with deployment approval processes **✅ Advantages:** * **Single source of truth** - All deployment configs in one place * **Access control** - Different teams manage code vs deployment * **Consistent patterns** - Enforce standards across all services * **Independent evolution** - Update deployment configs without touching code repos * **Centralized governance** - Security policies and compliance in one place * **Clear audit trail** - All deployment changes tracked in one repo **⚠️ Considerations:** * More complex mental model (N+1 repos: one per service + one deployment repo) * Coordinating changes across repos * Requires CI/CD automation to update deployment repo from code repos * Platform team needs to maintain deployment repo structure ### Configuration in .koala.toml **Example: Centralized deployment repository** ```toml theme={"system"} [Repo] Name = "my-service" GitUser = "myorg" URL = "https://github.com/myorg/my-service" Path = "" # Root of code repo IsMonorepo = false DeploymentRepo = "myorg/deployment" # Centralized deployment repo DeploymentFolderPath = "my-service" # Path within deployment repo ``` The `.koala.toml` file lives in the deployment repository at `deployment/my-service/.koala.toml`. ### How It Works 1. **During creation**, Skyhook uses (or creates) the centralized deployment repository 2. **Workflows in code repos** build container images and update the deployment repo 3. **GitOps tool** (like ArgoCD) can watch the centralized deployment repository for manifest changes (optional) 4. **Image updates** trigger automated commits to the deployment repo from CI/CD ## Choosing During Creation When creating a service or job, you'll see these options under **Source Configuration**: * **Keep deployment files in service/job repo** - Option A (default, simpler) * **Use existing deployment repository** - Option B (select centralized repo + specify path) When choosing Option B, you specify: 1. **Repository** - The centralized deployment repository (e.g., `org/deployments`) 2. **Path** - Where this service/job lives in that repo (e.g., `/api-gateway`, `/jobs/data-sync`) ## Switching Between Approaches You can migrate between approaches after creation: ### From Option A to Option B 1. Create or identify your centralized deployment repository 2. Create subdirectory for your service (e.g., `deployments/api-gateway/`) 3. Move `deploy/` directory and `.koala.toml` from code repo to deployment repo path 4. Update workflows in code repo to push manifest updates to centralized deployment repo 5. Update service/job configuration in Skyhook UI (point to deployment repo + path) 6. If using GitOps: Update ArgoCD Application to watch deployment repo path ### From Option B to Option A 1. Move `deploy/` directory and `.koala.toml` from deployment repo to code repo 2. Update workflows in code repo to work with local manifests 3. Update service/job configuration in Skyhook UI (point to code repo) 4. If using GitOps: Update ArgoCD Application to watch code repo 5. Optionally remove service directory from centralized deployment repo Migration currently requires manual steps. Automated switching between approaches is planned for a future release. Contact Skyhook support for guidance if needed. ## GitOps Integration (Optional) Both approaches work seamlessly with GitOps tools like ArgoCD: **Option A (Code Repo):** ```yaml theme={"system"} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: my-service-dev spec: source: repoURL: https://github.com/org/my-service path: deploy/overlays/dev targetRevision: main ``` **Option B (Centralized Deployment Repo):** ```yaml theme={"system"} apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: my-service-dev spec: source: repoURL: https://github.com/org/deployments # Centralized repo path: my-service/deploy/overlays/dev # Service path within targetRevision: main ``` ## Comparison Table | Aspect | Code Repo (Option A) | Centralized Deployment Repo (Option B) | | ------------------------------- | ----------------------------- | -------------------------------------- | | **Setup Complexity** | Simple | Moderate | | **Mental Model** | Easier (one repo per service) | More complex (N+1 repos) | | **Access Control** | Per-service permissions | Centralized deployment control | | **Code + Config Changes** | Single PR | Separate PRs (code vs deployment) | | **Rollback** | Single revert | Coordinate reverts across repos | | **Team Structure** | Unified dev team | Dev team + Platform team | | **Repos to Maintain** | 1 per service | N code repos + 1 deployment repo | | **Consistency Across Services** | Each service different | Enforced by platform team | | **Best For** | Small teams, fast iteration | Large orgs, platform engineering | ## Best Practices **Start simple:** - Use Option A (code repo) when starting out - Migrate to Option B (centralized) once you have 10+ services or need platform control - Don't prematurely optimize for scale you don't have yet **When to use centralized deployment repo:** - Different teams manage code vs infrastructure/deployment - Need to enforce consistent deployment patterns across services - Platform team wants centralized governance and compliance - Multiple services with similar deployment requirements **Security:** - Implement branch protection on deployment repos - Require reviews for production deployment changes - Use CODEOWNERS for deployment repo to ensure platform team review - Separate read vs write permissions (devs read, platform writes) **Stay consistent:** Pick one approach for your organization. Mixing approaches makes operations confusing and error-prone. # Monorepos / Multiple Services in One Repo Source: https://docs.skyhook.io/application/repository/monorepos Skyhook fully supports having multiple services or jobs in a single Git repository. Each service or job is identified by its path within the repository, enabling independent deployment while sharing code and infrastructure. **What "monorepo" means in Skyhook:** In Skyhook's context, "monorepo" simply means **multiple services/jobs in one Git repository**. When you have multiple services in one repo, Skyhook generates slightly different CI/CD workflows (using GitHub Actions matrix strategy) to build and deploy services independently. This has **nothing to do with monorepo tools** like Nx or Turborepo - those are optional advanced features you can add later. See [Advanced Monorepo Tools](#advanced-monorepo-tools-nx-turborepo) for details. **Deployment files:** Monorepos work with multiple deployment patterns: * **In each service directory:** Deploy files alongside code (e.g., `services/api-gateway/deploy/`) * **Dedicated directory in monorepo:** All deploy files in one place (e.g., `deploy/api-gateway/`, `deploy/user-service/`) * **Separate deployment repository:** All services use a [centralized deployment repository](/application/repository/deployment-repositories) outside the code monorepo All patterns work equally well. Choose based on your organization's preferences. ## What Skyhook Provides for Monorepos Skyhook provides **full automated support** for organizing multiple services/jobs in a single repository: * ✅ **Path-based service identification** - Each service lives in its own directory path * ✅ **Matrix-based CI/CD workflows** - Builds all services in parallel when code changes (default behavior) * ✅ **Independent image tags** - Each service gets its own Docker image tag and version * ✅ **Independent deployments** - Deploy/promote services individually via Skyhook UI * ✅ **Shared code** - All services can access common directories and packages * ✅ **Automatic service registry** - Maintains `.skyhook/skyhook.yaml` listing all services and their environments **Example structure:** ``` my-repository/ ├── services/ │ ├── api-gateway/ │ │ ├── src/ │ │ ├── Dockerfile │ │ ├── .koala.toml │ │ └── deploy/ # K8s manifests │ ├── user-service/ │ │ ├── src/ │ │ ├── Dockerfile │ │ ├── .koala.toml │ │ └── deploy/ │ └── payment-service/ │ ├── src/ │ ├── Dockerfile │ ├── .koala.toml │ └── deploy/ ├── shared/ │ ├── lib/ │ └── utils/ └── .github/ └── workflows/ ``` ## Configuration in .koala.toml The `.koala.toml` file contains the `Repo` section that specifies where code and deployment files live: **Example 1: Monorepo with deploy files alongside each service** ```toml theme={"system"} [Repo] Name = "my-monorepo" GitUser = "myorg" URL = "https://github.com/myorg/my-monorepo" Path = "services/api-gateway" # Service code location IsMonorepo = true # No DeploymentRepo = deploy files at Path location ``` **Example 2: Monorepo with dedicated deployment directory** ```toml theme={"system"} [Repo] Name = "my-monorepo" GitUser = "myorg" URL = "https://github.com/myorg/my-monorepo" Path = "services/api-gateway" # Service code here IsMonorepo = true DeploymentRepo = "myorg/my-monorepo" # Same repo DeploymentFolderPath = "deploy/api-gateway" # Deploy files here ``` **Example 3: Monorepo with centralized deployment repository** ```toml theme={"system"} [Repo] Name = "my-monorepo" GitUser = "myorg" URL = "https://github.com/myorg/my-monorepo" Path = "apps/api-gateway" # Service code in monorepo IsMonorepo = true DeploymentRepo = "myorg/deployment" # Separate deployment repo DeploymentFolderPath = "api-gateway" # Path in deployment repo ``` Skyhook manages these fields automatically based on your choices during service/job creation. You typically don't need to edit them manually. ## Setting Up Your First Monorepo Service ### Step 1: Create Repository Structure ```bash theme={"system"} # Create your monorepo mkdir my-monorepo cd my-monorepo git init # Create service directories mkdir -p services/api-gateway/src mkdir -p services/user-service/src mkdir -p shared/lib ``` ### Step 2: Create First Service in Skyhook 1. Navigate to **Services** → **Create New Service** 2. Select **"Monorepo"** for Service Repo Type 3. Choose repository: `my-monorepo` (or create new) 4. Specify path in repo: `services/api-gateway` 5. Service name auto-suggested: `api-gateway` (from path) Monorepo Service Creation ### Step 3: Skyhook Generates Files Skyhook creates service-specific files at your specified path: ``` services/api-gateway/ ├── src/ # Your application code ├── Dockerfile # Generated by Skyhook ├── .koala.toml # Service configuration ├── deploy/ # Kubernetes manifests │ ├── base/ │ └── overlays/ └── .github/ └── workflows/ ├── build_image.yml # Path-filtered to api-gateway └── deploy.yml ``` ### Step 4: Add More Services Repeat the process for additional services: 1. **Create New Service** 2. Select **"Monorepo"** for Service Repo Type 3. Choose same repository: `my-monorepo` 4. Specify different path: `services/user-service` 5. Service name auto-suggested: `user-service` Each service is added to `.skyhook/skyhook.yaml` and gets its own deployment config. ## Example: Language-Specific Monorepo (Go) ``` go-services/ ├── go.mod # Shared Go module ├── go.sum ├── cmd/ │ ├── api-server/ │ │ ├── main.go │ │ ├── .koala.toml │ │ └── deploy/ │ └── worker/ │ ├── main.go │ ├── .koala.toml │ └── deploy/ ├── internal/ │ ├── auth/ # Shared packages │ ├── database/ │ └── models/ └── pkg/ └── client/ ``` ## CI/CD Behavior ### Service discovery and matrix builds When you push to a release branch (like `main`), the generated `release.yml` uses [`skyhook-io/generate-service-matrix@v1`](https://github.com/skyhook-io/generate-service-matrix) to produce a build/deploy matrix. The action reads your repository's Skyhook config, enumerates services × environments, and emits a `strategy.matrix` JSON object the rest of the workflow fans out on. **How it works:** 1. **Service discovery** — the matrix action reads `.skyhook/skyhook.yaml` (or the legacy `.koala-monorepo.json` + per-service `.koala.toml` — both formats can coexist and are merged) 2. **Environment discovery** — environments come from `skyhook.yaml` locally, or (for services with a `deploymentRepo`) from overlay directories and `skyhook/environments/*.yaml` in the deployment repo 3. **Parallel builds** — GitHub Actions runs each service in parallel via the matrix 4. **Independent deploys** — each service deploys with its own tag so rollbacks and promotions stay service-scoped **Example `.skyhook/skyhook.yaml`:** ```yaml theme={"system"} services: - name: api-gateway path: services/api-gateway - name: user-service path: services/user-service - name: payment-service path: services/payment-service deploymentRepo: my-org/deployments # environments resolved from this repo deploymentRepoPath: payment-service environments: # used by services without deploymentRepo - name: dev clusterName: nonprod-cluster cloudProvider: gcp account: my-project-nonprod location: us-east1-b namespace: dev - name: prod clusterName: prod-cluster cloudProvider: gcp account: my-project-prod location: us-east1-b namespace: prod ``` **Workflow behavior:** ```yaml theme={"system"} # .github/workflows/release.yml (generated) jobs: prepare_service_matrix: steps: - uses: skyhook-io/generate-service-matrix@v1 with: tag: ${{ needs.image_tag.outputs.tag }} github-token: ${{ steps.github-auth-token.outputs.token || github.token }} build: strategy: matrix: ${{ fromJson(needs.prepare_service_matrix.outputs.build_matrix) }} uses: ./.github/workflows/build_image.yml with: service_name: ${{ matrix.service_name }} service_dir: ${{ matrix.service_dir }} tag: ${{ matrix.service_tag }} ``` **Why this works well:** * **Parallel execution** — all services build simultaneously * **Shared code safety** — when shared code changes, all dependent services rebuild * **Per-service environment sets** — different services can deploy to different environment sets (e.g. one to `dev`+`staging`, another to `dev`+`staging`+`prod`) * **Coordinated releases** — every service on a release gets the same image-tag base `.skyhook/skyhook.yaml` is maintained by Skyhook when you create services in a monorepo. You don't need to edit it manually, but you can. Older monorepos set up before `.skyhook/skyhook.yaml` existed use `.koala-monorepo.json` + `.koala.toml`. These keep working — both formats are accepted — but new services are registered in the YAML format. ### Manual Operations When you use Skyhook UI to manually build or deploy, operations target only the specific service - no other services are affected. ## Managing Shared Code By default, when you push to the release branch, **all services in the monorepo are rebuilt**. This ensures that when shared code changes, all services that depend on it get the latest version. For large monorepos (10+ services), consider [selective builds with Nx](#using-nx-for-selective-builds) to build only affected services. ## Deployment Strategies ### Independent Service Deployments Each service in your monorepo deploys **independently** with its own image tag: ```mermaid theme={"system"} graph LR A[Push to main] --> B[Matrix Build] B --> C[Build api-gateway:main-20250112] B --> D[Build user-service:main-20250112] B --> E[Build payment-service:main-20250112] C --> F[Deploy api-gateway to dev] D --> G[Deploy user-service to dev] E --> H[Deploy payment-service to dev] ``` **Key characteristics:** * Each service gets its own Docker image tag * Services can be promoted to production independently * Rollback affects only one service at a time * Different services can run different versions in production **Example tags:** ``` ghcr.io/myorg/api-gateway:main-20250112-1 ghcr.io/myorg/user-service:main-20250112-1 ghcr.io/myorg/payment-service:main-20250112-1 ``` ## Multi-Service Repository vs Separate Repositories | Aspect | Multi-Service Repo | Separate Repos | | ------------------ | ------------------------------ | ---------------------------- | | **Setup** | One repo setup | Multiple repo setups | | **Code Sharing** | Easy (direct imports) | Complex (package publishing) | | **CI/CD** | Builds all services by default | Per-repo workflows | | **Dependencies** | Can share or separate | Independent trees | | **Deployment** | Independent per service via UI | Independent per repo | | **Code Review** | Cross-service visibility | Isolated per repo | | **Team Scale** | Best for 2-20 services | Works for any scale | | **Learning Curve** | Low (simple approach) | Low | ## When to Use Multiple Services in One Repository **✅ Use this approach when:** * Services share significant code * Need atomic cross-service changes * Team works across multiple services * Want simplified repository management * Have 2-20 services (sweet spot for simple approach) **❌ Consider separate repos when:** * Services are completely independent * Different teams own different services with no collaboration * Services have conflicting dependencies * Need strict access control per service * You have 20+ services and don't want to set up Nx selective builds **Migrating between repository structures:** If you need to migrate from separate repositories to a monorepo (or vice versa), contact Skyhook support for guidance. Automated migration tools are planned for a future release. ## Advanced Monorepo Tools (Nx, Turborepo) Skyhook's default workflows don't automatically integrate with advanced monorepo tools like Nx or Turborepo, but you CAN customize workflows to use these tools for **selective builds** based on affected services. **Common use case:** Use Nx (or similar tools) for **affected detection** to build only changed services, while keeping Skyhook's standard Docker build and deploy process. ### What These Tools Provide Advanced monorepo tools offer sophisticated dependency analysis: * **Dependency graph analysis** - Understand which services depend on shared code * **Affected detection** - Identify which services are impacted by code changes * **Task orchestration** - Run tasks (build, test, lint) efficiently across services * **Caching** - Cache build outputs and task results ### Using Nx for Selective Builds Here's how to integrate Nx with Skyhook for selective builds: **Key pattern:** Use Nx for **affected detection**, keep Skyhook's **Docker build process** **Implementation steps:** **1. Set up Nx** in your repository (`nx.json`, `project.json` files) **2. Create affected detection action** (`.github/actions/nx-affected-apps/action.yml`) ```yaml theme={"system"} # Detects which apps changed using Nx - name: Detect affected apps run: | npx nx show projects --affected \ --target=build \ --base=${{ github.event.before }} \ --head=${{ github.sha }} \ --type=app ``` **3. Filter deployment matrix** in release workflow ```yaml theme={"system"} # Create full matrix of all services - name: Create matrix uses: ./.github/actions/create-deployment-matrix # Filter to only affected services - name: Filter matrix for affected apps run: | FILTERED_MATRIX=$(echo "$FULL_MATRIX" | jq -c \ --argjson affected "$AFFECTED_JSON" '{ include: .include | map( select(.service_name as $name | ($affected | map(. == $name) | any)) ) }') ``` **4. Build only affected services** ```yaml theme={"system"} build: strategy: matrix: ${{ fromJson(needs.prepare_service_matrix.outputs.matrix) }} uses: ./.github/workflows/build_image.yml # Standard Skyhook build with: service_name: ${{ matrix.service_name }} service_dir: ${{ matrix.service_dir }} tag: ${{ matrix.service_tag }} ``` **What stays the same:** * Docker build process (standard Skyhook) * Deployment workflow (standard Skyhook) * Image tagging and registry push * Manual deploy operations via Skyhook UI **What changes:** * Only affected services are built (saves time and resources) * Nx analyzes dependency graph to detect affected apps * Empty matrix if no services affected (workflow skips build/deploy) ### Should You Add Nx Selective Builds? **Add Nx selective builds when:** * You have 10+ services in one repository * CI/CD time exceeds 15 minutes (building all services) * Most commits only affect 1-2 services * You're willing to set up and maintain Nx configuration * Team is comfortable with Nx concepts **Stick with default (build all) when:** * You have \< 10 services * Build times are acceptable (\< 10 minutes) * Team prefers simplicity * Default "build all" behavior works fine **Start simple:** Begin with Skyhook's built-in multi-service support. Only add monorepo tools when you experience actual pain points (slow builds, long CI times). The added complexity is often not worth it for smaller repos. ### Getting Help If you want to use Nx, Turborepo, or other monorepo tools with Skyhook: 1. Contact Skyhook support for guidance on workflow customization 2. Be prepared to maintain custom CI/CD logic 3. Consider starting with the default "build all" approach until selective builds become truly necessary # OpenAPI Viewer Source: https://docs.skyhook.io/application/services/api The Skyhook OpenAPI Viewer facilitates interaction with services that adhere to the OpenAPI specification. It enables users to explore available APIs, execute API calls directly through a user-friendly interface, and interact with services across different environments seamlessly. ## Introduction to OpenAPI OpenAPI (formerly known as Swagger) is an industry-standard specification for defining HTTP APIs. It offers a comprehensive and standardized way to describe API structures, making it easier for developers to understand and integrate external services. The OpenAPI specification supports both JSON and YAML formats and can be used to generate client libraries, server stubs, and API documentation. Embracing OpenAPI can significantly streamline API development and integration processes, fostering a more interoperable web. ### Features * **Environment Selection**: Easily choose the appropriate environment to view and interact with. * **Authentication**: Authenticate with the API when necessary to ensure secure access to endpoints. * **API Interaction**: Engage with all exposed API endpoints, allowing for comprehensive testing and exploration. ## Configuration In order to use the OpenAPI Viewer in Skyhook, you need to make sure your service's OpenAPI spec is available in one of two ways: 1. In a file in your codebase. 2. Served live by your service. Many common server frameworks support this out of the box, typically at `/openapi.json` or a similar path. **Skyhook Integration**: If the OpenAPI endpoint or filepath were not automatically detected, you can specify the path manually in `.skyhook.toml` file at the service's root. Use either the `SpecPath` or `QueryPath` params, for example: ``` [OpenAPIConfig] SpecPath = "api/openapi.yaml" CodegenTool = "openapi-generator" Clients = ["go", "javascript"] QueryPath = "/openapi" ``` # Autoscaling Source: https://docs.skyhook.io/application/services/autoscaling Scale services horizontally (HPA), vertically (VPA), or by event rate (KEDA) — per environment. Skyhook supports three complementary autoscaling strategies for your services, all configurable per environment from the same settings page: * **Horizontal Pod Autoscaler (HPA)** — scale the number of pod replicas up and down based on CPU or memory usage * **Vertical Pod Autoscaler (VPA)** — automatically adjust the CPU and memory requests of individual pods to match real usage * **KEDA** — event-driven autoscaling that scales on queue depth, message rate, or any metric HPA can't target, including scale-to-zero Open any service and navigate to **Settings → Scaling** to see all three sections in one place. Scaling settings page showing three sections — Horizontal Pod Autoscaling, KEDA Event-Driven Autoscaling, and Vertical Pod Autoscaling — each with a per-environment chip row (autopush, dev, staging, prod) and an Apply button Each section has its own per-environment configuration — you can run HPA in production and leave it off in dev, or enable VPA only on a specific customer environment. ## Horizontal Pod Autoscaling (HPA) HPA adjusts the number of pod replicas in response to CPU and memory load. Use it when: * Your workload can safely scale horizontally (stateless or shared-state via cache/db) * Traffic varies predictably or spikily over time * You want to trade cost for capacity — more pods when busy, fewer pods when idle ### Fields | Field | Description | | ---------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | **Enable Horizontal Pod Autoscaling** | Toggle on or off for this environment | | **Minimum number of replicas** | Lower bound — how few pods can be running. Set to keep availability above a floor (typically 2 for production). | | **Maximum number of replicas** | Upper bound — required, prevents runaway scaling. | | **Target CPU Utilization Percentage** | Optional. 70% is a good starting point — leaves headroom for spikes while avoiding over-provisioning. | | **Target Memory Utilization Percentage** | Optional. 70% is also a reasonable default. | HPA reacts to **sustained** utilization, not spikes. A brief burst over the target won't trigger a scale-up; HPA waits to confirm the load is real. Expect scale-up latency of 30 seconds to a minute, and scale-down of several minutes. ## Vertical Pod Autoscaling (VPA) VPA watches real CPU and memory usage of your pods and automatically adjusts their `requests` (and optionally `limits`) to match. Use it when: * You don't know what resource requests to set and want data-driven recommendations * Your workload has variable per-pod cost but a stable replica count * You want to fix over-provisioning (paying for reserved capacity you never use) or under-provisioning (OOMKills, CPU throttling) ### Update Modes VPA has several update modes that control how aggressively it applies its recommendations: **Recommend only.** VPA watches usage and produces recommendations but doesn't change anything. Good for gathering data before you commit to automated changes. **Apply once at pod start.** New pods get VPA-recommended requests, but running pods are left alone. Safe for stateful workloads where you don't want restarts. **Evict and recreate pods** when recommendations drift significantly from actual requests. Causes brief downtime per pod during replacement. **Update in-place when possible**, fall back to recreate otherwise. Requires a Kubernetes version that supports in-place pod resize. The older **Auto** mode is deprecated and now aliases to **Recreate**. ### Per-container resource policies VPA can be scoped per container — useful for multi-container pods where you want to control the main app but leave sidecars alone. For each container you can set: * **Minimum CPU and memory** — lower bounds VPA won't go below * **Maximum CPU and memory** — upper bounds VPA won't exceed * **Controlled resources** — whether VPA manages CPU only, memory only, or both VPA requires the **Vertical Pod Autoscaler addon** to be installed on the target cluster. Install it from the [Addons catalog](/infrastructure/addons/overview) — search for **VPA**. Skyhook detects the VPA CRD and disables the toggle on clusters where it isn't installed. ### VPA + HPA together HPA and VPA can both be enabled on the same workload, **but not on the same resource**. The supported pattern is: * **HPA on CPU** — HPA scales the replica count based on CPU utilization * **VPA on memory** — VPA adjusts memory requests based on observed usage Having both target CPU creates a feedback loop where VPA shrinks requests and HPA scales in, then traffic grows and both fight. ## KEDA Event-Driven Autoscaling KEDA scales on external signals: queue depth, message rate, cron schedules, Prometheus metrics, database row counts — anything KEDA has a scaler for. Use it when HPA's CPU/memory signals don't describe what you actually care about. KEDA also supports **scale-to-zero** — you can set minimum replicas to 0 and the workload will spin down completely when idle, then spin back up when the first event arrives. ### Fields | Field | Description | | ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | **Enable KEDA Event-Driven Autoscaling** | Toggle for this environment | | **Minimum Replicas** | Lower bound. Set to 0 for scale-to-zero. | | **Maximum Replicas** | Upper bound | | **Polling Interval** | How often KEDA checks the scaler (default: 30 seconds) | | **Cooldown Period** | How long to wait after the last event before scaling down (default: 300 seconds / 5 minutes) | | **Scaler Type** | Which KEDA scaler to use — Prometheus, RabbitMQ, Kafka, AWS SQS, Google Pub/Sub, Redis, and many more. Each scaler has its own required fields. | KEDA requires the **KEDA addon** to be installed on the target cluster. Install it from the [Addons catalog](/infrastructure/addons/overview). ## Best practices ### Start with HPA If you're unsure which to use, start with HPA on CPU or memory — it's the simplest, most battle-tested option, and most workloads scale fine on resource utilization alone. ### Use VPA for right-sizing, not autoscaling VPA's real value is finding the right resource requests. Run it in **Off** or **Initial** mode for a few weeks, look at the recommendations via the [FinOps Efficiency page](/observability/finops/overview#efficiency-analysis), and apply the right numbers manually or via **Recreate** mode once you're confident. ### KEDA for queue-based workloads If your service processes messages from a queue, KEDA scaling on queue depth is almost always better than HPA on CPU — CPU usage lags behind queue growth, but queue depth is a leading indicator. ### Test with load After enabling any autoscaler, generate realistic load (not a simple ramp) and verify that scale-up and scale-down happen when you expect. Tune the target utilization or minimum replicas based on what you see. ## Troubleshooting HPA needs a metrics source to compute utilization. Install the **Metrics Server** addon on the cluster if it isn't already — it's a one-click install from the Addons catalog. Without it, HPA can't read pod CPU/memory. The VPA addon isn't installed on that cluster. Install it from the Addons catalog. Skyhook detects the VPA CRD and re-enables the toggle automatically once it's available. You're probably in **Recreate** mode, which evicts pods when recommendations drift. Switch to **Initial** mode to apply recommendations only to new pods, or tighten the per-container minimum/maximum bounds to reduce churn. Check three things: 1. The KEDA addon is installed on the target cluster 2. The scaler credentials (e.g. SQS region + access key, RabbitMQ URL) are correct and accessible from within the cluster 3. KEDA's polling interval hasn't elapsed yet — if you just published an event, wait `pollingInterval` seconds for KEDA to notice # Create and Import Services Source: https://docs.skyhook.io/application/services/create-import Use the 5-step service wizard to create a service from a template or import an existing repository, with auto-detection for Dockerfiles, ports, env vars, and monorepos. The **New Service** wizard walks you through five steps to register a service with Skyhook — either from a new repository (built from a template) or by importing an existing codebase. The wizard auto-detects as much as it can (Dockerfile, container port, env vars, framework, monorepo layout) so you can accept smart defaults and move on. The same wizard is used for **Jobs** — just click **New Job** instead. The flow adds one extra step (**Job Type**) where you pick between Kubernetes Job, CronJob, Argo Workflow, or Argo CronWorkflow. Everything else on this page applies to jobs too. ## Opening the wizard Three entry points in the UI: * **New Service** / **New Job** buttons in the top-right of the Home dashboard * **New Service** button on the Services list page * **Deploy...** button on the Clusters list (if no services exist yet) The wizard remembers your progress in the browser — if you navigate away or refresh, you can resume where you left off. ### Or from the CLI For importing an existing repo, the terminal path is usually faster: ```bash theme={"system"} cd path/to/your/service skyhook init # interactive — review detected values before creating skyhook init --yes # non-interactive — accept all detected defaults skyhook init --dry-run # preview what would be created without touching anything ``` `skyhook init` runs the same detection pipeline as the wizard (language, framework, container port, Dockerfile location, monorepo layout, env vars) and presents the results in a single form. `skyhook detect` runs detection only, so you can preview or script against the results (`skyhook detect --json | jq .`). The rest of this page walks through the UI wizard. Both paths produce the same service and open the same set of pull requests. ## Step 1 — Service Info Service wizard step 1 showing the 4-step progress stepper, Service Info heading, Repository dropdown, Service Name field, and Description field The first step has a single decision: **new repository** or **existing repository**. Click the **Repository** dropdown to see both options: Repository picker dropdown showing existing repositories (api-gateway, payment-service, notification-service, analytics-service, frontend) with a search box and a 'Select existing or type to create new' label ### Create a new repository Type a name that doesn't match any existing repo — Skyhook creates a new repository from a template and registers the service in one shot. You'll get to pick from managed templates like **Go Server**, **Java Quarkus**, **Python Flask**, **Python FastAPI**, **Node.js Express**, **Node.js NestJS**, **Node.js Next.js**, and a few others pulled from `KoalaOps/koala-templates`. ### Import an existing repository Pick an existing repo from the list. Skyhook immediately triggers repo detection in the background: * **Description** is auto-filled from the GitHub repo description * **Service name** is auto-derived from the repo name (lowercase, no spaces) * **Path in Repository** lets you point at a subfolder if the code isn't at the repo root * **Monorepo detection** — if the repo is a monorepo with multiple services, an inline picker lists each service as a clickable chip (with name, path, language, and a Dockerfile indicator). Selecting a service auto-sets the path and service name; a **Custom path...** option lets you enter a path manually Background detection prefetches env vars, Dockerfile location, and port at the moment you finish step 1, so later steps feel instantaneous instead of waiting on API calls. ## Step 2 — Build Config Build Config step showing a Dockerfile section ('No Dockerfile found. Skyhook will generate one based on your project.'), Container Port field, Registry Provider dropdown, Container Registry field, and Deployment Config section with 'Same repo as service' / 'Separate repo' radio buttons Configure how the service is built, where images are stored, and where deployment manifests live. ### Dockerfile * **Dockerfile found** — Skyhook uses the one it detected. You can override the path. * **No Dockerfile** — Skyhook offers to **generate one** based on the detected framework. ### Container Port The port your application listens on. Auto-filled from Dockerfile `EXPOSE` when present. **Port conflict handling.** If the Dockerfile `EXPOSE` doesn't match the port in your app config (e.g. a Node server listening on 3000 but `EXPOSE 8080` in the Dockerfile), Skyhook shows a conflict alert in the network step and asks you to pick one — with a note that `EXPOSE` is informational in Kubernetes and the app-config port is usually the right choice. ### Container Registry * **Registry Provider** — dropdown for GitHub Container Registry, Docker Hub, AWS ECR, GCP Artifact Registry, etc. * **Container Registry** — the specific registry URL (e.g. `ghcr.io/acme`). Defaults to the org setting. ### Deployment Config Where Skyhook should write the generated Kubernetes manifests: * **Same repo as service** — manifests go into a folder inside the service repo (monorepo-style) * **Separate repo** — manifests go into a dedicated GitOps/deployment repo (recommended for multiple services). Picks the org default repo automatically. **Folder Path** defaults to the service name and is editable. ## Step 3 — Environments Environments step showing a table with environment name, cluster, namespace, provider, and region columns, with checkboxes on each row for dev, prod, staging, customer envs, and per-customer rows Pick which environments to deploy the service to. The table shows every environment defined at the org level (from **Settings → Environments**) with its cluster, namespace, provider, and region so you can sanity-check target placement. * Check one or more rows * For new services without an org-level environment yet, Skyhook starts you with a default `dev` and `prod` pair you can accept and adjust later * Smart cluster defaults pull from other services in the org, so the first environment picks the most-used cluster automatically * When importing an existing service, environments are populated from the service's actual configuration once it loads Labels and AutoDeploy toggles on the org-level environments (see [Environments overview](/application/environments/overview)) carry through to the service when it's created. ## Step 4 — Environment Variables *(import only)* Env Variables step showing 13 detected variables from koala-backend with checkboxes for selection, secret toggle indicators, 'found in N files' annotations, value columns, and auto-populated defaults like 'Env.Cluster', 'http://cluster-agent-controller-service:8080', 'Debug', and '8080' This step **only appears when importing an existing repository** — new services don't have code to analyze yet. Skyhook walks your codebase looking for patterns like `process.env.X`, `os.Getenv("X")`, `System.getenv("X")`, Helm chart values, and Kubernetes manifests, then shows every variable it found with: * **Variable name** * **Source location** — "found in N files" (click to expand). When the same variable has different values in different files, Skyhook tells you "N different values" so you can pick the right one. * **Secret toggle** — promote a variable to a Kubernetes secret (secret values aren't checked into Git; you're prompted to **set after creation**) * **Value** — auto-filled from what Skyhook found in code, or editable per-environment ### Header controls * **Select All / Deselect All** — bulk toggle inclusion * **`N detected · N selected · N secrets`** — running counts so you can see what's in ### Defaults * Well-known secret-shaped names (`*_TOKEN`, `*_KEY`, `*_PASSWORD`, credentials paths) are auto-flagged as secrets * Variables found in only one file are auto-selected with the found value * Variables found in multiple files with different values are auto-selected but left unset so you can pick a value intentionally ### AI-powered discovery For codebases where pattern-matching misses references (indirect environment access, dynamic lookups), click **Discover** to run an AI-powered analyzer that identifies likely environment variables and secrets. Results are filterable by type (Variables, Secrets, or All), confidence level, and source file. The same Discover action is also available on the **Env Vars & Secrets** tab of existing services. ### Add manually If detection missed something, use **Add variable manually** at the bottom to enter a name, value, and secret flag. All selections from this step become the service's base env vars + per-environment overrides. You can refine them later on the service's **Env Vars & Secrets** tab. ## Step 5 — Review & Import Review step showing Service Info, Build Config, Environments (with prod and nonprod chips), and Environment Variables (13 variables with detected framework chips like go, health, routes) sections, each with an edit icon, and an Import Service button at the bottom Final summary before creation. Each section (Service Info, Build Config, Environments, Environment Variables) has an **Edit** icon that jumps back to the relevant step. The Environment Variables row shows a count of selected variables plus detection badges (framework and features inferred from the codebase, e.g. `go`, `health`, `routes`). ### Adaptations For imported services, a dedicated **Adaptations** section shows any warnings or info messages from the detection pipeline along with the auto-fix Skyhook will apply: * "Dockerfile `EXPOSE 8080` mismatches detected app port 3000 — will use 3000" * "Missing Helm chart — one will be generated from the service name" * "No Kubernetes manifests found — base manifests will be generated" Each adaptation has a short description so nothing is applied silently. ### Submit Clicking **Import Service** (or **Create Service**) kicks off the setup process in three phases: 1. **Setup** — Skyhook creates the required files and opens the pull requests needed to register the service 2. **Review and merge** — a status panel shows every pull request Skyhook opened, waiting for you to review and merge them. Each one has a **Review PR** button that opens the [in-app pull request review](/infrastructure/gitops/branches-and-prs) 3. **Done** — once every pull request is merged and the repository files are in place, Skyhook takes you to the new service page A single service creation can open up to 3 PRs — one against the service repo (Dockerfile, workflows, koala-config), one against the deployment/GitOps repo (Kubernetes manifests), and one against the GitOps registration repo (service discovery). The PR gate keeps all of them visible in one place so you're never guessing which one is left. ## After creation Once the service page loads, a **Pending PRs banner** at the top shows any migration or setup PRs that are still in flight. Each row has a **Review PR** button; rows disappear automatically as PRs are merged. From there, use the service tabs (General, Runtime, API, Logs, Deployments, Production Readiness, Env Vars & Secrets, Settings) to configure and operate the service. ## Troubleshooting Analysis timed out or couldn't reach your repository. You can still proceed — you'll just need to fill in Dockerfile path, container port, and environment variables manually. The service will work fine; you only lose the convenience of auto-fill. Monorepo detection looks for common layouts (`services/`, `apps/`, `packages/`, `cmd/`) with a Dockerfile or package manifest. If your service lives outside those paths, click **Custom path...** and enter the subdirectory manually. In Kubernetes, `EXPOSE` in a Dockerfile is purely informational — the actual port is what your app listens on. If your Node server calls `app.listen(3000)` but the Dockerfile has `EXPOSE 8080`, pick **3000**. The **recommended** button on the alert corresponds to the port your app actually binds to. Re-select the repository in step 1 and the smart defaults will re-apply. Skyhook checks GitHub for merge status every few seconds. If a pull request shows as merged on GitHub but the setup panel doesn't update, click **Refresh**. Skyhook also verifies that the expected files are actually in place, so a partial merge (only some of the pull requests) will still show as pending. # Deploying Services Source: https://docs.skyhook.io/application/services/deploy Deploy a service to any environment, track deployment history, and inspect build and deploy logs directly in Skyhook. Deploying a service in Skyhook is a two-click operation: pick what you want to deploy, pick where to deploy it, go. Behind that simple flow, Skyhook handles building the image (if needed), running the deploy workflow, syncing the right Kubernetes manifests, and giving you a full history with searchable logs. This page walks through the three surfaces you'll use: 1. **Deploy** — starting a new deployment 2. **Deployments** — history, filters, and status 3. **Deployment detail** — everything about a single deploy, including build and deploy logs ## Starting a deployment Click **Deploy...** at the top of any service page. Deploy screen titled 'Deploy koala-backend to Kubernetes' with fields for Select Image or Branch, Kubernetes Resources, CI Workflows, and Environment, plus a Deploy button You fill in four things: ### Select Image or Branch What you want to deploy: * **Pick an image tag** — deploy an image that's already been built (for example, promoting a tested staging build to production) * **Pick a branch** — build a fresh image from the latest commit on that branch, then deploy it Skyhook figures out which mode you're in from your choice. When you pick a branch, an optional field appears where you can name the resulting image tag. ### Kubernetes Resources The branch or tag to take your deployment manifests from. Defaults to your repository's default branch — whatever it's called in your repo — so most of the time you don't touch this. Change it when you want to deploy a feature that needs bundled configuration changes, like a new ingress rule or autoscaling policy. ### CI Workflows The branch or tag for your CI workflow files. Also defaults to the default branch. Kept separate from Kubernetes Resources because some teams pin workflows to `main` even when building from a feature branch. ### Environment Where to deploy. The dropdown lists the environments configured for this service. See [Environments](/application/environments/overview) for how to add or manage them. Click **Deploy** and Skyhook starts the workflow. The deployment appears at the top of the Deployments list with a live status indicator. ## Deployments list The **Deployments** tab on any service shows every past deployment with filters for anything you might want to find. Deployments list for koala-backend showing the filter bar across the top and deployment rows with environment, type, image tag, duration, status, commit, author, and time columns ### Filters Filter by any combination of: * **Environment** — show deployments to specific environments * **Label** — filter by [environment label](/application/environments/overview#labels-and-label-based-deployments), e.g. show all deployments to environments tagged `region:us-east` * **Image Tag** — find deployments of a specific image * **Authors** — filter by who committed the code * **Time Range** — last hour, day, week, month, or a custom range * **Git Reference** — filter by branch or tag * **Status** — All, success, in progress, or failed ### What each row shows * **Environment** — where it went * **Type** — whether it deployed an existing image or built a new one first * **Image Tag** — what was deployed * **Duration** — how long the deployment took * **Status** — success, in progress, or failed * **Git Reference** — the commit with its message * **Author** — who wrote the code * **Time** — when it happened * **Triggered by** — who started the deployment (not always the same as the code author) A **Load older deployments** button at the bottom pulls in history beyond the default window. ## Deployment detail Click any row in the list to open the deployment detail page. Deployment detail page showing status (Deploy success), duration, Re-deploy and View on GitHub buttons, and metadata including environment, image tag, branch, commit, author, triggered by, and deployment method (ArgoCD) with the commit message below ### What you see * **Status** — success, in progress, or failed, with how long it took and when it ran * **Re-deploy** — runs the same deployment again (useful for recovering from a transient failure) * **View on GitHub** — jumps to the underlying workflow run * **Metadata** — environment, image tag, branch, commit, author, who triggered it, and the deployment method (Skyhook shows an ArgoCD badge when the deployment ran through ArgoCD) * **Commit message** — the first line or two of the commit being deployed * **Deployment Configuration** — which deployment repository, which configuration commit, and who last touched it ### Build, deploy, and runtime logs Three collapsible sections at the bottom of the page show: * **Build Logs** — output from the build job * **Deploy Logs** — output from the deploy job * **Runtime Logs** — live logs from the running pods (links into the [Logs viewer](/observability/logs)) You can open each one inline without leaving Skyhook. The **View Build Job** and **View Deploy Job** links take you to the full run on GitHub if you need to share it or dig deeper. ## In-app log viewer Skyhook renders build and deploy logs with a dedicated viewer tuned for CI output — you don't need to click through to GitHub to read them. Expanded Build Logs showing a searchable log viewer with line numbers, collapsible group headers for Runner Image Provisioner, Operating System, Runner Image, and GITHUB_TOKEN Permissions, and syntax-highlighted log output Features: * **Collapsible groups** — sections of the log fold open and closed so you can skip past the noise * **Error and warning highlighting** — mistakes are colored and easy to spot * **Search with match navigation** — find text and jump between matches with arrow keys * **Line numbers** — toggle on or off, useful when referring to a specific line in a bug report * **Timestamps** — toggle on or off * **Color output** — ANSI colors from your build scripts render correctly (bold, dim, 16 colors, 256 colors, true color) * **Dark or light theme** — switch with a single click * **Live streaming** — if the job is still running, new lines appear as they're produced ## Network connectivity check For services with ingress configured, the deployment detail page shows a connectivity check card that verifies your public endpoints are working after the deploy lands: * **DNS** — the ingress hostname resolves * **TLS** — the certificate is valid and trusted * **HTTP** — the endpoint responds (with the status code) * **Backends** — the pods behind the ingress are reachable Each check shows a pass or fail indicator so you catch broken routes or expired certificates immediately after a deploy, not hours later from a customer complaint. ## Re-deploying The **Re-deploy** button on a deployment detail page replays that deployment exactly — same image, same configuration, same environment. It's the fastest way to: * Recover from a transient infrastructure failure mid-deploy * Roll forward to retry after a GitOps sync interruption * Roll back to a previous successful deploy (open an older one from the list and hit Re-deploy) ## Troubleshooting All four fields need values — image or branch, Kubernetes Resources ref, CI Workflows ref, and environment. If the environment dropdown is empty, the service hasn't finished its initial setup yet; check that the [create/import wizard](/application/services/create-import) completed and the required pull requests were merged. Either the deploy job hasn't started yet (the build is still running) or the deploy job was skipped because the build job failed. Click **View Deploy Job** to see the state on GitHub — if it shows "skipped", open **Build Logs** to find the real failure. Very old deployments created before Skyhook started recording the deployment method won't show the badge. New deployments display it correctly. Current generated workflows declare a `ref` input, so this only affects older or heavily customized workflow files. If a workflow doesn't declare `ref`, Skyhook falls back to the head of the target branch. The quickest fix is `skyhook update cicd --reset` to regenerate from the current template; if you need to keep customizations, add a `workflow_dispatch` input named `ref` yourself (see [Troubleshooting → CI workflow ignores the ref you picked](/application/cicd/troubleshooting)). The search matches the plain text content, not the color codes. Search for the word you're looking for directly and it'll work — just don't include any formatting characters. ## Further Reading * [Ship Without Fire Drills: Canary, Blue-Green, and Rolling Deploys](https://www.skyhook.io/blog/ship-without-fire-drills-canary-blue-green-and-rolling-deploys) - comparing deployment strategies and when to use each # Environment Variables & Secrets Source: https://docs.skyhook.io/application/services/envvars-secrets Configure environment variables and secrets for your services to manage configuration across different environments like development, staging, and production. ## Accessing Environment Variables & Secrets Environment variables and secrets are configured per service: 1. Navigate to **Services** in the sidebar 2. Select your service 3. Click the **Env Vars & Secrets** tab Environment Variables & Secrets tab showing base configuration and environment overrides ## Environment Variables ### Base Variables (All Environments) Base variables apply to all environments unless overridden. Use these for configuration that's consistent across environments. **To add a base variable**: 1. Click **base (default)** in the environment selector 2. Click **Add** 3. Enter the **Key** and **Value** 4. Click **Apply** to save changes ### Environment-Specific Variables Override base variables or add environment-specific configuration by selecting an environment from the sidebar. Production environment showing environment-specific variables and inherited base variables **To add or override environment-specific variables**: 1. Select an environment from the sidebar (e.g., "production") 2. Click **Add** or modify existing variables 3. Variables inherited from base configuration are labeled as "(inherited)" 4. Click **Apply** to save changes Variables you define in an environment override the base value for that environment only. Other environments continue using the base value. ### Edit as Raw Text For bulk editing, click **Edit as raw text** to edit variables in `KEY=VALUE` format. This is useful when importing variables from another source or making multiple changes at once. ## Secrets Management Secrets are environment-specific only. Each environment (production, staging, etc.) has its own set of secrets. Two places to manage secrets in Skyhook: * **Per-service Env Vars & Secrets tab** — described on this page, for secrets scoped to a single service * **Settings → Secrets** — a cluster-wide view where you can see every sealed secret across all services and clusters, create shared secrets that multiple services can reference, and bulk-manage rotations. See the [Secrets settings page](#secrets-settings-page) section below. ### Adding Secrets Secrets are encrypted using [Bitnami Sealed Secrets](https://github.com/bitnami-labs/sealed-secrets) before being stored in your repository. This ensures sensitive data like API keys, database passwords, and tokens remain secure. **To add a secret**: 1. Select an environment from the sidebar in the Secrets section 2. Click **Add** 3. Enter the **Key** (e.g., `DATABASE_URL`, `API_KEY`) 4. Enter the plain-text **Value** 5. Click **Apply** Once saved, secrets are displayed in encrypted form (`sealed:encrypted_content_here`). You can edit the encrypted value, but to change the actual secret, delete it and re-add with a new plain-text value. ### Import Secrets Click **Import** to import secrets from a file or from another service. The **Copy from another service** dialog lets you: * Filter to secrets from a specific service (useful when you have many services) * **Select all** to copy every secret from the picked service — Skyhook deduplicates on name so you don't end up with multiple copies of the same key * Individually pick specific secrets to copy This is the fastest way to bootstrap a new environment or a new service with shared credentials from an existing one. ### Shared environment secret For credentials that apply to **every service in an environment** (like a shared database password or an org-wide API key), enable the **shared environment secret** toggle on the service's deployment settings. When enabled, Skyhook adds a reference to the shared secret `-shared-env-vars` in your service's pod spec. The shared secret itself lives once per environment and is consumed by any service that has the toggle turned on. The reference uses `envFrom`, which means every key in the shared secret becomes an environment variable automatically — no per-key wiring required. New keys you add to the shared secret become available to all consuming services on the next restart. The shared secret is marked optional, so your pods still start even if the shared secret hasn't been created yet — they just won't have those variables set. Useful for staged rollouts where you add the toggle first and create the secret later. ### How Sealed Secrets Work 1. **Encryption**: When you add a secret, Skyhook encrypts it with a public key before storing it in your repository 2. **Storage**: Encrypted secrets are safe to store in Git alongside your code 3. **Decryption**: The Sealed Secrets controller in your Kubernetes cluster decrypts secrets at runtime using a private key 4. **Security**: Skyhook never has access to the private decryption key; only your clusters can decrypt secrets This provides: * **Version control** for secrets (track changes, revert if needed) * **Audit trail** (see who modified secrets and when) * **Secure storage** (encrypted values are safe even if your repository is compromised) ## Secrets settings page For a cluster-wide view, navigate to **Settings → Secrets** in the sidebar. This page lists every sealed secret in your organization with full create, rename, edit, and delete support across all your clusters. Secrets settings page showing a Sealed Secrets installation banner (installed on 4 of 9 clusters), a cluster picker sidebar, and an empty-state for the selected management-cluster with an Add Secret button ### What you can do here * **Cluster picker** — switch between clusters to see secrets scoped to each one * **Installation check** — at the top, Skyhook tells you how many clusters have the Sealed Secrets addon installed and offers a **Manage** button if you need to add it to more * **Add Secret** — create a new sealed secret with a name, keys, and values. The secret is encrypted client-side so plain-text values never leave your browser. * **Rename** — safely rename a secret, which updates every reference across your GitOps repository * **Edit values** — update the keys or values for an existing secret. Values are re-encrypted on save. * **Delete** — remove a secret and its references All changes go through the standard [pull request review](/infrastructure/gitops/branches-and-prs) flow before landing in your clusters. Use this page for **shared** secrets that multiple services consume (database credentials, third-party API keys). Use the per-service **Env Vars & Secrets** tab for secrets scoped to a single service. ## Auto-Reload on Configuration Changes By default, Kubernetes does not restart pods when environment variables or secrets change. Enable auto-reload to ensure your service automatically restarts with the latest configuration. ### Enabling Auto-Reload 1. Scroll to the **Deployment Configuration** section 2. Check **Reload on Environment Variables or Secrets Update** 3. Click **Apply** Auto-reload requires the [Reloader add-on](/infrastructure/addons/overview) to be installed on your clusters. Install it from the [Addons page](https://app.skyhook.io/settings/gitops) before enabling this feature. ### How It Works When enabled, [Reloader](https://github.com/stakater/Reloader) monitors ConfigMaps and Secrets for changes and triggers a rolling restart of your service pods automatically. This ensures: * No manual pod restarts needed * Configuration changes take effect immediately * Zero-downtime updates with rolling restart strategy * Better automation in CI/CD and GitOps workflows ## Best Practices ### Environment Variables vs Secrets Use **environment variables** for: * Non-sensitive configuration (log levels, feature flags, ports) * Values that may change between environments * Public API endpoints or identifiers Use **secrets** for: * Passwords, API keys, tokens, certificates * Database connection strings (if they contain credentials) * Any sensitive data that shouldn't be exposed ### Managing Secrets Safely Never commit plain-text secrets to your code repository. Always use Skyhook's Secrets management or environment variables for sensitive data. * **Rotate secrets regularly**: Update API keys and passwords periodically * **Use environment-specific secrets**: Production should use different credentials than staging/dev * **Limit access**: Only grant secret access to team members who need it * **Delete unused secrets**: Remove old or deprecated secrets to reduce security surface ## Troubleshooting ### Changes Not Taking Effect If your configuration changes aren't reflected in your running service: 1. **Verify changes were applied**: Check that you clicked **Apply** after making changes 2. **Check for auto-reload**: If auto-reload is disabled, manually restart pods: ```bash theme={"system"} kubectl rollout restart deployment/ -n ``` 3. **Verify Reloader is installed**: If auto-reload is enabled but not working, check that the Reloader add-on is installed on your cluster ### Encrypted Secret Values If you see `sealed:encrypted_content_here` when viewing secrets, this is expected; secrets are encrypted for security. To update a secret with a new value: 1. Delete the existing secret using the trash icon 2. Add it again with the same key and new plain-text value 3. Click **Apply** to encrypt and save the new secret ### Variables with Quotes Skyhook detects when variable values contain quotes and warns you if they might be included in the actual environment variable value. If you see a warning: * **Remove quotes** if they're not intended (e.g., `"true"` should be `true`) * **Keep quotes** if they're part of the value (e.g., a JSON string or value with spaces) ## Next Steps * Learn about [service deployment](/application/services/deploy) to deploy configuration changes * Set up [GitOps workflows](/infrastructure/gitops/overview) for automated deployments * Configure [Sealed Secrets](/infrastructure/security/envvars-secrets) for your clusters (infrastructure setup) # Overview Source: https://docs.skyhook.io/application/services/overview The Services section is where you create, configure, and manage every service in your organization. The **Services** section is where you create and manage all of the services in your organization. Each Skyhook service represents a single service or microservice — or, for [monorepos](/application/repository/monorepos), a workspace within a shared repository. ## Services list Click **Services** in the sidebar to see every service in your org. The list shows: * Service name and description * Workload type badge (api-gateway, frontend, backend, worker, etc.) * Most recent deployment across environments * Health status (from the latest production deployment) * Quick links to GitHub and the deployment repo Click any row to open the service detail page. ## Service detail tabs Every service has a consistent set of tabs across the top: | Tab | What it shows | | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **General** | Basic details, GitHub links, deployment status per environment, pod health, recent events | | **Runtime** | Live [topology and resource view](/infrastructure/clusters/resource-viewer#service-runtime-tab) for the selected environment, with connectivity monitoring | | **API** | For services with an OpenAPI/Swagger spec, an interactive explorer where you can try endpoints directly | | **Logs** | Live [pod logs](/observability/logs#in-app-logs-tab) with search, previous-container toggle, and color output | | **Deployments** | Full [deployment history](/application/services/deploy#deployments-list) with filters and the in-app GitHub Actions log viewer | | **Rollouts** | Argo Rollouts progress for services using canary or blue-green strategies — traffic split, step progress, analysis templates, and manual promote/abort actions | | **Production Readiness** | [Score, failing checks, and category breakdown](/application/production-readiness/overview#per-service-view) for the selected environment | | **Env Vars & Secrets** | [Per-environment and base](/application/services/envvars-secrets) environment variables and secrets | | **Settings** | Service configuration split into sub-tabs: General, Environments, Network, Deployment, Scaling, Health & Scheduling, ArgoCD, Rollouts, Metrics | The **Deploy** button at the top of every service page opens the deploy flow directly. Some organizations configure Skyhook to show Deploy as a tab instead of a button — the underlying flow is the same. ## Active issues The **General** tab includes a banner that surfaces problems Skyhook detected with the service — missing setup steps, broken deployments, misconfigured ingress, expired certificates, etc. Click **View Details** to open a consolidated view of every active issue, grouped by severity. Each issue has: * **Description** — what the problem is * **Affected resource** — which pod, cluster, or environment * **Suggested action** — a link to the relevant settings page or a **Fix** button where Skyhook can resolve it directly (for example, re-running a failed setup step) Issues clear automatically as you resolve them — there's no manual dismiss. ### Pending migrations Services migrated from an existing Kubernetes cluster get a special info-level issue reminding you to finish the migration to the latest Skyhook config format. Click **Migrate now →** in the banner to run the migration. ## Pending PRs banner New services (and services partway through an import or migration) show a **Pending Pull Requests** banner at the top of the page listing every PR Skyhook opened for initial setup. Each row has a **Review PR** button that opens the [in-app pull request review](/infrastructure/gitops/branches-and-prs). Rows disappear automatically as pull requests are merged. ## Creating a new service From the services list, click **New Service** to open the [create/import wizard](/application/services/create-import). The same wizard is used for new services and for importing existing codebases. ## Next steps * [Create and Import Services](/application/services/create-import) — the full wizard walkthrough * [Deploying Services](/application/services/deploy) — how to deploy and monitor * [Environment Variables & Secrets](/application/services/envvars-secrets) — configuration management * [Autoscaling](/application/services/autoscaling) — HPA, VPA, and KEDA * [Production Readiness](/application/production-readiness/overview) — quality checks # Changelog Source: https://docs.skyhook.io/changelog/product-changelog Stay up-to-date with all of our recent product improvements ### Features * **Helm Chart Support**: Deploy existing Helm charts through Skyhook with a create-service Helm wizard, per-overlay chart and values settings, automatic starter-chart scaffolding on creation, and Helm preview rendered from your own git repo. * **CloudNativePG (Managed PostgreSQL)**: Provision and manage PostgreSQL databases per service via the CloudNativePG operator, configured from org settings and a per-service Database card, with managed PKI. * **GitOps Audit Log**: New audit log page showing the full history of GitOps changes, with direct links to the underlying commits and pull requests. * **One-Click Connector Upgrade**: Upgrade the in-cluster Skyhook connector to the latest version directly from the clusters page with a single button. * **GitHub Outage Visibility**: When GitHub has an upstream outage, Skyhook now surfaces it as a GitHub issue in the deploy modal and side menu instead of reporting it as a Skyhook failure. ### Minor Changes * **Shared Secrets v3**: Simplified shared environment secrets to a single service-level toggle with a clearer three-card settings page, continuing April's Shared Environment Secrets. * **Dockerfile Source & Detection**: Explicit choice of Dockerfile source with a free-text path during service creation, plus language-aware fallback when generating Dockerfiles. * **Env Var Discovery Redesign**: Rebuilt the environment-variable discovery dialog around a faster detect endpoint. * **GitHub Access Indicator**: Service general page now shows whether Skyhook has GitHub access for the service's repo. * **AWS EKS Onboarding Rebuild**: Rebuilt EKS cluster provisioning on AWS Blueprints for more reliable onboarding. * **Sealed Secrets Namespace Scoping**: Sealed secrets can now be scoped to a specific namespace. * **Faster Service Page Load**: Skipped redundant GitHub Actions roundtrips on load and added per-user caching of deployment status. * **Push-Based Status Updates**: Deployment and job status now update in real time via push notifications. * **CLI Onboarding Polish**: Improved GitHub org resolution, repo picker, and preflight error messages in the CLI onboarding flow. ### Bug Fixes * **GitOps Card Loading**: Fixed the GitOps card getting stuck on an endless "Loading..." state. * **Multi-Tab Session Stability**: Stopped stale browser tabs from wiping a freshly created session. * **Plans Screen Dark Mode**: Fixed dark mode rendering on the Plans / billing screen. * **Service Page Refresh**: Fixed the refresh button and stopped silent table updates when refocusing the tab. ### Features * **BYOK (Bring Your Own Cluster)**: Onboard non-cloud or self-managed Kubernetes clusters into Skyhook, with a dedicated provisioning flow, cluster access instructions, and an "other" cloud provider option for clusters outside the major clouds. * **Service Create/Import Wizard v2**: Building on intelligent service detection, the wizard has been rebuilt with prewarmed Dockerfile generation, a "set later" option for environment variables, monorepo transition flagging, and a Getting Started card on the service general tab for newly created services. * **GitOps Overview Redesign**: Reworked GitOps overview with a tabbed cluster list, bulk setup actions, an incomplete-state CTA, and a full-width infrastructure settings layout. * **Shared Environment Secrets**: Share a single set of secrets across all services in an environment, managed from a dedicated shared secrets card on the service env vars page. * **Skyhook CLI Distribution & Onboarding**: Stable Skyhook CLI builds with brew, scoop, shell, and PowerShell install paths, plus a CLI onboarding wizard, service init command, and GitHub OIDC setup flow. ### Minor Changes * **Service General Tab Redesign**: New dashboard cards on the service General tab and an improved Configuration card for at-a-glance service health. * **Deployment Settings Tabs**: Split deployment settings into dedicated tabs for clearer navigation across deploy repo, workflow, and configuration options. * **Gateway Wizard UX**: Unified Gateway create/edit wizard with conditional Envoy vs cloud-provider steps, HTTPRoute conflict detection, a gateway routes viewer, and a TLS wizard that allows HTTPRoutes from any namespace. * **PR Review Tree View**: File tree sidebar in the in-app PR review dialog for navigating large Skyhook-generated pull requests. * **Unified Addon Settings**: Consolidated addon settings pages around a shared status card, with unified install detection and runtime issuer caching. * **Sidebar Refinements**: Replaced the icon-rail collapse with a binary visible/hidden sidebar, adjusted auto-collapse to trigger only below 900px, and polished animation and dropdown expansion behavior. * **Centralized Service Issues**: New issues dialog and CTA banner surfacing service problems across all environments in one place. * **Cleanup PRs on Service Deletion**: Deleting a service or job now opens an automatic cleanup PR to remove its configuration entries, with in-app notification. * **Org-Level Per-Cloud OIDC**: Configure OIDC authentication per cloud provider at the organization settings level, complementing the workflow-template defaults shipped in March. * **Java Workflow Detection**: Auto-detect Java version from build configuration when generating GitHub Actions workflows, with unified templates for single-repo and monorepo projects. * **OpenCost External Prometheus**: Configure the OpenCost addon to use an external Prometheus instance for teams already running their own monitoring stack. * **Deploy Dialog Env Scoping**: Deploy dialog now filters the environment picker to environments the service is actually a member of. * **DNS-1035 Name Validation**: Service names and port names are validated against Kubernetes DNS-1035 rules at creation time, preventing invalid names before deploy. ### Bug Fixes * **Long-Session Stability**: Improved client-side cache storage for users running many services or keeping long-lived browser sessions, with an SSR fallback path. * **Service Creation UX**: Fixed path dropdown behavior and Dockerfile clear/regeneration UX during service creation. * **FinOps UX**: Fixed loading states, filters, error handling, and deep links across the FinOps cost dashboard. ### Features * **Home Dashboard**: New landing page with organization overview, recent deployment activity feed, workload summary, and onboarding guidance for new users. * **Production Readiness Checks**: Assess service production-readiness with built-in and custom checks, surfacing deployment configuration gaps with actionable links to resolve them. * **Intelligent Service Import**: The service import wizard now automatically detects project structure, monorepo layout, build tools (Gradle, Maven, Go, Nx, Turborepo), Dockerfile requirements, and port conflicts -- significantly reducing manual configuration during onboarding. * **Addon UX Redesign**: Revamped addon management with a rich catalog, flat navigation, effective values view, copy-addons-from-cluster wizard, Helm snapshot import, and per-addon secrets management. * **Envoy Gateway Addon**: New addon for Envoy Gateway with certificate issuer linking, gateway creation, and HTTPRoute management. * **GitHub Actions Log Viewer**: View CI/CD build logs directly in deployment details without leaving Skyhook. * **Auto-Deploy**: Per-environment auto-deploy toggle for continuous deployment on push to the configured branch. ### Minor Changes * **Sidebar Navigation Overhaul**: Rebuilt navigation hierarchy with improved accessibility, responsive breakpoints, and animation stability. * **Kyverno v1.17**: Upgraded policy format with support for all policy kinds and in-app PR review for policy changes. * **Dark Mode Fixes**: Eliminated hardcoded colors and fixed dark mode inconsistencies across the app. * **Logs V2 as Default**: New logs viewer is now the default experience. * **Org-Level Default Registry**: Set a default container registry at the organization level for streamlined service onboarding. * **Karpenter Node Scheduling UI**: Configure Karpenter node scheduling policies and cloud provider filtering from the addon page. * **Skyhook Agent Enhancements**: Card-state tools with data-part streaming, wiki knowledge base, and Dockerfile generation via the agent. * **React 19 & Next.js 16**: Major frontend framework upgrade for improved performance and modern React features. * **Default OIDC Workflow Auth**: New GitHub Actions workflow templates default to OIDC authentication, narrowed by cloud provider. * **Skyhook Branding**: Rebranded templates and references from KoalaOps to Skyhook. * **Job Deletion**: Delete Kubernetes jobs and Argo Workflows directly from the UI. ### Bug Fixes * **Monorepo Detection**: Fixed monorepo detection for repos without standard tooling files and workflow template generation for monorepos. * **Env Vars & Secrets**: Fixed multiple bugs with env vars and secrets not being applied during service creation and configuration. * **Sidebar Animation**: Fixed sidebar menu getting stuck due to AnimatePresence ghost layers and collapse animation flash. * **Cross-Org Workload Isolation**: Fixed job leakage across organizations in the home workloads section. ### Features * **Gateway API Support**: Full Kubernetes Gateway API and HTTPRoute support for next-generation networking, as a modern alternative to traditional Ingress resources. * **FinOps Cost Visibility**: Real-time cost dashboard with OpenCost and Prometheus addon, multi-cluster cost breakdown, and FinOps CLI commands for billing setup. * **Vertical Pod Autoscaler (VPA)**: VPA support alongside existing HPA and KEDA autoscaling options, for automated right-sizing of pod resource requests. * **Certificate Management**: Manage TLS certificates and ClusterIssuers directly from the Skyhook UI, with a dedicated configuration form. * **In-App PR Review**: Review and merge Skyhook-generated pull requests directly within the UI, with an enriched branch switcher showing PR status. * **Branch-Aware Service Views**: Persistent branch overrides across service pages, enriched branch switcher with PR status, and branch-specific configurations for addons and services. ### Minor Changes * **Environment Labels**: Tag environments with labels for grouping and label-based deployment filtering across environments and deployment pages. * **Node Instance Type in Cluster View**: See the instance type for each node in the cluster node list. * **Improved Auto-Generated PR Messages**: Richer static templates for Skyhook-generated PRs during service creation and import. * **Karpenter Addon Improvements**: ConsolidateAfter field support and updated field mapping for Karpenter disruption config. * **VCS Performance Improvements**: Resolved HEAD once and parallelized VCS reads for faster infrastructure config loading. * **Per-Cluster Workload Organization**: ArgoCD ApplicationSets now organized into per-cluster subdirectories for clearer GitOps structure. * **ArgoCD Config Cloning**: Clone ArgoCD configuration when creating new environments from existing ones. ### Bug Fixes * **ArgoCD Environment Processing**: Fixed ArgoCD updating to only process requested environments, avoiding unintended changes. * **Preview Environment Creation**: Fixed preview environment creation blocked by lost HTTP status on API errors. * **Environment Selector**: Fixed empty environment list appearing in the deploy modal. * **Autoscaler Config**: Fixed autoscaler config changes to properly handle ArgoCD configs and avoid conflicts. ### Features * **ArgoCD Automatic Cluster Provisioning**: Improved "App of Apps" architecture for simple management of all cluster resources (provisioning, infrastructure add-ons, and workloads), interconnected with global environment management for easy workload deployment through Argo. * **Enhanced Workload Support**: Workloads now support the full Argo Application specification, allowing full customization per workload while retaining central defaults and overrides -- balancing ease of use for developers with control for DevOps platform teams. * **Multi-ArgoCD Support (Distributed Mode)**: Support for self-managed clusters, each with its own ArgoCD instance. No dependencies or network connections needed between clusters, ideal for multi-cloud or high-redundancy scenarios. * **Cluster Add-on Diff Mode**: When editing cluster add-ons (e.g., Cert Manager, Ingress Controller), view a diff against the current infrastructure before applying changes. * **Cluster Add-on Preview Mode**: Helm template rendering preview for add-ons, providing instant feedback when changing configurations such as Helm values. * **Kustomize Add-on Support**: In addition to Helm charts, add-ons now support Kustomize, allowing you to easily add both remote and local manifests. * **Multi-Component Add-ons**: Support for installing add-ons that require multiple components (e.g., a Helm chart + CRDs + custom resource configuration) in a single configuration. * **Environments as a Top-Level Concept**: Create environments as global entities for better application management across services. * **FinOps Service**: New Kubernetes cost optimization service for analyzing and optimizing cluster costs. * **Job Creation Wizard**: Multi-step flow for creating Kubernetes jobs with guided setup. * **Service Runtime Tab**: New Runtime tab showing topology and network status for all live resources related to a service. * **Skyhook Agent for All Users**: Skyhook Agent now enabled for all users, with View as User toggle for admins. ### Minor Changes * **Helm Chart Indexing**: Automatic repository index identification to list available charts and versions for any public repository. * **Kyverno Improvements**: Edit policies and define per-cluster rules. * **Cluster Add-on UI Improvements**: Base values support and improved configuration experience for cluster overrides. * **Service Name Prefix**: Deploy multiple instances of the same service to the same namespace using a service name prefix. * **Service List Improvements**: Reduced dependency on GitHub and faster data fetching. * **Organization Selection After Login**: Choose an organization after first login, making multi-organization membership clearer. * **Improved Environment & Batch Deploy Pages**: More advanced functionality, improved performance, and UX for environment and preview-environment pages. * **Job Notification Settings**: Choose how to get notified on job execution progress. * **Deployment Repo Selection**: Improved card-based UI with one-time configuration flow. ### Bug Fixes * **GitHub Automation**: Fixed automatic provisioning of GitHub credentials into ArgoCD during onboarding. * **GitHub User Organizations**: Fixed support for personal GitHub user accounts that use slightly different APIs. * **Deployment & Service Fixes**: Fixed deployment port not using configured value, workload repo config for new services/jobs, and missing PR link during service import. ### Features * **Skyhook Agent**: Major functional and visual improvements including responsive drawer, fullscreen mode, conversation threads, and contextual AI assistance. * **ArgoCD in Cluster View**: View ArgoCD application status and configuration directly from the Cluster View, with per-environment sync policies, retry settings, and sync options. * **Argo Rollouts**: Rich canary deployment visualization showing rollout phases, traffic weight progression, step tracking, and replica set status. * **Multi-Step Argo Workflows Visualization**: Interactive DAG graph for multi-step Argo Workflows using ReactFlow, with clickable nodes showing step status, duration, resource usage, logs, and error details. * **New Service Creation Flow**: Revamped multi-step wizard with environment setup, networking configuration, environment variables, and deployment repo selection. ### Minor Changes * **Collapsible Sidebar**: Sidebar now collapses to icon-only mode for more workspace. * **Standardized Breadcrumbs Navigation**: Consistent breadcrumb navigation across all pages. * **Improved Search Experience**: Keyboard-activated command palette (Cmd/Ctrl+K) with categorized results across services, jobs, environments, clusters, and settings. * **Expanded Job & Service Settings**: Cron schedule support for jobs and dedicated environment management within service settings. * **Streamlined Deploy Service Dialog**: Deploy as a dialog with pre-selected default branch and pre-filled deployment presets. * **Improved Logs Viewer**: View logs from previous container instances (before crash), plus multi-container support and log level filtering. * **ArgoCD in Deployment Page**: ArgoCD application sync status and configuration visible in the service deployment page. ### Features * **Kyverno Policies**: Added support for Kyverno-based policy guardrails. * **Self-Onboarding**: Improved self-onboarding flow to make getting started smoother and faster. * **Skyhook CLI v2**: Modernized CLI with new commands and a bunch of quality-of-life improvements. * **Enhanced Resource Viewer Tabs**: Better layout, selected columns, richer details rendering, plus sorting and filtering. * **Rich Demo Mode**: An enhanced "demo environment" experience to explore Skyhook (demo.skyhook.io). ### Minor Changes * **UI Polish Across the App**: Cluster View capacity display improvements, external IP display fixes, and various UI consistency/design tweaks. ### Bug Fixes * **Inputs Rendering**: Fixed cases where the input underline/line overlapped the text. ### Features * **Cluster View (New)**: A single place to see key information about your Kubernetes clusters, surface problems quickly, and review useful events. * **Guided Permissions Setup**: New guided/semi-automated flows for setting up **GitHub Actions**, **OIDC**, **Argo CD ↔ GitHub** integration, and the **Skyhook support role**. * **Ingress Active Testing (in Deployment Details)**: We detect each org's specific ingress configuration and instantly run layer-by-layer network tests (DNS resolution, certificate checks, reachability, and more) to pinpoint the exact misconfiguration causing a failed rollout. * **Demo Mode**: Explore Skyhook safely with seeded data and preconfigured flows; great for quick previews and enablement. ### Minor Changes * **Custom Log Link Templates**: Define your own deep-link templates to your logging backend; links are shown in context for each service/environment. * **Revamped "New Service" Flow**: Cleaner steps, clearer defaults, and faster setup. * **Cluster Resource Viewer Polish**: Better layout, stronger filters, a richer details pane, and a **Raw YAML** view across the board. ### Features * **Unified Deployment Orchestration & Status**: New Deployments page that tracks CI pipelines and Kubernetes state together, presenting a single, consistent view from commit → config → live rollout (with post-deploy visibility). * **Self-Onboarding for Cloud**: One-click self-onboarding for **GCP (Terraform)** and **AWS (Terraform & CloudFormation)** to bootstrap GitOps and platform resources quickly. * **Public GitHub Actions & Modular Workflows**: Simplified CI/CD with Skyhook-maintained public actions and cleaner, composable workflows for faster setup and reuse. * **Jobs & Workflows Runtime Insights**: Drill into detailed execution info for Kubernetes Jobs and Argo Workflows, with improved triggering and deploy/execute flows. * **Quick Search with Context-Preserving Navigation**: Jump directly to hidden/advanced configuration (service settings, environments, clusters, add-ons, etc.). When switching services, Skyhook keeps your current context (e.g., Env Vars → Env Vars). * **Observability Stack: Sealed Secrets & UI Config**: Add sealed-secrets support and manage Grafana (and related) credentials directly from the Skyhook UI, alongside the full observability bundle. * **"Addons" Navigation & Centralized GitOps**: "Control Plane" is now **Addons** with a clearer **Extension** icon. New **GitOps** tab centralizes ArgoCD settings, repo configuration, and observability access. New **Management Cluster** tab provides a dedicated place for managing the management cluster. Includes one-click jump from Addons → Settings → GitOps. ### Minor Changes * **Logs Viewer Polish**: Smoother scrolling/streaming and UI refinements for long sessions. * **Better Defaults for New Services**: Standard k8s labels by default and a dedicated ServiceAccount created for every new service. * **Sidebar/Icon Update**: Replaced the old cell-tower icon with **Extension** for the Addons area. * **Route Cleanup**: Internal paths moved from `/:orgId/controlplane/*` to `/:orgId/addons/*` for consistency. ### Bug Fixes * **Stability & Reliability**: Numerous fixes improving deployment flow robustness, GitOps sync stability, and long-running logs streaming. * **Navigation**: Resolved edge cases to ensure context is preserved reliably when switching between services. ### Features * **Organization Settings (GA)**: Centralized "Org settings" tab with **Repository Settings**, **Code Preferences**, **Service Templates**, **Notification Rules & Channels**, and **Deployment Permissions**. * **Copy Secrets Across Services**: Reuse secrets from other services without manually re-entering values. * **Cluster Logs Upgrades**: Full-screen logs, adjustable viewing controls, and shareable filters via query strings across tabs. * **GitHub Connections via OAuth**: Manage the organization's GitHub connection with OAuth directly from Skyhook. ### Minor Changes * **Env Vars & Secrets UX**: Redesigned tab with streamlined flows, guardrails to prevent mistakes, and clearer cross-environment autocomplete indicators. * **Production Deployment Approvals**: Require an additional approval step before deploying to production environments. * **Standard Labels & Annotations**: New services automatically include common k8s labels/annotations and image metadata for better debugging, provenance, and code correlation. * **Deploy Dialog Polish**: Minor UI improvements to the deploy popup. * **Sidebar Compact Mode**: Smaller sidebar option and layout refinements across primary views. * **Tag Autocomplete Context**: Added commit timestamp next to git tags in autocomplete. * **Skyhook Agent UI Tuning**: Behavior and UI refinements for a smoother interaction. * **Production Deployment Approvals**: Require an additional approval step before deploying to production environments. ### Bug Fixes * **Jobs & Workflows Editing**: Multiple fixes when editing Kubernetes Jobs and Argo Workflow configurations. * **Skyhook Agent Button**: Reliability fix for invoking the Skyhook Agent from the UI. ### Features * **Initial Jobs support**: manage Kubernetes Jobs and Argo Workflows directly from Skyhook. * **Enhanced Service Settings**: control which settings apply to specific environments (or all). * **Healthcheck probes**: configure readiness and liveness probes directly from the Skyhook UI. * **Billing & Plan Upgrades**: new self-service subscription flow. * **Observability Bundle**: orchestrate multi-addon observability stack installations with synced configuration and architecture view. * **Improved VCS integration**: faster branch and tag fetching from GitHub with smart caching (10ms after prefetch). * **AI-powered Service Migration (Preview)**: initial support for Dockerfile import/creation, workflow & env var auto-import. ### Minor Changes * Published a public GitHub Action to ensure ECR repos exist before login, streamlining build workflows. * Improved logs viewer rendering, performance, and loading indicators. * Tweaked Kustomization file editing to retain YAML formatting and comments. * Greatly improved data loading performance and reduced unnecessary re-renders. * UI improvements on the Deploy screen, including branch sorting by commit date. * Open-sourced updates to **helmify-kustomize** with advanced features like working YAML anchors in Helm values files. ### Bug Fixes * Fixed excessive GitHub API usage that could cause temporary outages. * Fixed caching issues that sometimes showed incorrect or partial data in the UI. * Fixed host field bug in Control Plane Management Cluster page. * Fixed missing commit date display in autocomplete tags. * Fixed login/logout flow issues. * Fixed Skyhook DNS issues (missing or misconfigured DNS records). * Fixed branch/tag fetching bug that sometimes cached bad commit dates. ### Features * \[Beta] Support for Jobs as first-class citizens next to Services, with initial support for plain Kubernetes Jobs and Argo Workflows * \[Beta] Automatically discover some service properties during import, to reduce need for manual configuration ### Minor Changes * Visual improvements to various parts of the UI, including service settings and Skyhook Cluster Connector ### Bug fixes * Added flexibility for matching services in k8s with various naming conventions (with/without specific prefix and suffix) ### Features * Automatically wrap a set of services for deployment in a Helm chart, without giving up the Kustomize-based environment management. ### Minor Changes * Improved UX when creating/importing a service, to show pending PRs/branches instead of errors until they are merged. * Minor improvements to various selection boxes, ordering and autocomplete * Security and performance improvements. * Minor enhancements to autoscaling tools (HPA, KEDA) configuration ### Bug fixes * Fix slack messages for service deployments sometimes not going out or with missing information ### Features * Added KEDA autoscaling support for more advanced use cases, such as scaling on queue length. ### Minor Changes * More performance improvements for large git repos * GitHub Actions workflows now attempt to cache Docker layers by default ### Bug fixes * Optimizations to avoid hitting users' GitHub API rate limits * Fixed handling of env vars with quotes, spaces etc. * Fixed Events not being fetched from clusters in some cases ### Features * Enhanced Deploy Service page with improved controls over branches used for code / deployment files / CI/CD workflows, as well as tag sorting, labeling and filtering. * Support any default branch for git repos * New dedicated Service “Settings” tab ### Minor Changes * Improved generated GitHub Actions workflows with better modularity, flexibility, more code reuse, and better security best practices. * Visual improvements to make Skyhook UI elements more visually distinct and appealing, including more well-defined cards, menus and tooltips, as well as code change notifications and links. ### Bug fixes * Fixed errors and improved performance for large code repos ### Features * Organization Settings section (Preview) ### Minor Changes * Run deploy workflows from different branches * Richer networking configuration options (for Ingress, Service) * Current service health (pod status) shown in main service page. * Add option to manage GitHub permissions for the org. * Many UI improvements for greater consistency, better support for different screen sizes (all the way down to mobile phones) and more. * Skyhook Cluster Connector can now clean up ephemeral/preview environments. ### Bug fixes * Fixed a few incorrect/outdated links and quick commands for some users. ### Features * Overhauled service Deploy page to allow more control over the branch/ref used for building code, deploying Kubernetes manifests and Helm charts, and CI workflows. * Added support for using tags from the image repository for deployments. ### Minor Changes * Significantly improved app performance, primarily through Skyhook Cluster Connector optimizations. ### Bug fixes * More flexible handling of different naming conventions for Kubernetes objects (e.g. with/without env name prefix, object type suffix). ### Features * Skyhook Google Cloud Partnership: Skyhook is now an official Google Cloud Partner! * Created and introduced [Helmify-Kustomize](https://github.com/hisco/helmify-kustomize) as part of Skyhook, enabling seamless generation of Helm charts from Kustomize configurations to simplify and enhance deployment workflows. ### Minor Changes * Enhanced mono-repo support * Advanced GitHub RBAC Capabilities - Based on service token ### Bug fixes * Optimized GitHub rate limit * Monorepo import fixes * Fixed HPA edits * Made cluster name conditional * Fixed issues related to adding new clusters to GitOps configuration and for specific addons. ### Features * Role-Based Deployment Permissions: Implemented role-based access control to allow or restrict specific users from deploying services to certain environments. * Custom Templates: Introduced the ability to create and select custom predefined templates during the service creation process. * Env Vars Portal (AI Enhanced, Preview): Added a feature to intelligently extract potential global/environment variables from README and Dockerfiles directly into the Skyhook portal. * Static Website Support (Preview): Now supports out-of-the-box deployments for custom websites. ### Minor Changes * Improved consistency in editing k8s deployment files. ### Bug fixes * Resolved an issue preventing Slack alerts from triggering in some build-and-deploy workflows. * Fix the display of pending (not yet running) pods in the logs viewer. ### Features * Preview/Ephemeral Environments Support - Generally Available * Deployment - Deploy code separately from the deployment configuration ### Minor Changes * Ephemeral Environments capabilities: * Auto DNS Support * Pull and present the latest deployed version ### Bug fixes * Minor issue with auto-complete branch names ### Features * Full Preview/Ephemeral Environments Support ! (Preview) ### Minor Changes * Support for advanced Slack notifications configurations * Kustomize Build - Added the ability to pass key/values to build ### Bug fixes * Sealed secrets editing issue ### Features * Advanced rollout strategies with Argo Rollouts - Beta * Remote deployment repo * Automatically reload pods on config maps and secret changes ### Minor Changes * Improved ArgoCD setup automation and guide * Search Branches/Tags in the Deployment section * Support for Kustomize replacements ### Bug fixes * Search capabilities for projects with a large number of versions ### Features * Skyhook is now SOC2 Type II compliant!! * Azure support in private beta ### Minor Changes * Improved Addons organization (Managed with GitOps, other Installed Addons, Featured Addons, and search more) ### Bug fixes * Fixed Python FastAPI template tests ### Features * Integrated Log Viewer in k8s cluster resources viewer * New Events, ConfigMaps and CustomResources tabs in cluster resources viewer ### Minor Changes * Improved flexibility for naming of related kubernetes resources. * Misc UI improvements: improved error handling, handling of missing/empty data in various places, text explanations of various functionality. ### Bug fixes * Fixed caching bug causing occasional crash and temporary unavailability * Fixed misc crashes and bad links ### Features * Integrated Cluster Resources View - see your Kubernetes resources directly from the Skyhook UI. No need to hunt for the just right kubectl incantation! ### Minor Changes * New “Batch Build & Deploy” - select multiple services and trigger build from main and directly deploy to any env. * Monorepos: new “Deploy All” option * GitOps: expanded support for a wide range of cluster addons directly from the UI * Updated quick-start terraform templates to be SOC2-compliant ### Bug fixes * Improved handling of GitHub API requests to avoid exceeding quota for users. * Improved DB and caching mechanisms that caused occasional backend errors. ### Features * **Secrets Management** - Using Sealed Secrets. Sealed secrets are a way to securely store sensitive information, like passwords or API keys, in a code repository, even a public one. They work by encrypting the secrets before storing them in the repo. ### Minor changes * Demo Sandbox enhancements. ### Bug fixes * Interface speed improvements. ### Features * **Display OpenAPI spec** from services that expose it live and not in code. ### Minor changes * Allow updating gitops-managed clusters from the UI * Allow setting default domain to use for central management-cluster services ### Bug fixes * Fix fetching events related to a service from your k8s clusters ### Features * **Horizontal Pod Autoscaling** configuration for each service environment. * **Tracing** support (beta) with Open Telemetry - set up traces collection with Open Telemetry and view in Grafana Tempo, across services, out of the box. ### Minor changes * Streamline service creation flow and service import flow from existing repos, with smarter defaults, autocomplete, validations, and more. * Improved backend error handling. * Stabilize new preview Skyhook Agent tab with various UI and performance improvements. ### Bug fixes * Misc performance, stability, and security improvements. * Fix edge case impacting new user accounts. * Fix minor navigation and UI rendering issues. ### Features * Skyhook Agent (Preview) - The Skyhook Agent is available in the context of a specific Service. You can find the assistant in the "Skyhook Agent" tab of any of your services. The assistant is fully aware of your service's configuration out of the box and can create PRs for your service according to your requirements. * Import existing service (from single repo or monorepo) - You are now able to import services from existing repositories. * Support for all major Container Registries. * New Service Templates - Python FastAPI template. * Initial Bitbucket support. ### Minor changes * New env vars view. * Allow showing OpenAPI (Swagger) view from live services, not just yaml files. * Significant UI latency improvements via smarter optimized caching. * Minor Go service template updates (Go version, OpenAPI generated code). * Many small UI improvements. ### Bug fixes * Fix loading CRDs in the UI in some cases. * Fixed bugs where not all data in the UI was loaded depending on the page you started at / refreshed. * Fixed a couple of rare potential UI crashes. ### Features * **Platform Launch**: Skyhook goes live with comprehensive Kubernetes deployment automation * **Multi-Cloud Support**: Full support for GCP and AWS with unified deployment experience * **GitOps Workflow**: ArgoCD-based continuous deployment with Git as the source of truth * **Service Management**: Create, import, and manage services with automated repository setup * **Cluster Integration**: Connect and manage multiple Kubernetes clusters with the Skyhook Cluster Connector * **CI/CD Automation**: Automated GitHub Actions workflows for build and deploy pipelines * **Environment Management**: Multi-environment support with environment-specific configurations * **Observability Integration**: Built-in metrics collection with Google Managed Prometheus * **Logs Viewer**: Integrated log streaming and viewing directly from the Skyhook UI * **Monorepo Support**: First-class support for monorepos built with Turborepo * **Control Plane Management**: Dedicated interface for managing GitOps and cluster configuration * **Cluster Connector Versioning**: Versioned cluster connectors with upgrade notifications * **Port Forwarding**: Easy access to services with integrated port forwarding capabilities # ChatOps Assistant Overview Source: https://docs.skyhook.io/chatops/overview ## Introduction The Skyhook Portal and CLI provide a wide range of backend services management capabilities. However, there may be instances where you require more advanced or less common capabilities that are not currently available in the Skyhook interface. To help address this, we have created the Skyhook ChatOps Assistant, which provides advanced functionality and support for these scenarios. The Skyhook ChatOps Gen AI Assistant is an intelligent assistant designed to help manage Kubernetes (k8s) services and configurations. With access to the entire backend services configuration, the AI assistant provides comprehensive assistance in troubleshooting, optimizing, and maintaining k8s services. By leveraging the power of AI, the Skyhook ChatOps Assistant offers a range of benefits and capabilities to enhance the efficiency and effectiveness of DevOps and software engineering teams. The Skyhook ChatOps Assistant has the ability to create code Pull Requests on demand according to your needs. These PRs will appear in your repository pending your approval following a proper review. AI assistants are very helpful, but sometimes they make mistakes. Therefore, it is strongly recommended to fully test any code changes in your dev/test environments before applying them in production. Note that any code change will be created as a PR as part of your approval process. We are constantly working to improve the Assistant's performance, feel free to share any feedback with us! ## Benefits of Using a Gen AI ChatOps Assistant With access to the configuration files of k8s services, the AI assistant gains a comprehensive understanding of the service architecture, dependencies, and deployment configurations. This enables it to provide accurate and context-aware assistance. 1. **Efficient Troubleshooting**: The Skyhook ChatOps Gen AI Assistant enables quick and accurate troubleshooting of k8s services by providing detailed information about configuration files, log messages, and potential causes of issues. This reduces the time and effort required to identify and resolve problems, leading to faster incident resolution and improved service availability. 2. **Optimized Configuration Management**: With its deep understanding of the service's k8s configurations, the AI assistant can suggest improvements and best practices. It proactively identifies potential issues, recommends changes, and assists in creating pull requests to apply the necessary updates. This streamlines the configuration management process and ensures adherence to industry best practices. 3. **Increased Productivity**: By automating repetitive tasks and providing instant access to relevant information, the AI assistant boosts productivity for DevOps and software engineering teams. It eliminates the need for manual searching and analysis of configuration files and log messages, allowing engineers to focus on higher-value activities such as performance optimization, scalability planning, and feature development. 4. **Ensuring Compliance and Security**: The AI assistant can assist in ensuring compliance with security best practices and industry regulations. It can analyze service configurations, identify potential vulnerabilities or misconfigurations, and recommend security measures to protect the services and data. # ChatOps Assistant Usage & Examples Source: https://docs.skyhook.io/chatops/usage ## Usage The Skyhook ChatOps Assistant is available in the context of a specific Service. You can find the assistant in the "ChatOps" tab of any of your services. The assistant is fully aware of your service's configuration out of the box. You can freely interact with the Skyhook ChatOps assistant as you would with another chat based AI interface. You can create new threads by clicked the "+" sign and your recent history is available in case you'd like to review previous conversations. The Skyhook assistant is usually able to answer your questions within a few seconds. In rare cases, especially when code generation is involved, it may take the assistant up to two minutes to generate a reply. ## Common Examples Here are some ideas for use cases that the Skyhook ChatOps Assistant can help you with: * Help me debug errors in production. For example, try asking it about the log below. After it provides the log analysis, ask it to increase your CPU resources by 50%. Example Log Message: ```bash theme={"system"} "2024-01-15T10:30:15.123Z [Warning] ResourcePressure: The pod 'skyhook-backed-pod-1' is experiencing high CPU utilization and there is insufficient CPU capacity available in the cluster." ``` * Answering questions about your configuration, for example: "What are the internal and external ports that are in use by my service?" * Make changes to your configuration: "Change the host address of my dev environment to my-domain.com". # Skyhook Source: https://docs.skyhook.io/cli-reference/skyhook ## skyhook skyhook is a CLI tool to help you create and manage k8s services ### Synopsis The CLI can help you create a new service, configure it, and deploy it to k8s. ### Installation ```bash theme={"system"} brew install skyhook-io/tap/skyhook ``` ```powershell theme={"system"} scoop bucket add skyhook https://github.com/skyhook-io/scoop-bucket scoop install skyhook ``` ```bash theme={"system"} curl -fsSL https://get.skyhook.io/install.sh | sh ``` Installs to `~/.local/bin` (or `/usr/local/bin` when run as root). Set `SKYHOOK_INSTALL_DIR` to override. ```powershell theme={"system"} irm https://get.skyhook.io/install.ps1 | iex ``` Installs to `%LOCALAPPDATA%\skyhook` and adds it to your user PATH. Download the latest release for your platform from [GitHub Releases](https://github.com/skyhook-io/skyhook-cli/releases/latest). ### Upgrading To update to the latest version: ```bash theme={"system"} skyhook upgrade ``` If installed via Homebrew, use `brew upgrade skyhook-io/tap/skyhook` instead. On Windows with Scoop, use `scoop update skyhook`. ### Options ``` --debug Enable debug mode (shows full API requests/responses) -h, --help help for skyhook -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook auth](/cli-reference/skyhook_auth) - Authentication commands * [skyhook cluster](/cli-reference/skyhook_cluster) - Manage Kubernetes clusters * [skyhook config](/cli-reference/skyhook_config) - View and set configuration values * [skyhook deploy](/cli-reference/skyhook_deploy) - Deploy a service to an environment * [skyhook deployments](/cli-reference/skyhook_deployments) - List recent deployments for a service * [skyhook detect](/cli-reference/skyhook_detect) - Detect project configuration * [skyhook events](/cli-reference/skyhook_events) - View Kubernetes events for a service * [skyhook exec](/cli-reference/skyhook_exec) - Execute a command in a pod * [skyhook finops](/cli-reference/skyhook_finops) - FinOps and cost management commands * [skyhook github](/cli-reference/skyhook_github) - Manage GitHub integration * [skyhook init](/cli-reference/skyhook_init) - Initialize a new service * [skyhook login](/cli-reference/skyhook_login) - Log in to Skyhook * [skyhook logout](/cli-reference/skyhook_logout) - Log out from Skyhook * [skyhook logs](/cli-reference/skyhook_logs) - Stream logs from a service * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization * [skyhook port-forward](/cli-reference/skyhook_port-forward) - Forward local port to a pod * [skyhook restart](/cli-reference/skyhook_restart) - Restart a service deployment * [skyhook services](/cli-reference/skyhook_services) - List and manage services * [skyhook status](/cli-reference/skyhook_status) - Show service status and health * [skyhook update](/cli-reference/skyhook_update) - Update the service with various configuration changes * [skyhook upgrade](/cli-reference/skyhook_upgrade) - Upgrade skyhook CLI to the latest version * [skyhook version](/cli-reference/skyhook_version) - Print the skyhook CLI version * [skyhook whoami](/cli-reference/skyhook_whoami) - Show information about the logged in user # Skyhook auth Source: https://docs.skyhook.io/cli-reference/skyhook_auth ## skyhook auth Authentication commands ### Synopsis Authentication commands for Skyhook. Shows current authentication status when run without subcommands. ``` skyhook auth [flags] ``` ### Examples ``` skyhook auth skyhook auth login ``` ### Options ``` -h, --help help for auth ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook auth login](/cli-reference/skyhook_auth_login) - Log in to Skyhook * [skyhook auth logout](/cli-reference/skyhook_auth_logout) - Log out from Skyhook # Skyhook auth login Source: https://docs.skyhook.io/cli-reference/skyhook_auth_login ## skyhook auth login Log in to Skyhook ### Synopsis Authenticate with Skyhook using your browser. This command will open your browser to authenticate with Skyhook via Auth0. After authentication, your credentials will be stored locally for future use. ``` skyhook auth login [flags] ``` ### Examples ``` skyhook login skyhook login --no-browser ``` ### Options ``` -h, --help help for login --no-browser Don't open the browser automatically ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook auth](/cli-reference/skyhook_auth) - Authentication commands # Skyhook auth logout Source: https://docs.skyhook.io/cli-reference/skyhook_auth_logout ## skyhook auth logout Log out from Skyhook ### Synopsis Log out from Skyhook by removing stored credentials. ``` skyhook auth logout [flags] ``` ### Examples ``` skyhook logout ``` ### Options ``` -h, --help help for logout ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook auth](/cli-reference/skyhook_auth) - Authentication commands # Skyhook cluster Source: https://docs.skyhook.io/cli-reference/skyhook_cluster ## skyhook cluster Manage Kubernetes clusters ### Synopsis Manage Kubernetes clusters connected to Skyhook. ``` skyhook cluster [flags] ``` ### Examples ``` skyhook cluster # List clusters skyhook cluster get my-cluster # Cluster details skyhook cluster connect # Connect current kubectl context skyhook cluster connect --context my-ctx # Connect specific context skyhook cluster remove my-cluster # Remove a cluster ``` ### Options ``` -h, --help help for cluster --json Output as JSON ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook cluster connect](/cli-reference/skyhook_cluster_connect) - Connect an existing Kubernetes cluster * [skyhook cluster get](/cli-reference/skyhook_cluster_get) - Show details for a single cluster * [skyhook cluster list](/cli-reference/skyhook_cluster_list) - List connected clusters * [skyhook cluster remove](/cli-reference/skyhook_cluster_remove) - Remove (unregister) a cluster # Skyhook cluster connect Source: https://docs.skyhook.io/cli-reference/skyhook_cluster_connect ## skyhook cluster connect Connect an existing Kubernetes cluster ### Synopsis Connect an existing Kubernetes cluster to Skyhook. This command: 1. Detects cluster info from your kubectl context 2. Registers the cluster with Skyhook 3. Installs the skyhook-connector agent via helm 4. Waits for the agent to connect ``` skyhook cluster connect [flags] ``` ### Examples ``` skyhook cluster connect # Use current context skyhook cluster connect --context gke_my-project_us-east1_my-cluster # Specific context skyhook cluster connect --dry-run # Show what would happen skyhook cluster connect --name prod-cluster # Override name ``` ### Options ``` --cloud string cloud provider (gcp, aws, azure - default: auto-detected) --context string kubectl context to use (default: current) --dry-run show what would be done without executing -h, --help help for connect --location string region/zone (default: auto-detected) --name string cluster name for Skyhook (default: auto-detected) --namespace string namespace for skyhook-agent (default "skyhook-connector") --no-wait don't wait for connector to come online --project string cloud project/account ID (default: auto-detected) --skip-argocd skip ArgoCD installation prompt ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook cluster](/cli-reference/skyhook_cluster) - Manage Kubernetes clusters # Skyhook cluster get Source: https://docs.skyhook.io/cli-reference/skyhook_cluster_get ## skyhook cluster get Show details for a single cluster ### Synopsis Show details for a single Kubernetes cluster connected to your organization. Displays the same fields as 'cluster list' plus cloud project/account, agent API key (redacted), and any other metadata returned by the Skyhook API. ``` skyhook cluster get [flags] ``` ### Examples ``` skyhook cluster get my-cluster skyhook cluster get my-cluster --json ``` ### Options ``` -h, --help help for get --json Output as JSON ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook cluster](/cli-reference/skyhook_cluster) - Manage Kubernetes clusters # Skyhook cluster list Source: https://docs.skyhook.io/cli-reference/skyhook_cluster_list ## skyhook cluster list List connected clusters ### Synopsis List all Kubernetes clusters connected to your organization. Shows cluster status, cloud provider, location, and agent health. ``` skyhook cluster list [flags] ``` ### Examples ``` skyhook cluster list # List all clusters skyhook cluster list --json # Output as JSON ``` ### Options ``` -h, --help help for list --json Output as JSON ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook cluster](/cli-reference/skyhook_cluster) - Manage Kubernetes clusters # Skyhook cluster remove Source: https://docs.skyhook.io/cli-reference/skyhook_cluster_remove ## skyhook cluster remove Remove (unregister) a cluster ### Synopsis Remove a cluster from Skyhook. This will unregister the cluster but won't uninstall the agent from the cluster itself. You should uninstall the Skyhook agent from your cluster before or after this operation. ``` skyhook cluster remove [flags] ``` ### Examples ``` skyhook cluster remove my-cluster ``` ### Options ``` -h, --help help for remove ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook cluster](/cli-reference/skyhook_cluster) - Manage Kubernetes clusters # Skyhook config Source: https://docs.skyhook.io/cli-reference/skyhook_config ## skyhook config View and set configuration values ### Synopsis View and set configuration values interactively. Run without arguments to see all options and select one to configure. Configuration is stored in \~/.skyhook/conf.yaml ``` skyhook config [flags] ``` ### Options ``` -h, --help help for config ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook config get](/cli-reference/skyhook_config_get) - Print a single configuration value * [skyhook config list](/cli-reference/skyhook_config_list) - List all configuration values * [skyhook config set](/cli-reference/skyhook_config_set) - Set a configuration value # Skyhook config get Source: https://docs.skyhook.io/cli-reference/skyhook_config_get ## skyhook config get Print a single configuration value ### Synopsis Print the value of a configuration key to stdout. Prints the value followed by a newline. Exits with status 1 if the key is unknown. Prints an empty line if the key is valid but unset. Valid keys: org Organization ID env Default environment (dev, staging, prod) verbose Enable verbose/debug output insecure Skip TLS certificate verification ``` skyhook config get [key] [flags] ``` ### Examples ``` skyhook config get org CURRENT_ENV=$(skyhook config get env) ``` ### Options ``` -h, --help help for get ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook config](/cli-reference/skyhook_config) - View and set configuration values # Skyhook config list Source: https://docs.skyhook.io/cli-reference/skyhook_config_list ## skyhook config list List all configuration values ### Synopsis Print all skyhook configuration keys and their current values. Shows `=` lines for each configuration option. Missing values are shown as empty strings; this is intended for scripting and inspection. ``` skyhook config list [flags] ``` ### Examples ``` skyhook config list skyhook config list | grep ^org= ``` ### Options ``` -h, --help help for list ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook config](/cli-reference/skyhook_config) - View and set configuration values # Skyhook config set Source: https://docs.skyhook.io/cli-reference/skyhook_config_set ## skyhook config set Set a configuration value ### Synopsis Set a configuration value and persist it to \~/.skyhook/conf.yaml. Valid keys: org Organization ID env Default environment (dev, staging, prod) verbose Enable verbose/debug output insecure Skip TLS certificate verification ``` skyhook config set [key] [value] [flags] ``` ### Examples ``` skyhook config set org my-org skyhook config set env staging skyhook config set verbose true ``` ### Options ``` -h, --help help for set ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook config](/cli-reference/skyhook_config) - View and set configuration values # Skyhook deploy Source: https://docs.skyhook.io/cli-reference/skyhook_deploy ## skyhook deploy Deploy a service to an environment ### Synopsis Deploy a service to a specific environment. The command will infer the service from .koala.toml if in a service directory. You can specify the target environment with --env or be prompted to select one. Refs default to "main" for --config-ref and --ci-ref. When using -y (non-interactive), all unspecified refs will use defaults without prompting. ``` skyhook deploy [flags] ``` ### Examples ``` skyhook deploy # Deploy current service (prompts for env) skyhook deploy --env prod # Deploy to production skyhook deploy --service billing # Deploy specific service skyhook deploy --env staging --build # Build and deploy to staging skyhook deploy --env dev --build --code-ref feature/my-branch -y # Non-interactive build+deploy ``` ### Options ``` --build Build new image before deploying --ci-ref string Git ref for CI workflow (default: main) --code-ref string Git ref for code (branch/tag); defaults to current branch --config-ref string Git ref for K8s config (default: main) --dry-run Show what would be deployed without deploying -e, --env string Target environment (e.g., dev, staging, prod) -h, --help help for deploy -i, --interactive Use the interactive multi-step form -s, --service string Service to deploy --tag string Image tag to deploy (for existing images) -y, --yes Skip all prompts and use defaults ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook deployments Source: https://docs.skyhook.io/cli-reference/skyhook_deployments ## skyhook deployments List recent deployments for a service ### Synopsis List recent deployment history for a service. Shows actual deployment events with environment, status, and runtime information. ``` skyhook deployments [flags] ``` ### Examples ``` skyhook deployments # List deployments for current service skyhook deployments --service billing # List for specific service skyhook deployments --env prod # Only show prod deployments skyhook deployments --limit 20 # Show more history skyhook deployments --days 7 # Show last 7 days skyhook deployments --json # Output as JSON ``` ### Options ``` -d, --days int Number of days of history to fetch (default 30) -e, --env string Only show deployments for this environment -h, --help help for deployments --json Output as JSON --limit int Number of deployments to show (default 10) -s, --service string Service to show deployments for ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook detect Source: https://docs.skyhook.io/cli-reference/skyhook_detect ## skyhook detect Detect project configuration ### Synopsis Analyze a project directory and detect its configuration. This command scans the specified directory (or current directory) to detect: * Programming language and framework * Container port from Dockerfile * Dockerfile build readiness and issues * Repository information from git * Monorepo structure (Nx, Turborepo, pnpm, etc.) * Environment variables used in code * Health, metrics, and documentation endpoints * API specification files Use this command to preview detection results, or for debugging detection issues. ``` skyhook detect [path] [flags] ``` ### Examples ``` skyhook detect # Analyze current directory skyhook detect ./my-service # Analyze specific path skyhook detect --json # Output as JSON (for scripting) skyhook detect --json | jq . # Pipe to jq for processing ``` ### Options ``` -h, --help help for detect --json Output as JSON ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook events Source: https://docs.skyhook.io/cli-reference/skyhook_events ## skyhook events View Kubernetes events for a service ### Synopsis View Kubernetes events related to a service. By default, fetches events via the Skyhook API. Use --local to fetch directly from your kubectl context. ``` skyhook events [flags] ``` ### Examples ``` skyhook events # Events via API skyhook events --env prod # Events from production skyhook events --local # Direct k8s access skyhook events --local -A # All namespaces via k8s ``` ### Options ``` -A, --all-namespaces Get events from all namespaces (local mode only) --context string Kubernetes context to use (local mode only) -e, --env string Environment to get events from -h, --help help for events --local Use local kubectl context instead of API -s, --service string Service to get events for --warnings-only Show only warning events ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook exec Source: https://docs.skyhook.io/cli-reference/skyhook_exec ## skyhook exec Execute a command in a pod ### Synopsis Execute a command in a running pod. Opens an interactive shell by default. Uses your current kubectl context. Environment variables: SKYHOOK\_ORG Default organization SKYHOOK\_SERVICE Default service (or use .koala.toml) SKYHOOK\_ENV Default environment (or use 'skyhook config set env') ``` skyhook exec [-- command] [flags] ``` ### Examples ``` skyhook exec # Interactive shell in pod skyhook exec --env prod # Shell in production pod skyhook exec -- /bin/sh # Specific shell skyhook exec -- ls -la # Run command and exit skyhook exec --first --env dev -- whoami # Non-interactive: auto-select first pod ``` ### Options ``` -c, --container string Container name --context string Kubernetes context to use -e, --env string Environment --first Auto-select first available pod (non-interactive) -h, --help help for exec -p, --pod string Specific pod name -s, --service string Service to exec into ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook finops Source: https://docs.skyhook.io/cli-reference/skyhook_finops ## skyhook finops FinOps and cost management commands ### Synopsis Set up cloud billing integrations for OpenCost. ### Options ``` -h, --help help for finops ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook finops setup-aws](/cli-reference/skyhook_finops_setup-aws) - Set up AWS billing integration for OpenCost * [skyhook finops setup-gcp](/cli-reference/skyhook_finops_setup-gcp) - Set up GCP billing integration for OpenCost # Skyhook finops setup aws Source: https://docs.skyhook.io/cli-reference/skyhook_finops_setup-aws ## skyhook finops setup-aws Set up AWS billing integration for OpenCost ### Synopsis Set up AWS infrastructure for OpenCost billing integration. Creates S3 buckets, CUR report, Glue database, Athena workgroup, and IAM role with IRSA trust policy. All flags are optional - values are auto-detected from your AWS CLI configuration and EKS cluster when not provided. ``` skyhook finops setup-aws [flags] ``` ### Examples ``` skyhook finops setup-aws skyhook finops setup-aws --account-id 123456789012 --region us-east-1 skyhook finops setup-aws --cluster-name my-cluster --oidc-provider-id ABC123 ``` ### Options ``` --account-id string AWS account ID (default: auto-detected) --cluster-name string EKS cluster name (default: auto-detected from kubectl context) -h, --help help for setup-aws --namespace string Kubernetes namespace where OpenCost is deployed (default "opencost") --oidc-provider-id string EKS OIDC provider ID (default: auto-detected) --region string AWS region (default: auto-detected) --service-account string Kubernetes service account name for OpenCost (default "opencost") ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook finops](/cli-reference/skyhook_finops) - FinOps and cost management commands # Skyhook finops setup gcp Source: https://docs.skyhook.io/cli-reference/skyhook_finops_setup-gcp ## skyhook finops setup-gcp Set up GCP billing integration for OpenCost ### Synopsis Set up GCP infrastructure for OpenCost BigQuery billing integration. Creates a GCP service account, grants BigQuery roles, sets up Workload Identity binding, and enables required APIs. All flags are optional - values are auto-detected from your gcloud configuration when not provided. ``` skyhook finops setup-gcp [flags] ``` ### Examples ``` skyhook finops setup-gcp skyhook finops setup-gcp --project-id my-project --region us-central1 skyhook finops setup-gcp --cluster-name my-cluster ``` ### Options ``` --cluster-name string GKE cluster name (default: auto-detected from kubectl context) -h, --help help for setup-gcp --namespace string Kubernetes namespace where OpenCost is deployed (default "opencost") --project-id string GCP project ID (default: auto-detected) --region string GCP region (default: auto-detected) --service-account string Kubernetes service account name for OpenCost (default "opencost") ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook finops](/cli-reference/skyhook_finops) - FinOps and cost management commands # Skyhook github Source: https://docs.skyhook.io/cli-reference/skyhook_github ## skyhook github Manage GitHub integration ### Synopsis Manage GitHub integration with Skyhook. ``` skyhook github [flags] ``` ### Examples ``` skyhook github # Interactive setup (bare form) skyhook github setup --cloud gcp # GCP-specific setup skyhook github setup --template-only # Generate template only ``` ### Options ``` -h, --help help for github ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook github setup](/cli-reference/skyhook_github_setup) - Set up GitHub Actions authentication with your cloud provider # Skyhook github setup Source: https://docs.skyhook.io/cli-reference/skyhook_github_setup ## skyhook github setup Set up GitHub Actions authentication with your cloud provider ### Synopsis Configure OIDC trust between GitHub Actions and your cloud provider. This enables GitHub Actions workflows to securely authenticate with AWS/GCP without storing long-lived credentials. The setup creates: AWS: OIDC Identity Provider + IAM Role GCP: Workload Identity Federation + Service Account The CLI can either: 1. Run cloud CLI commands directly (requires gcloud/aws CLI) 2. Generate a CloudFormation/Terraform template for manual deployment Full documentation: [https://docs.skyhook.io/infrastructure/cicd-setup/github-oidc](https://docs.skyhook.io/infrastructure/cicd-setup/github-oidc) ``` skyhook github setup [flags] ``` ### Examples ``` skyhook github setup # Interactive setup skyhook github setup --cloud gcp # GCP-specific setup skyhook github setup --template-only # Generate template only skyhook github setup --github-org my-org # Specify GitHub org explicitly ``` ### Options ``` --cloud string Cloud provider (gcp, aws) --dry-run Show what would be done --github-org string GitHub organization (auto-detected from git remote) -h, --help help for setup --repo string GitHub repository for infrastructure (optional) --template-only Generate template without executing ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook github](/cli-reference/skyhook_github) - Manage GitHub integration # Skyhook init Source: https://docs.skyhook.io/cli-reference/skyhook_init ## skyhook init Initialize a new service ### Synopsis Initialize a new Skyhook service by auto-detecting project configuration. This command scans the specified directory (or current directory) to detect: * Programming language and framework * Container port from Dockerfile * Repository information from git * Monorepo structure (Nx, Turborepo, pnpm, etc.) The detected configuration is presented in an interactive form for review before creating the service. Use 'skyhook detect' to preview detection results without creating a service. ``` skyhook init [path] [flags] ``` ### Examples ``` skyhook init # Interactive mode in current directory skyhook init ./my-service # Initialize from specific path skyhook init --yes # Non-interactive, use all detected defaults skyhook init --dry-run # Preview what would be created skyhook init -s my-api # Override the service name ``` ### Options ``` --dry-run Show what would be created without making changes -f, --force Re-import even if service config already exists -h, --help help for init -s, --service string Override the detected service name -y, --yes Non-interactive mode, use detected/default values ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook login Source: https://docs.skyhook.io/cli-reference/skyhook_login ## skyhook login Log in to Skyhook ### Synopsis Authenticate with Skyhook using your browser. This command will open your browser to authenticate with Skyhook via Auth0. After authentication, your credentials will be stored locally for future use. ``` skyhook login [flags] ``` ### Examples ``` skyhook login skyhook login --no-browser ``` ### Options ``` -h, --help help for login --no-browser Don't open the browser automatically ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook logout Source: https://docs.skyhook.io/cli-reference/skyhook_logout ## skyhook logout Log out from Skyhook ### Synopsis Log out from Skyhook by removing stored credentials. ``` skyhook logout [flags] ``` ### Examples ``` skyhook logout ``` ### Options ``` -h, --help help for logout ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook logs Source: https://docs.skyhook.io/cli-reference/skyhook_logs ## skyhook logs Stream logs from a service ### Synopsis Stream logs from a running service using stern. By default, streams logs from all pods in the selected environment. Uses stern for streaming and merging logs from multiple pods. Environment variables: SKYHOOK\_ORG Default organization SKYHOOK\_SERVICE Default service (or use .koala.toml) SKYHOOK\_ENV Default environment (or use 'skyhook config set env') ``` skyhook logs [flags] ``` ### Examples ``` skyhook logs # Stream from service in .koala.toml skyhook logs --env prod # Stream from production skyhook logs -A # Stream from all namespaces skyhook logs --service billing --env dev # Specific service and env skyhook logs --api --pod my-pod-abc123 # API mode: fetch from specific pod skyhook logs --first # Non-interactive: auto-select first pod ``` ### Options ``` -A, --all-namespaces Stream from all namespaces --api Use API mode (non-streaming, single pod) -c, --container string Container name (if multiple containers) --context string Kubernetes context to use -e, --env string Environment to get logs from --first Auto-select first available environment/pod (non-interactive) -h, --help help for logs -p, --pod string Specific pod name (API mode only) -s, --service string Service to get logs for --tail int Number of lines to show initially (default 50) ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook onboard Source: https://docs.skyhook.io/cli-reference/skyhook_onboard ## skyhook onboard Set up Skyhook for your organization ### Synopsis Interactive wizard to set up Skyhook step by step. This command guides you through: * Connecting Kubernetes clusters * Setting up GitHub integration * Bootstrapping ArgoCD * Importing your first service ``` skyhook onboard [flags] ``` ### Examples ``` skyhook onboard # Full interactive wizard skyhook onboard cluster connect # Connect current kubectl context skyhook onboard status # Show what's configured ``` ### Options ``` --from string start from a specific step (cluster, github, argocd, deploy-auth, service) -h, --help help for onboard --skip string skip specific steps (comma-separated: cluster,github,argocd,deploy-auth,service) ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook onboard addons](/cli-reference/skyhook_onboard_addons) - Install essential cluster addons * [skyhook onboard argocd](/cli-reference/skyhook_onboard_argocd) - Set up GitOps with ArgoCD * [skyhook onboard cluster](/cli-reference/skyhook_onboard_cluster) - Connect or create clusters * [skyhook onboard deploy-auth](/cli-reference/skyhook_onboard_deploy-auth) - Set up deployment repo authentication * [skyhook onboard github](/cli-reference/skyhook_onboard_github) - Set up GitHub Actions authentication with your cloud provider * [skyhook onboard status](/cli-reference/skyhook_onboard_status) - Show onboarding progress # Skyhook onboard addons Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_addons ## skyhook onboard addons Install essential cluster addons ### Synopsis Install recommended addons on your clusters via GitOps. This step installs essential infrastructure addons that most production clusters need: * Cert Manager — automates TLS certificate management (Let's Encrypt) * Ingress Nginx — Kubernetes ingress controller for external traffic Each addon is installed by creating a PR in your GitOps repo, which ArgoCD picks up and deploys to your clusters. ``` skyhook onboard addons [flags] ``` ### Examples ``` skyhook onboard addons ``` ### Options ``` -h, --help help for addons ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization # Skyhook onboard argocd Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_argocd ## skyhook onboard argocd Set up GitOps with ArgoCD ### Synopsis Configure GitOps and ArgoCD for your organization. This command guides you through: 1. Setting up a GitOps deployment repository 2. Configuring GitHub App access for ArgoCD 3. Bootstrapping ArgoCD on your clusters (helm install + kubectl apply) 4. Adding ArgoCD as a managed addon via GitOps ``` skyhook onboard argocd [flags] ``` ### Examples ``` skyhook onboard argocd # Full 4-step flow skyhook onboard argocd setup-repo # Set up GitOps repo only skyhook onboard argocd configure-access # Set up GitHub App only skyhook onboard argocd bootstrap # Bootstrap ArgoCD on clusters skyhook onboard argocd install # Add ArgoCD addon only ``` ### Options ``` --dry-run show what would be done -h, --help help for argocd ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization * [skyhook onboard argocd bootstrap](/cli-reference/skyhook_onboard_argocd_bootstrap) - Bootstrap ArgoCD on your clusters via Helm * [skyhook onboard argocd configure-access](/cli-reference/skyhook_onboard_argocd_configure-access) - Set up GitHub App for ArgoCD repo access * [skyhook onboard argocd install](/cli-reference/skyhook_onboard_argocd_install) - Add ArgoCD as a managed addon via GitOps * [skyhook onboard argocd setup-repo](/cli-reference/skyhook_onboard_argocd_setup-repo) - Initialize the GitOps deployment repository # Skyhook onboard argocd bootstrap Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_argocd_bootstrap ## skyhook onboard argocd bootstrap Bootstrap ArgoCD on your clusters via Helm ### Synopsis Install the initial ArgoCD instance and apply bootstrap configuration. ArgoCD can't deploy itself via GitOps because it's not running yet. This step solves that chicken-and-egg problem by doing a one-time manual install. For each cluster, this will: * Authenticate to the cluster (gcloud/aws/az) * Run helm dependency build + helm install for ArgoCD * Apply the cluster-admin AppProject * Apply the bootstrap ApplicationSet After this, ArgoCD manages everything else via GitOps. ``` skyhook onboard argocd bootstrap [flags] ``` ### Examples ``` skyhook onboard argocd bootstrap ``` ### Options ``` -h, --help help for bootstrap ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard argocd](/cli-reference/skyhook_onboard_argocd) - Set up GitOps with ArgoCD # Skyhook onboard argocd configure access Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_argocd_configure-access ## skyhook onboard argocd configure-access Set up GitHub App for ArgoCD repo access ### Synopsis Create a GitHub App that gives ArgoCD access to your private repositories. This is different from GitHub OIDC (which connects GitHub Actions to your cloud provider). ArgoCD needs its own GitHub App to read deployment manifests from your GitOps repo. This will: * Create a GitHub App scoped to your organization * Install it on your GitHub org * Generate kubectl commands to create the ArgoCD credentials secret ``` skyhook onboard argocd configure-access [flags] ``` ### Examples ``` skyhook onboard argocd configure-access ``` ### Options ``` -h, --help help for configure-access ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard argocd](/cli-reference/skyhook_onboard_argocd) - Set up GitOps with ArgoCD # Skyhook onboard argocd install Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_argocd_install ## skyhook onboard argocd install Add ArgoCD as a managed addon via GitOps ### Synopsis Add ArgoCD Application manifests and Helm values to your GitOps repo. This creates a PR that your management ArgoCD will pick up to deploy ArgoCD configuration to your clusters. Requires ArgoCD to already be running (see 'skyhook onboard argocd bootstrap'). ``` skyhook onboard argocd install [flags] ``` ### Examples ``` skyhook onboard argocd install ``` ### Options ``` -h, --help help for install ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard argocd](/cli-reference/skyhook_onboard_argocd) - Set up GitOps with ArgoCD # Skyhook onboard argocd setup repo Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_argocd_setup-repo ## skyhook onboard argocd setup-repo Initialize the GitOps deployment repository ### Synopsis Set up a GitOps deployment repository for your organization. This will: * Create or use an existing GitHub repository for deployments * Initialize it with ArgoCD configuration for your clusters * Create a PR with the initial structure ``` skyhook onboard argocd setup-repo [flags] ``` ### Examples ``` skyhook onboard argocd setup-repo ``` ### Options ``` -h, --help help for setup-repo ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard argocd](/cli-reference/skyhook_onboard_argocd) - Set up GitOps with ArgoCD # Skyhook onboard cluster Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_cluster ## skyhook onboard cluster Connect or create clusters ### Synopsis Manage cluster connections for Skyhook. ``` skyhook onboard cluster [flags] ``` ### Examples ``` skyhook onboard cluster connect # Connect current kubectl context skyhook onboard cluster connect --context my-ctx # Connect specific context ``` ### Options ``` -h, --help help for cluster ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization * [skyhook onboard cluster connect](/cli-reference/skyhook_onboard_cluster_connect) - Connect an existing Kubernetes cluster # Skyhook onboard cluster connect Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_cluster_connect ## skyhook onboard cluster connect Connect an existing Kubernetes cluster ### Synopsis Connect an existing Kubernetes cluster to Skyhook. This command: 1. Detects cluster info from your kubectl context 2. Registers the cluster with Skyhook 3. Installs the skyhook-connector agent via helm 4. Waits for the agent to connect ``` skyhook onboard cluster connect [flags] ``` ### Examples ``` skyhook onboard cluster connect # Use current context skyhook onboard cluster connect --context gke_my-project_us-east1_my-cluster # Specific context skyhook onboard cluster connect --dry-run # Show what would happen skyhook onboard cluster connect --name prod-cluster # Override name ``` ### Options ``` --all connect all detected unconnected contexts --cloud string cloud provider (gcp, aws, azure - default: auto-detected) --context string kubectl context to use (default: current) --dry-run show what would be done without executing -h, --help help for connect --location string region/zone (default: auto-detected) --name string cluster name for Skyhook (default: auto-detected) --no-wait don't wait for connector to come online --project string cloud project/account ID (default: auto-detected) ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard cluster](/cli-reference/skyhook_onboard_cluster) - Connect or create clusters # Skyhook onboard deploy auth Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_deploy-auth ## skyhook onboard deploy-auth Set up deployment repo authentication ### Synopsis Configure authentication for cross-repo deployments. When your service uses a separate deployment repo (e.g., org/service deploys to org/deployment), the CI/CD workflow needs cross-repo access. This command helps you set up either: * A GitHub App (recommended) — scoped permissions, auto-rotating credentials * A Personal Access Token — quick setup, tied to one person ``` skyhook onboard deploy-auth [flags] ``` ### Examples ``` skyhook onboard deploy-auth ``` ### Options ``` -h, --help help for deploy-auth ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization # Skyhook onboard github Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_github ## skyhook onboard github Set up GitHub Actions authentication with your cloud provider ### Synopsis Configure OIDC trust between GitHub Actions and your cloud provider. This enables GitHub Actions workflows to securely authenticate with AWS/GCP without storing long-lived credentials. The setup creates: AWS: OIDC Identity Provider + IAM Role GCP: Workload Identity Federation + Service Account The CLI can either: 1. Run cloud CLI commands directly (requires gcloud/aws CLI) 2. Generate a CloudFormation/Terraform template for manual deployment Full documentation: [https://docs.skyhook.io/infrastructure/cicd-setup/github-oidc](https://docs.skyhook.io/infrastructure/cicd-setup/github-oidc) ``` skyhook onboard github [flags] ``` ### Examples ``` skyhook onboard github # Interactive setup skyhook onboard github --cloud gcp # GCP-specific setup skyhook onboard github --template-only # Just generate template ``` ### Options ``` --cloud string Cloud provider (gcp, aws) --dry-run Show what would be done --github-org string GitHub organization (auto-detected from git remote) -h, --help help for github --repo string GitHub repository for infrastructure (optional) --template-only Generate template without executing ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization # Skyhook onboard status Source: https://docs.skyhook.io/cli-reference/skyhook_onboard_status ## skyhook onboard status Show onboarding progress ### Synopsis Display the current onboarding status for your organization. Shows what's been configured and what steps remain. ``` skyhook onboard status [flags] ``` ### Examples ``` skyhook onboard status ``` ### Options ``` -h, --help help for status ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook onboard](/cli-reference/skyhook_onboard) - Set up Skyhook for your organization # Skyhook port forward Source: https://docs.skyhook.io/cli-reference/skyhook_port-forward ## skyhook port-forward Forward local port to a pod ### Synopsis Forward one or more local ports to a pod. Automatically detects the service port from the service configuration. If no port is specified, prompts to use the same local port or a random one. Uses your current kubectl context. Environment variables: SKYHOOK\_ORG Default organization SKYHOOK\_SERVICE Default service (or use .koala.toml) SKYHOOK\_ENV Default environment (or use 'skyhook config set env') ``` skyhook port-forward [LOCAL_PORT:]REMOTE_PORT [flags] ``` ### Examples ``` skyhook port-forward # Auto-detect port, prompt for local port skyhook port-forward 8080 # Forward local 8080 to pod 8080 skyhook port-forward 8080:80 # Forward local 8080 to pod 80 skyhook port-forward --env prod # Forward to production pod skyhook port-forward --random # Use random local port skyhook port-forward --first --random # Non-interactive: first pod, random port ``` ### Options ``` --address string Address to listen on (default "localhost") --context string Kubernetes context to use -e, --env string Environment --first Auto-select first available pod (non-interactive) -h, --help help for port-forward -p, --pod string Specific pod name --random Use a random local port -s, --service string Service to forward to ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook restart Source: https://docs.skyhook.io/cli-reference/skyhook_restart ## skyhook restart Restart a service deployment ### Synopsis Restart a service deployment by performing a rolling restart. Uses kubectl rollout restart to trigger a rolling update of all pods. Requires kubectl access to the target cluster. Environment variables: SKYHOOK\_ORG Default organization SKYHOOK\_SERVICE Default service (or use .koala.toml) SKYHOOK\_ENV Default environment (or use 'skyhook config set env') ``` skyhook restart [flags] ``` ### Examples ``` skyhook restart # Restart service in .koala.toml skyhook restart --service billing # Restart specific service skyhook restart --env prod # Restart in specific environment skyhook restart --first # Non-interactive: first deployment ``` ### Options ``` --context string Kubernetes context to use -e, --env string Environment --first Auto-select first deployment (non-interactive) -h, --help help for restart -s, --service string Service to restart ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook services Source: https://docs.skyhook.io/cli-reference/skyhook_services ## skyhook services List and manage services ### Synopsis List and manage services in your organization. Without arguments, lists all services. With a service name, shows details. ``` skyhook services [name] [flags] ``` ### Examples ``` skyhook services # List all services skyhook services billing-service # Show service details skyhook services --json # Output as JSON ``` ### Options ``` --debug Show full API response -h, --help help for services --json Output as JSON ``` ### Options inherited from parent commands ``` -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook status Source: https://docs.skyhook.io/cli-reference/skyhook_status ## skyhook status Show service status and health ### Synopsis Show the current status and health of a service. Displays pod status, replica counts, and deployment health across environments. ``` skyhook status [flags] ``` ### Examples ``` skyhook status # Status of service in .koala.toml skyhook status --service billing # Status of specific service skyhook status --env prod # Status in specific environment ``` ### Options ``` -e, --env string Environment to filter by -h, --help help for status -s, --service string Service to check status for ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook update Source: https://docs.skyhook.io/cli-reference/skyhook_update ## skyhook update Update the service with various configuration changes ### Synopsis Perform various configuration operations on the service, such as regenerating OpenAPI boilerplate, adding instrumentation, configuring SSL etc. Run one of the subcommands; running 'skyhook update' with no arguments prints help. ### Options ``` -h, --help help for update ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services * [skyhook update api](/cli-reference/skyhook_update_api) - Update the service's API boilerplate based on the OpenAPI spec * [skyhook update cicd](/cli-reference/skyhook_update_cicd) - Update the service's or job's CI/CD based on the config in .koala.toml * [skyhook update ingress](/cli-reference/skyhook_update_ingress) - Update the service's Ingress configuration based on the config in .koala.toml # Skyhook update api Source: https://docs.skyhook.io/cli-reference/skyhook_update_api ## skyhook update api Update the service's API boilerplate based on the OpenAPI spec ### Synopsis Update the service's API boilerplate based on the OpenAPI spec ``` skyhook update api [flags] ``` ### Options ``` -h, --help help for api ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook update](/cli-reference/skyhook_update) - Update the service with various configuration changes # Skyhook update cicd Source: https://docs.skyhook.io/cli-reference/skyhook_update_cicd ## skyhook update cicd Update the service's or job's CI/CD based on the config in .koala.toml ### Synopsis Update the service's or job's CI/CD based on the config in .koala.toml ``` skyhook update cicd [flags] ``` ### Options ``` -h, --help help for cicd -j, --job Treat .koala.toml as a job configuration instead of a service -m, --monorepo Generate workflows for a monorepo (shared workflows without service-specific defaults) -r, --reset Reset the CI/CD configuration to the default ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook update](/cli-reference/skyhook_update) - Update the service with various configuration changes # Skyhook update ingress Source: https://docs.skyhook.io/cli-reference/skyhook_update_ingress ## skyhook update ingress Update the service's Ingress configuration based on the config in .koala.toml ### Synopsis Update the service's Ingress configuration based on the config in .koala.toml ``` skyhook update ingress [flags] ``` ### Options ``` -h, --help help for ingress ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook update](/cli-reference/skyhook_update) - Update the service with various configuration changes # Skyhook upgrade Source: https://docs.skyhook.io/cli-reference/skyhook_upgrade ## skyhook upgrade Upgrade skyhook CLI to the latest version ### Synopsis Upgrade skyhook CLI to the latest version. Downloads and installs the latest release from GitHub. If installed via Homebrew, provides instructions to use brew upgrade instead. ``` skyhook upgrade [flags] ``` ### Examples ``` skyhook upgrade # Upgrade to latest version skyhook upgrade --check # Check for updates without installing ``` ### Options ``` --check Check for updates without installing -h, --help help for upgrade ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook version Source: https://docs.skyhook.io/cli-reference/skyhook_version ## skyhook version Print the skyhook CLI version ### Synopsis Print the skyhook CLI version. Equivalent to 'skyhook --version'. Useful for scripts and bug reports. ``` skyhook version [flags] ``` ### Options ``` -h, --help help for version ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Skyhook whoami Source: https://docs.skyhook.io/cli-reference/skyhook_whoami ## skyhook whoami Show information about the logged in user ### Synopsis Show information about the currently authenticated user. Example: skyhook whoami ``` skyhook whoami [flags] ``` ### Options ``` -h, --help help for whoami ``` ### Options inherited from parent commands ``` --debug Enable debug mode (shows full API requests/responses) -o, --org string Organization name -v, --verbose Enable user-friendly verbose output ``` ### SEE ALSO * [skyhook](/cli-reference/skyhook) - skyhook is a CLI tool to help you create and manage k8s services # Home Dashboard Source: https://docs.skyhook.io/getting-started/home-dashboard Your org at a glance — cluster health, recent deployments, active issues, and workloads — on a single landing page. When you log into Skyhook, the **Home** page is the first thing you see. It's an overview of your organization's Kubernetes footprint on a single screen: cluster health, recent deployments across every service, active issues that need attention, and quick access to your workloads. Home dashboard overview page showing 4 cluster cards with CPU and memory bars at the top, Recent Deployments feed and Active Issues panel in the middle, and Your Workloads grid at the bottom ## Layout ### Quick actions The top-right of the page has three buttons: * **Deploy** — opens the deploy dialog for any service * **New Service** — opens the service creation wizard * **New Job** — opens the job creation wizard These are hidden when no clusters are connected (since you can't deploy anywhere), and replaced with onboarding guidance. ### Cluster health cards One card per connected cluster, sorted by size and arranged in a horizontally-scrollable row with fade edges. Each card shows: * **Cluster name** and **cloud provider** — color-coded for AWS, GCP, Azure so you can tell providers apart at a glance * **CPU and memory utilization** (percent of total cluster capacity in use) * **Node count** and **pod count** * **Status** — Online, Inactive, Error, or Configured * **Issues** — hover to see active issues affecting the cluster, with direct links to the resources Clicking a cluster card opens its detail page. ### Recent Deployments A live feed of the most recent deployments **across every service in the org**, not just one. Each row shows: * Service name * Target environment * Who deployed it * Time ago Click any row to jump to the specific deployment in that service's Deployments tab. The feed covers the last 5 days. ### Active Issues Surfaces cluster-level problems that need attention. Two view modes: * **Grouped view** — one row per issue type, showing how many clusters are affected and which specific resources. Each group expands to reveal the full list. * **Flat view** — one row per affected resource, with a rich hover tooltip showing full details. Each issue has clickable resource links that jump directly to the affected resource in the cluster resource viewer. Common issues surfaced here: * Pods pending due to insufficient resources * ImagePullBackOff / CrashLoopBackOff * Node conditions (MemoryPressure, DiskPressure, PIDPressure) * Persistent volume claims that can't bind ### Your Workloads A grid of the services and jobs in your org, with a **View all** link to the full list. Each card shows the workload name, a description, the type (api-gateway, frontend, argo cronworkflow, kubernetes cronjob, etc.), and the most recent commit message and time. ## Onboarding experience (new orgs) The home dashboard adapts to your setup state so new users always know what to do next: The dashboard is replaced with a **Welcome to Skyhook** experience that offers a **Connect Cluster** button and a guided **Setup Wizard**. Quick action buttons (Deploy, New Service, New Job) are hidden because they wouldn't do anything useful yet. The cluster health and active issues sections work as normal. The **Your Workloads** section shows an **Add a service to Skyhook** card pointing to the create/import flow, and the recent activity feed shows a friendly **No recent activity** message with a pointer toward deploying your first service. Services, Jobs, Clusters, Environments, Addons, and FinOps all show a setup checklist when critical prerequisites are missing, rather than empty or broken states. Each one offers a **Connect Cluster** action and a **Setup Wizard** so new users never hit a dead end. ## Troubleshooting Hard-refresh the page. If it still doesn't load, check the browser console for errors and reach out to support. The feed shows deployments from the **last 5 days**. If your org has been quiet longer than that, the feed will be empty — this is expected. Click any service in **Your Workloads** to see its full deployment history. The cluster agent can't reach Skyhook. Click the card to open the cluster detail page, then check the agent status. Common causes: the agent pod isn't running, outbound connectivity is blocked, or the connector chart needs an upgrade. # Onboarding Guide Source: https://docs.skyhook.io/getting-started/onboarding-guide Provision new Kubernetes clusters and set up your infrastructure **Total time: \~30-45 minutes** (varies by provisioning method) The Skyhook onboarding guide is an interactive wizard that walks you through provisioning **new Kubernetes clusters** and configuring essential infrastructure. If you already have existing clusters, see the [Quick Start](/getting-started/quick-start) guide instead. The onboarding wizard appears automatically when you first sign in to [app.skyhook.io](https://app.skyhook.io). It remembers your progress and picks up where you left off if you exit partway through. ## UI or CLI The same onboarding flow is available from the terminal: ```bash theme={"system"} skyhook onboard ``` The CLI version runs the same cluster-connect → GitHub OIDC → ArgoCD bootstrap → first-service sequence as the UI wizard, and is often faster when you already have `kubectl`, `gcloud`/`aws`, and `gh` set up locally — it can detect your current cluster, register the OIDC trust, and `helm install` the connector without you copy-pasting commands between pages. You can also run individual steps (`skyhook onboard cluster connect`, `skyhook onboard github`, `skyhook onboard argocd`) and check progress at any time with `skyhook onboard status`. The rest of this page describes the **UI wizard**. Pages linked from each step explain the matching CLI commands. ## First-time login When you sign in for the very first time, Skyhook walks you through a short setup before the main wizard appears: If your GitHub account belongs to multiple organizations, Skyhook shows an **organization selection** page. Pick the org you want this Skyhook tenant to be scoped to. You can switch organizations later from the sidebar org picker. Skyhook asks whether you want to **connect an existing cluster** (fast path, see [Quick Start](/getting-started/quick-start)) or **provision a new one** (slower, this guide). You can mix — provision one cluster now, connect others later. Skyhook opens the onboarding wizard and you're on step 1. ## Prerequisite checklist on every page As you set things up, Skyhook shows a **setup checklist** on pages that depend on prerequisites — Services, Jobs, Clusters, Environments, Addons, FinOps. Each checklist shows exactly what's missing and offers: * A **Connect Cluster** primary action when a cluster is needed * A **Setup Wizard** secondary action that reopens the onboarding wizard from where you left off This way you never hit an empty or broken page — if a feature depends on something you haven't done yet, Skyhook tells you what and how to fix it. ## What the Guide Does The onboarding wizard helps you set up Skyhook with your Kubernetes clusters. You can provision new clusters on a major cloud provider (GCP, AWS, or Azure) or connect existing clusters from any source - including on-prem, bare-metal, OVH, DigitalOcean, or any Kubernetes distribution. The wizard walks you through: * **Cluster Provisioning** - Create new Kubernetes clusters using Terraform, CloudFormation, or Skyhook's Infra-Manager * **VPC Network Setup** - Automatically configure networking infrastructure * **Skyhook Cluster Connector Installation** - Connect clusters to Skyhook for monitoring and management * **GitHub & GitOps Setup** - Configure GitHub access and install ArgoCD * **Addon Configuration** - Set up cert-manager and nginx-ingress * **Service Import** - Optionally import existing services The wizard automatically handles VPC network setup and cluster provisioning. You'll need to provide cloud provider credentials and configuration settings. ## Before You Start ### Cloud Provider Requirements Ensure you have the necessary cloud provider setup before starting the wizard: **Required before onboarding**: * GCP Account with a GCP Project * Enabled APIs: "Artifact Registry API" and "Compute Engine API" * Docker Image Registry (Google Artifact Registry or other compatible registry) **What the wizard handles (if needed)**: * VPC Network creation * GKE cluster provisioning **Required before onboarding**: * AWS Account with an AWS Profile * Docker Image Registry (AWS ECR or other compatible registry) **What the wizard handles (if needed)**: * VPC Network creation * EKS cluster provisioning **Required before onboarding**: * Azure Account with subscription * Docker Image Registry (Azure Container Registry or other compatible registry) **What the wizard handles (if needed)**: * VPC Network creation * AKS cluster provisioning **Required before onboarding**: * An existing Kubernetes cluster (any distribution - on-prem, bare-metal, OVH, DigitalOcean, k3s, etc.) * kubectl access to the cluster * Docker Image Registry (Docker Hub, GitHub Container Registry, Harbor, or any OCI-compliant registry) **No cloud provider account or CLI is required.** The wizard will skip the provisioning step and go directly to cluster connection. ## Step 1: Cloud Provider Selection (2 min) Choose your platform: AWS, GCP, Azure, or **Bring Your Own Cluster** for any other Kubernetes distribution. This determines which provisioning templates and configuration options are available. BYOK clusters skip provisioning and go directly to cluster connection. Onboarding wizard with cloud provider options and cluster creation strategy ## Step 2: Provision New Cluster (15-30 min) The wizard guides you through cluster provisioning: ### Provisioning Configuration (5 min) 1. **Provision Method**: Choose your infrastructure tool * **Terraform** - Use Skyhook's Terraform templates * **Native Platform Tools** - AWS CloudFormation/GCP Deployment Manager/ARM Tempaltes 2. **Topology**: Select your cluster layout * **Single Cluster** - All environments in one cluster (lean setup) * **Multi-Cluster** - Separate clusters for prod/non-prod + management cluster (recommended) 3. **Configuration**: Fill in cloud-specific settings * Cluster name, region/zone * Node pool size and machine types * Network configuration 4. **Execution Method** (Terraform only): * **Manual** - Download Terraform files and run locally * **Automated** - Let Skyhook execute via GitHub Actions ### Provisioning Execution (10-20 min) The wizard generates your infrastructure code and guides you through execution. Provisioning time varies by cloud provider and cluster size. ### Connect Provisioned Cluster (5 min) Once provisioning completes: 1. Install the Skyhook Connector using the provided `helm install` command 2. Verify the cluster connection appears **ONLINE** in the Skyhook dashboard ## Step 3: GitHub & GitOps Setup (5 min) The wizard sets up GitHub access and GitOps automation using ArgoCD: ### GitHub Authentication Choose your authentication method: * **GitHub Token** - Manual personal access token setup * **GitHub OIDC** - Automated OIDC-based authentication (recommended) This grants ArgoCD access to your repositories for GitOps workflows. GitHub authentication configuration in the onboarding wizard ### ArgoCD Installation The wizard guides you through installing ArgoCD: 1. Run the provided `helm install` command to deploy ArgoCD on your management cluster 2. Set up a GitOps repository (create new or connect existing) 3. Configure repository access for ArgoCD ArgoCD is Skyhook's recommended approach for managing cluster addons. It provides GitOps-based automation, version control, and drift detection for your infrastructure. ## Step 4: Addon Configuration (3 min) Configure essential Kubernetes addons through the wizard: ### Core Addons * **cert-manager** - Automates TLS certificate management with Let's Encrypt * **nginx-ingress** - Handles ingress routing and load balancing ### Configuration The wizard helps you: * Select which clusters to install each addon on * Configure addon settings (ingress class, certificate issuers, etc.) * Generate ArgoCD Applications to manage the addons Once configured, ArgoCD automatically deploys and maintains these addons across your clusters. ## Step 5: Import Services (2 min) Import existing services from your repositories or create new services. You can skip this step and add services later. Service import is optional during onboarding. You can import or create services anytime from the Services page. See [Creating and Importing Services](/application/services/create-import) for details. ## After Onboarding Once the wizard completes, you'll have: * ✅ Kubernetes clusters connected and monitored by Skyhook * ✅ Skyhook Cluster Connector syncing cluster state in real-time * ✅ ArgoCD managing your infrastructure via GitOps * ✅ cert-manager automating TLS certificates * ✅ nginx-ingress handling external traffic * ✅ GitOps repository with all configurations version-controlled You can now: * [Deploy services](/application/services/overview) to your clusters * [Monitor cluster health](/infrastructure/clusters/cluster-view) and resources * [Manage addons](/infrastructure/gitops/management-cluster) through the GitOps control plane * [Configure environments](/application/environments/overview) for your applications ## Recommended Tools These tools are worth having for working with Skyhook and Kubernetes: ```bash theme={"system"} # Basic Kubernetes tools brew install kubectl kustomize helm # Development and workflow tools brew install skaffold kubectx stern # Optional: Skyhook CLI (web UI supports all features) brew install skyhook-io/tap/skyhook ``` ### Alternative: Install Skyhook CLI on Windows or without Homebrew **Windows (Scoop):** ```powershell theme={"system"} scoop bucket add skyhook https://github.com/skyhook-io/scoop-bucket scoop install skyhook ``` **macOS / Linux without Homebrew:** ```bash theme={"system"} curl -fsSL https://get.skyhook.io/install.sh | sh ``` **Windows without Scoop (PowerShell):** ```powershell theme={"system"} irm https://get.skyhook.io/install.ps1 | iex ``` For other cases, grab the latest release from [GitHub Releases](https://github.com/skyhook-io/skyhook-cli/releases/latest). The Skyhook CLI includes a self-update command. Run `skyhook upgrade` to update to the latest version (Homebrew/Scoop users should upgrade through their package manager). **Tool descriptions**: * **kubectl** - Kubernetes command-line tool * **kustomize** - Template-free Kubernetes configuration customization * **helm** - Kubernetes package manager * **skaffold** - Automates development workflows for Kubernetes applications * **kubectx** - Simplifies working with multiple clusters and namespaces * **stern** - Tails and filters logs from multiple pods and containers * **skyhook CLI** - Optional command-line interface (all features available in web UI) ## Skipping Onboarding You can skip the wizard and set things up manually: 1. [Connect clusters manually](/infrastructure/clusters/connecting-clusters) 2. [Set up ArgoCD](/infrastructure/gitops/overview) for addon management 3. Install addons via ArgoCD or helm directly 4. [Deploy services](/application/services/create-import) as needed The manual approach gives you full control but requires more Kubernetes knowledge. If you skip the onboarding wizard, make sure to install the Skyhook Cluster Connector on each cluster. Without it, Skyhook cannot monitor or manage your clusters. ## Next Steps Start deploying applications to your clusters View cluster status, nodes, and resource usage Learn more about ArgoCD and GitOps workflows Manage cluster addons via GitOps Set up staging, production, and preview environments Add environment variables and secrets to your services ## Need Help? If you get stuck during onboarding: * Check the inline help text in each wizard step * Refer to our detailed guides for [clusters](/infrastructure/clusters/connecting-clusters), [GitOps](/infrastructure/gitops/overview), and [services](/application/services/overview) * [Contact support](mailto:support@skyhook.io) for personalized assistance # Quick Start Source: https://docs.skyhook.io/getting-started/quick-start Connect your existing Kubernetes clusters to Skyhook in 20 minutes **Total time: \~20-25 minutes** This guide walks you through connecting **existing Kubernetes clusters** to Skyhook using the onboarding wizard. If you need to provision new clusters from scratch, see the full [Onboarding Guide](/getting-started/onboarding-guide) instead. The onboarding wizard at [app.skyhook.io](https://app.skyhook.io) provides an interactive flow that guides you through connecting your existing clusters and setting up essential infrastructure. ## What You'll Set Up By the end of this guide, you'll have: * Kubernetes clusters connected and monitored by Skyhook * GitHub integration for GitOps workflows * ArgoCD managing infrastructure as code * Essential addons (cert-manager, nginx-ingress) deployed ## Prerequisites Before starting, ensure you have: * **Existing Kubernetes clusters** (GKE, EKS, AKS, or any conformant Kubernetes cluster including on-prem and bare-metal) * **Cloud provider access** with appropriate permissions (not required for BYOK clusters) * **Docker image registry** (Google Artifact Registry, AWS ECR, Docker Hub, GitHub Container Registry, Harbor, or any OCI-compliant registry) * **GitHub account** for GitOps integration * **Basic tools** installed: `kubectl`, `helm` Sign in to [app.skyhook.io](https://app.skyhook.io) to start the onboarding wizard. It will appear automatically and remember your progress if you need to pause. ## Step 1: Select Cloud Provider & Existing Cluster Strategy (\~1 min) In the onboarding wizard: 1. **Choose your cloud provider**: AWS, GCP, Azure, or **Bring Your Own Cluster** (for on-prem, bare-metal, or other Kubernetes distributions) 2. **Select "Existing Cluster"** strategy (auto-selected for BYOK) The wizard will guide you through the existing cluster connection path. Onboarding wizard showing cloud provider selection and cluster strategy options ## Step 2: Connect Your Cluster (\~5 min) The wizard helps you register your cluster and install the Skyhook Cluster Connector: 1. **Register cluster**: Provide cluster name, cloud provider details, and region/zone Cluster registration form with fields for cluster name, GCP project, and location 2. **Install Skyhook Cluster Connector**: Copy and run the generated `helm install` command: ```bash theme={"system"} helm repo add skyhook https://skyhook-io.github.io/helm-charts helm repo update helm upgrade --install skyhook-cluster-connector skyhook/skyhook-cluster-connector \ --namespace skyhook-cluster-connector --create-namespace \ --set apiKey= ``` 3. **Verify connection**: Cluster status changes to **ONLINE** in the dashboard For detailed cluster connection steps including authentication setup, see [Connecting Clusters](/infrastructure/clusters/connecting-clusters). ## Step 3: Set Up GitHub & GitOps (\~10 min) The wizard guides you through GitHub authentication and ArgoCD installation: ### GitHub Authentication Choose your authentication method in the wizard: * **GitHub Token** - Manual personal access token setup * **GitHub OIDC** - Automated OIDC-based authentication (recommended) This grants ArgoCD access to your repositories for GitOps workflows. GitHub authentication setup showing OIDC configuration options ### Install ArgoCD The wizard provides `helm install` commands to deploy ArgoCD on your management cluster. Copy and run the provided command. ### Configure GitOps Repository The wizard helps you: 1. Create a new repository or connect an existing one 2. Configure ArgoCD to access the repository 3. Sync addon configurations to this repository ArgoCD provides GitOps-based automation, version control, and drift detection for your infrastructure. Learn more in the [GitOps Overview](/infrastructure/gitops/overview). ## Step 4: Configure Addons (\~5 min) The wizard helps you install essential Kubernetes addons through ArgoCD: ### Core Addons Configure these recommended addons: * **cert-manager** - Automates TLS certificate management with Let's Encrypt * **nginx-ingress** - Handles ingress routing and load balancing ### Configuration In the wizard: 1. Select which clusters to install each addon on 2. Configure addon settings (ingress class, certificate issuers, etc.) 3. The wizard generates ArgoCD Applications and commits them to your GitOps repository ArgoCD automatically deploys and maintains these addons across your clusters. For manual addon installation or advanced configuration, see [Addon Management](/infrastructure/gitops/management-cluster). ## Step 5: Import Services (\~2 min) \[Optional] Optionally import existing services from your repositories, or skip this step and add services later. You can skip service import during setup and add services when ready. See [Creating and Importing Services](/application/services/create-import) for details. ## What You Have Now After completing the quick start: * ✅ Kubernetes clusters connected and monitored by Skyhook * ✅ Skyhook Cluster Connector syncing cluster state in real-time * ✅ ArgoCD managing your infrastructure via GitOps * ✅ cert-manager automating TLS certificates * ✅ nginx-ingress handling external traffic * ✅ GitOps repository with all configurations version-controlled ## Next Steps Start deploying applications to your clusters View cluster status, nodes, and resource usage Set up staging, production, and preview environments Add environment variables and secrets to your services ## Need Help? * Check our detailed guides for [clusters](/infrastructure/clusters/connecting-clusters), [GitOps](/infrastructure/gitops/overview), and [services](/application/services/overview) * [Contact support](mailto:support@skyhook.io) for personalized assistance # What You Can Do with Skyhook Source: https://docs.skyhook.io/getting-started/what-you-can-do Overview of key capabilities and workflows Skyhook simplifies Kubernetes operations for development teams. Here's what you can do once you're set up. **Open Book Approach**: Skyhook manages everything through configurations in your own repositories and cloud infrastructure, using industry-leading best practices and tools from the ecosystem. You maintain full ownership and visibility of your infrastructure code. ## Service Management Create new services from templates or import existing ones. Deploy across multiple environments with automated CI/CD pipelines. Service creation form showing template selection and configuration options [Learn more →](/application/services/create-import) Configure environment variables, secrets, ingress settings, autoscaling policies, and resource limits per environment. Service configuration panel with environment-specific settings [Learn more →](/application/services/overview) ## Deployment & Environments Trigger deployments from Git branches, view deployment history, monitor build status, and track releases across environments. CI/CD deployment workflow showing build and deploy status [Learn more →](/application/cicd/overview) Automatically create ephemeral environments for pull requests. Test changes in isolation before merging to main branches. Preview environment workflow with PR-based deployments [Learn more →](/application/environments/preview) ## Cluster Operations View cluster status, node conditions, resource usage, and health issues at a glance. Identify problems before they impact services. Cluster health dashboard showing nodes, status, and resource usage [Learn more →](/infrastructure/clusters/cluster-view) Drill down into pods, services, deployments, ConfigMaps, and other Kubernetes resources. View live status, events, and YAML definitions. Resource viewer showing pod details and events [Learn more →](/infrastructure/clusters/resource-viewer) ## Infrastructure as Code Manage cluster addons and configurations through Git. Automated deployment, drift detection, and self-healing for your infrastructure. GitOps dashboard showing ArgoCD applications and sync status [Learn more →](/infrastructure/gitops/overview) Install and configure cert-manager, nginx-ingress, and other essential addons across clusters from the UI. Addon management interface for cert-manager and nginx-ingress [Learn more →](/infrastructure/gitops/management-cluster) ## Observability View and search logs from all pods across environments. Filter by time range, service, namespace, or search for specific terms. [Learn more →](/observability/logs) Monitor service performance with built-in metrics dashboards and distributed tracing integration for debugging issues. [Learn more →](/observability/overview) ## Jobs & Workflows Execute one-off Kubernetes jobs or complex Argo Workflows for batch processing, database migrations, and automation tasks. Jobs and workflows interface showing execution status [Learn more →](/application/jobs/overview) ## Team Collaboration Manage team members, control access with role-based permissions, and collaborate on shared infrastructure. Team management interface with user roles and permissions [Learn more →](/infrastructure/security/team-management) ## Ready to Get Started? Connect existing clusters in 20 minutes Provision new clusters with guided setup # Karpenter Source: https://docs.skyhook.io/infrastructure/addons/karpenter Automatic node provisioning and cost-aware scheduling for AWS clusters, with per-cluster node strategy management from Skyhook. [Karpenter](https://karpenter.sh/) is a Kubernetes node autoscaler that provisions the right-sized compute for your pods in seconds — instead of pre-provisioning a fixed node pool and hoping it fits your workloads. Skyhook ships Karpenter as a one-click addon for AWS clusters and adds a dedicated **Node Strategy** page where you can set the scheduling strategy per cluster. Karpenter currently supports **AWS clusters only**. Skyhook filters Karpenter out of the addon catalog for non-AWS clusters automatically. ## Installing Karpenter Karpenter is in the main addon catalog. From **Addons**, search for Karpenter and click **Install** on any AWS cluster. Karpenter addon detail page showing Cluster Installation Status with one installed cluster (acme-production-main) and Add buttons for other AWS clusters The addon installs two pieces: * **Karpenter controller** — the Kubernetes operator that watches pending pods and provisions nodes * **Default NodePool** — a starter NodePool with sensible defaults for consolidation, expiration, and disruption handling After merging the generated pull request, wait for ArgoCD to sync and for the Karpenter controller pods to come up. Once running, Karpenter starts reacting to new unschedulable pods on its own. ### Default NodePool behavior The default NodePool ships with conservative defaults: * **Consolidation** — Karpenter actively consolidates underutilized nodes (moving pods to fewer, larger or smaller nodes as appropriate) * **`consolidateAfter: 30s`** — nodes are considered for consolidation 30 seconds after becoming empty or underutilized * **`expireAfter`** — nodes expire on a schedule so fresh AMIs and patches roll through * **Cloud-provider-appropriate instance types** — the NodePool starts with a broad instance family selection that Karpenter narrows down based on actual pod requirements You can edit the NodePool YAML directly on the addon's Configure tab if you want to customize instance types, zones, Spot limits, or disruption behavior. ## Node Strategy page For multi-cluster Karpenter management, Skyhook adds a dedicated **Node Strategy** page at **Settings → Infrastructure → Node Strategy**. Node Strategy page showing a table of clusters with Provider, Location, Current Strategy, and New Strategy columns. AWS clusters show Install Karpenter buttons or an editable strategy dropdown; non-AWS clusters show Not Available ### What the page shows One row per cluster in your organization: * **Cluster** — cluster name * **Provider** — cloud provider (AWS / GCP / Azure / Other) * **Location** — region or zone * **Current Strategy** — the strategy Karpenter is currently using on that cluster * **New Strategy** — a dropdown to change the strategy, or **Install Karpenter** if it isn't installed yet, or **Not Available** if the cluster isn't on AWS ### Available strategies Karpenter provisions **Spot** instances first, falling back to On-Demand only when Spot capacity isn't available or when pods explicitly require On-Demand. Cheapest but may disrupt workloads more often. Karpenter provisions **On-Demand** instances first. Higher cost but more predictable — good for production workloads that can't tolerate Spot interruptions. Use Karpenter's built-in scheduling behavior without a Skyhook-provided strategy override. The NodePool's own settings determine placement. Changing a strategy opens a pull request that updates the NodePool manifest with the new scheduling rules. ArgoCD applies the change after merge, and Karpenter reconciles existing nodes against the new strategy over its next consolidation pass. ### Non-AWS clusters Non-AWS clusters appear on the page greyed out with **Not Available** because Karpenter only supports AWS. You'll see them listed so you have a full fleet view, but you can't install Karpenter on them. ## Using Karpenter with services Services you deploy to Karpenter-enabled clusters can influence node placement via **nodeSelector** and **tolerations** in their deployment settings. Skyhook surfaces a **Node Scheduling** card on the service's deployment settings tab that: * Lists all clusters the service is deployed to * Shows which ones have Karpenter installed * Offers **Karpenter quick actions** per cluster (for example, "Prefer Spot nodes", "Dedicate to this workload") * Autocompletes label keys from the actual nodes in the cluster, so you're not guessing label names ### Example: Spot workload To make a service prefer Spot nodes but still run on On-Demand if no Spot capacity is available: ```yaml theme={"system"} tolerations: - key: "karpenter.sh/capacity-type" operator: "Equal" value: "spot" effect: "NoSchedule" nodeSelector: karpenter.sh/capacity-type: spot ``` The Node Scheduling card on the service settings page generates these entries for you. ## Troubleshooting Karpenter only shows up for AWS clusters. If you're looking at a GCP, Azure, or Other/On-Prem cluster, Karpenter is filtered out because it doesn't apply. Clicking the button should open a pull request to install the Karpenter addon on that cluster. If nothing happens, check the browser console for errors and verify your GitOps repository is properly configured in **Settings → Code & Repositories**. Check three things: 1. **Karpenter controller is running** — check the cluster resource viewer for the `karpenter` namespace. If pods aren't healthy, review ArgoCD sync status for the addon. 2. **NodePool covers the required instance types** — if your pod requests a specific architecture (arm64) or a large resource footprint, make sure the NodePool's instance family selection includes nodes that can satisfy it. 3. **EC2 quota** — Karpenter can only provision nodes your AWS account has quota for. Check AWS Service Quotas for vCPU limits on the instance types Karpenter is trying to launch. Either switch that specific service to On-Demand via its Node Scheduling settings, or switch the entire cluster's strategy to **On-Demand-First** on the Node Strategy page. You can also configure Karpenter to pre-drain Spot nodes on interruption warnings so pods move gracefully — see the [Karpenter disruption docs](https://karpenter.sh/docs/concepts/disruption/). # Addons Source: https://docs.skyhook.io/infrastructure/addons/overview Install, configure, and manage cluster addons (Helm charts, Kustomize bases, custom charts) from a single catalog, synced to your clusters via GitOps. Addons are cluster extensions — cert-manager, ingress-nginx, Karpenter, OpenCost, Kyverno, Grafana, and anything else you'd normally install by hand — that Skyhook installs, configures, and keeps in sync via GitOps. Instead of running `helm install` per cluster and tracking values files in Git by yourself, you pick addons from a catalog, edit shared base values (with per-cluster overrides), and Skyhook generates a PR against your GitOps repository. ArgoCD then rolls the change out to every selected cluster. Addons main page showing the Fleet Status table across 5 clusters and the Installed section with cert-manager, external secrets operator, sealed secrets, and other addons ## Prerequisites * **GitOps configured** — Skyhook needs to know where to write addon manifests. See [GitOps overview](/infrastructure/gitops/overview). * **At least one connected cluster** — addons are per-cluster, so you need somewhere to install them. See [Connecting Clusters](/infrastructure/clusters/connecting-clusters). * **ArgoCD running on each target cluster** — ArgoCD is what actually applies the manifests after Skyhook writes them. ## The Addons page **Addons** in the sidebar opens the main catalog view. It has three sections stacked from top to bottom. ### Fleet Status A clusters × addons matrix above everything else. Each cell shows the sync and health status of that addon on that cluster, with a tooltip for any errors and a clickable link into the addon or cluster. * **Green check** — installed and in sync * **Amber warning** — installed but drifted or out of sync * **Red error** — installed but unhealthy (see tooltip for the ArgoCD error) * **Empty cell** — addon not installed on that cluster A summary above the matrix shows the total count of addons and clusters, plus how many are currently out of sync. Each cluster row has a three-dot menu with an **Import addons** entry point — useful when a new cluster needs to match the configuration of another. ### Installed "Addons managed by Skyhook through GitOps." Each card shows: * Addon logo + name and current chart version * One-line description * Cluster pills for the first few installed-on clusters and a `+N more` badge * Custom Helm charts (installed via the search box below) appear here too, with a generic package icon if no logo is available Clicking a card opens the addon's **Configure** page. ### Install any Helm chart + Suggested addons A search box wired to [ArtifactHub](https://artifacthub.io/) lets you install **any** public Helm chart — not just curated ones. Below the search, the **Suggested addons** catalog lists 34+ popular tools organized by category: * **Security** — Kyverno, Falco, Polaris, HashiCorp Vault, Trivy Operator * **Observability** — Grafana, Tempo, Loki, Prometheus Stack, Jaeger, OpenTelemetry Collector, Alloy * **Networking** — Istio, Cilium, Traefik, Envoy Gateway, External DNS * **Autoscaling & Infra** — Karpenter, KEDA, VPA, Metrics Server, Descheduler, Argo Rollouts / Workflows / Events * **Services** — CloudNativePG, MariaDB Operator, MinIO Operator, Strimzi Kafka, RabbitMQ Operator, Redis Operator, Harbor Addons catalog section showing the Install any Helm chart search box and Suggested addons tabs with category filters - All, Security, Observability, Networking, Autoscaling & Infra, Services ## Addon detail page Clicking any addon (installed or catalog) opens the detail page. The top shows the logo, version dropdown, description, and an **Uninstall** button. Below that, a flat tab row contains: * **Status** — per-cluster installation status table * **One tab per component** — e.g. `cert-manager (Helm)`, `cert-manager-crds (Kustomize)`, `letsencrypt-issuer (Kustomize)` — each addon declares what pieces it needs. Multi-component addons like cert-manager or OpenCost install several things at once. * **Secrets** — manage Kubernetes secrets consumed by this addon Addon detail page for Cert Manager showing the flat tab row - Status, cert-manager Helm, cert-manager-crds Kustomize, letsencrypt-issuer Kustomize, Secrets - and a cluster installation status table with Configured and Not Installed states ### Status tab The status tab lists every cluster in your organization and whether the addon is configured on each one. Not-installed clusters show an **Add** button. Click **Edit configuration** at the top of the table to jump to the component editor. ## Configuring an addon Each component tab opens an editor with three stacked sections: Cert Manager Helm editor showing Base Settings at top with curated fields (Replicas, Log level, Leader election), a Clusters sidebar on the left listing all org clusters with enable toggles, and a YAML editor on the right showing base/values.yaml with Diff and Preview buttons ### Base Settings (curated fields) The top panel exposes commonly-edited values as native form controls — sliders, toggles, text inputs — rather than raw YAML. Edits here are applied to **all clusters unless overridden**. Supported addons include cert-manager, KEDA, and others; curated fields are additive — anything not exposed is still editable in the YAML panel below. Curated-field edits preserve comments and formatting in the underlying YAML. ### Clusters sidebar A unified list of every cluster in your org. Configured clusters appear first with their values, an enable/disable toggle, and a remove button. Clusters not yet configured appear below with a **+** button to add them. Adding a cluster enables it automatically. The counter (e.g. `3 / 3 enabled`) shows how many of the configured clusters are currently enabled. ### YAML editor The right pane is a YAML editor showing either: * **base/values.yaml** — the shared base applied to all clusters, or * **\-values.yaml** — the per-cluster override when a specific cluster is selected in the sidebar Three toggle buttons sit above the editor: * **Diff** — shows what's changed since the version you started editing * **Preview** — renders the Helm chart with your current values and shows the resulting Kubernetes manifests, so you can catch template errors before creating the pull request * **vs Base** — when viewing a per-cluster file, shows the effective merged values (base + overrides) for that specific cluster A **Docs** tab at the top renders the Helm chart's README alongside the editor, useful when you need to look up what a value does without leaving the page. ### Saving changes Click **Create PR** at the bottom to write your changes as a pull request against the GitOps repository. The button label reminds you: *Changes are applied to your cluster after the PR is merged.* Once the PR merges, ArgoCD syncs the new values to the target clusters. ## Importing addons from existing clusters If you already have addons running on a cluster — either in GitOps or installed by hand — you can import them into Skyhook instead of re-configuring from scratch. Import Addons page with two cards - From GitOps Clusters (copy configurations from another cluster in the GitOps repo) and From Any Cluster (discover Helm releases via terminal command) ### From GitOps Clusters Multi-step wizard (**Addons > Import > From GitOps Clusters**) for when you have a working reference cluster already in GitOps: Pick the cluster that has the addons you want to copy. Search and filter across all addons installed on the source cluster, then select which to copy. Multi-component addons show all their pieces. Select one or more clusters to copy the addons onto. Per-addon tabs show each cluster-specific values override and YAML editor before creating the PR. Badges show the count of detected values per addon. Skyhook generates a single PR with all the copied configurations. After merge, ArgoCD applies them. When a new cluster connects, Skyhook detects ArgoCD status and offers to either **Copy Addons from an existing cluster** or **Set Up ArgoCD**, streamlining the post-registration experience. ### From Any Cluster (Helm snapshot) For clusters **not yet in GitOps** — a brownfield cluster with existing `helm install` releases — Skyhook provides a terminal command that captures a snapshot of the current Helm releases and uploads it. The snapshot is then used as the import source for the same wizard flow. This is useful for onboarding an existing environment without manually reverse-engineering every values file. ## Secrets tab The **Secrets** tab on an addon detail page manages Kubernetes secrets the addon depends on, per cluster. * **Namespace** is auto-detected from the addon's target namespace (editable if you need to override). * Each secret has a name, namespace, and a list of key/value pairs. * Saves go through the same **Create PR** flow as config changes — Skyhook batches secret updates alongside values edits. ### Missing secret detection As you edit a component, Skyhook scans the rendered manifests in the background for Kubernetes secret references. Any secret the chart expects but isn't configured yet shows up as a warning on the **Secrets** tab with a **Create** button that pre-fills the name and keys for you. If the background scan temporarily fails, the previously-detected results are kept so transient errors don't wipe out your list. ## ArgoCD sync status Sync and health status come from ArgoCD itself and are surfaced in multiple places: * **Fleet Status** matrix on the main addons page — at-a-glance cluster × addon coverage * **Installed** cards — sync status badge * **Cluster detail page** — a **Cluster Addons Health** card shows installed addons with sync status, chart version, and namespace, plus a quick link to **Copy Addons** from another cluster * **Addon Configuration** tab sidebar — per-cluster `err` badges with expandable error strips for clusters whose background preview failed Clicking any status cell jumps straight to the relevant addon or cluster page. ## Troubleshooting Check three things in order: 1. **PR merged?** Addon changes only apply after the generated pull request is merged into your GitOps repository. 2. **ArgoCD synced?** Open the addon's Fleet Status cell or the cluster's **Addons Health** card — if it shows an error, follow the tooltip to the ArgoCD application for details. 3. **Cluster enabled?** Open the addon's Status tab and verify the cluster shows as enabled. If it's listed but not enabled, re-save the configuration. Custom Helm charts (installed via the **Install any Helm chart** search) appear in the Installed section once Skyhook has processed the install. If it's still not showing, try a hard refresh. The background Helm template is running. Large multi-component addons can take a few seconds. Switching to the Secrets tab flushes any pending preview immediately to trigger missing-secret detection. Disabled cluster entries (`enabled: false`) in the source cluster are still valid configured components and show up in the copy-from wizard — this was fixed for multi-component addons like OpenCost where one sub-component may be disabled intentionally. If a component is truly missing, verify it exists in the source cluster's capability list. Click **Uninstall** at the top of an addon detail page. Skyhook generates a PR that removes the addon's manifests from the GitOps repo; ArgoCD prunes the resources on sync. Uninstalling does not delete the addon's namespace or persistent volumes — clean those up manually if needed. # GitHub Actions setup Source: https://docs.skyhook.io/infrastructure/cicd-setup/github-integration Give Skyhook's generated GitHub Actions workflows the credentials they need to build images and deploy to your clusters Skyhook generates GitHub Actions workflows that build your images and deploy to your clusters. Those workflows need two things from you: 1. **A way to authenticate to your cloud provider** — so they can push to your container registry and talk to your cluster's Kubernetes API 2. **A way to write back to your Git repos** — semver bumps on release, GitOps overlay updates, commits against a separate deployment repo This page covers both. For what the workflows do and which actions they call, see [CI/CD Configuration](/application/cicd/configuration). For the secret/variable names as a cheat-sheet, see [Secrets and variables reference](/application/cicd/configuration#secrets-and-variables-reference). ## Three GitHub integrations, three purposes If you run through full onboarding you'll set up as many as three separate GitHub integrations. They do different things — don't install one and assume it covers the others: | Integration | What it does | When you need it | Set up with | | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **GitHub Actions OIDC** | Lets your CI/CD workflows authenticate to AWS, GCP, or Azure without long-lived keys. | Every project that uses the generated workflows with a cloud provider. | [`skyhook github setup`](/cli-reference/skyhook_github_setup) | | **Deployment GitHub App** | Lets workflows push commits to a **separate deployment repo** (GitOps overlays, image-tag bumps). Issues short-lived App tokens, not user creds. | Only if your Kubernetes manifests live in a different repo from your code. | [`skyhook onboard deploy-auth`](/cli-reference/skyhook_onboard_deploy-auth) | | **ArgoCD GitHub App** | Lets **ArgoCD** read your GitOps repo from inside the cluster. Completely separate from the one above. | Only if you're using GitOps with ArgoCD. | [`skyhook onboard argocd configure-access`](/cli-reference/skyhook_onboard_argocd_configure-access) — covered in [GitOps with ArgoCD](/infrastructure/gitops/overview) | Most teams using GitOps end up with all three. Most teams doing direct kubectl deploys from a single repo only need the first. ## Cloud authentication The recommended path for AWS and GCP is OIDC — GitHub Actions authenticates to your cloud provider with a short-lived token, no long-lived keys to rotate. The Skyhook CLI can set this up end-to-end. [`skyhook github setup`](/cli-reference/skyhook_github_setup) creates the cloud-side trust relationship — the OIDC identity provider and an IAM role on AWS, or a Workload Identity Federation pool and service account on GCP — and prints the GitHub repository variables you need to add. ```bash theme={"system"} skyhook github setup ``` Useful flags: * `--cloud gcp` / `--cloud aws` — skip the cloud prompt * `--github-org ` — explicit GitHub org (auto-detected from git remote otherwise) * `--template-only` — print CloudFormation/Terraform instead of running cloud CLI commands, useful when you don't have `aws`/`gcloud` locally or want the setup applied by a platform team * `--dry-run` — show what would change without touching anything The command expects `gh` plus the relevant cloud CLI (`gcloud` or `aws`) to be installed and authenticated. If they're not, it falls back to template mode. On success you'll see the variables to add to **GitHub → Settings → Secrets and variables → Actions → Variables**: * AWS: `AWS_BUILD_ROLE`, `AWS_DEPLOY_ROLE` * GCP: `WIF_PROVIDER`, `WIF_SERVICE_ACCOUNT` You can re-run the command any time — it detects existing configuration and offers to update or reuse it. For the full OIDC flow — detection of existing setups, scope-mismatch handling, multi-account setups, template/dry-run modes, and the manual walkthroughs (GCP + AWS) using the same resource names the CLI creates — see [GitHub OIDC setup](/infrastructure/cicd-setup/github-oidc). Use this path if you can't or don't want to set up Workload Identity — for example, on restricted projects where you don't have IAM admin. 1. Set the right project: ```bash theme={"system"} gcloud config set project ``` 2. Create a service account and grant it the permissions the workflows need (GKE access + Artifact Registry write): ```bash theme={"system"} SA_NAME="github-actions" PROJECT="$(gcloud config get-value project)" SA_EMAIL="${SA_NAME}@${PROJECT}.iam.gserviceaccount.com" gcloud iam service-accounts create "$SA_NAME" \ --display-name="GitHub Actions deploy" for role in roles/container.developer roles/artifactregistry.writer; do gcloud projects add-iam-policy-binding "$PROJECT" \ --member="serviceAccount:$SA_EMAIL" --role="$role" done ``` 3. Generate a JSON key and download it: ```bash theme={"system"} gcloud iam service-accounts keys create sa-key.json \ --iam-account="$SA_EMAIL" ``` 4. Add the `sa-key.json` contents as a GitHub secret named `GCP_CREDENTIALS`: * Organization secret for org-wide access * Repository secret for single-repo access The generated build and deploy workflows fall back to `GCP_CREDENTIALS` when the WIF variables aren't set. Service account keys are long-lived credentials. Prefer Workload Identity Federation when you can — [`skyhook github setup`](/cli-reference/skyhook_github_setup) is the fastest path. Use this path if your environment can't support OIDC — for example, self-hosted GitHub Actions runners behind a firewall. Create a deploy user with the permissions the workflows need, generate an access key, and set it as GitHub secrets `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`: ```bash theme={"system"} AWS_REGION="us-east-1" IAM_USER_NAME="github-actions" aws iam create-user --user-name $IAM_USER_NAME # ECR (build) + EKS read access (deploy) aws iam attach-user-policy --user-name $IAM_USER_NAME \ --policy-arn arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryFullAccess aws iam put-user-policy --user-name $IAM_USER_NAME \ --policy-name EKSSkyhookAccessV1 \ --policy-document '{ "Version": "2012-10-17", "Statement": [{ "Action": ["eks:AccessKubernetesApi", "eks:Describe*", "eks:List*"], "Effect": "Allow", "Resource": "*" }] }' aws iam create-access-key --user-name $IAM_USER_NAME ``` Copy the `AccessKeyId` and `SecretAccessKey` from the output into GitHub secrets. If you're using EKS with the legacy `aws-auth` ConfigMap (rather than EKS access entries), map the IAM user in: ```bash theme={"system"} kubectl edit configmap aws-auth -n kube-system ``` ```yaml theme={"system"} data: mapUsers: | - userarn: arn:aws:iam:::user/github-actions username: github-actions groups: - system:masters # scope this down for production ``` Modern EKS clusters use [access entries](https://docs.aws.amazon.com/eks/latest/userguide/access-entries.html) instead — if your cluster was created after late 2023, prefer those over `aws-auth` edits. Create a service principal (Azure AD application) and grant it the roles the workflows need — **AcrPush** on your ACR and **Azure Kubernetes Service Cluster User Role** on your AKS cluster. Two credential paths: **OIDC with federated credentials (recommended).** No long-lived client secret — Azure AD trusts GitHub OIDC tokens directly. Configure a federated credential on the app registration with the GitHub subject pattern `repo:/:ref:refs/heads/main` (or `:pull_request`, `:environment:`, etc. depending on when workflows should be allowed to assume it). Then add these as GitHub repository **variables** (not secrets): * `AZURE_CLIENT_ID` — the app registration's application (client) ID * `AZURE_TENANT_ID` — your Azure AD tenant ID * `AZURE_SUBSCRIPTION_ID` — the subscription the AKS cluster lives in **Client secret.** If federated credentials don't work in your environment (e.g. self-hosted runners with no OIDC issuer), create a client secret and store all three as GitHub **secrets**: * `AZURE_CLIENT_ID` * `AZURE_CLIENT_SECRET` * `AZURE_TENANT_ID` Prefer the OIDC path — client secrets are long-lived and need rotation. For clusters you operate yourself and non-cloud registries (Docker Hub, GHCR, Harbor, Quay, or any OCI-compliant registry), the workflows use standard Kubernetes and Docker authentication. **Cluster access:** * Create a `KUBECONFIG` secret in GitHub with the base64-encoded contents of a kubeconfig scoped to your deployment namespace. Prefer a dedicated ServiceAccount with namespace-scoped RBAC over a cluster-admin credential. **Registry credentials:** * **GitHub Container Registry** — workflows use `github.token` automatically, no secret needed * **Docker Hub** — `DOCKERHUB_USERNAME` and `DOCKERHUB_TOKEN` secrets * **Private / OCI-compliant** — `REGISTRY_USERNAME` and `REGISTRY_PASSWORD` secrets **Image pull inside the cluster:** If your registry requires authentication to pull, create an `imagePullSecret` in each namespace: ```bash theme={"system"} kubectl create secret docker-registry regcred \ --docker-server= \ --docker-username= \ --docker-password= \ -n ``` No cloud provider CLI or IAM configuration is needed for BYOK. Kubernetes auth + Docker registry credentials are sufficient. ## Writing back to your repos The workflows push commits back to Git for a few reasons: bumping a service's `VERSION` file on release, writing new image tags into GitOps overlays, and (for services with a separate deployment repository) updating manifests in a repo other than the source repo. Each of those needs something more privileged than the default `GITHUB_TOKEN`. ### Separate deployment repositories If your Kubernetes manifests live in a different repo from your code, workflows need cross-repo access. Skyhook's **Deployment GitHub App** is the recommended way — fine-grained permissions, auto-rotating tokens, and attribution under a bot identity instead of a user. ```bash theme={"system"} skyhook onboard deploy-auth ``` [`skyhook onboard deploy-auth`](/cli-reference/skyhook_onboard_deploy-auth) walks through creating the GitHub App, installing it on the deployment repo, and storing the credentials where the workflows can find them. Supports re-running for reconfiguration. On success you'll have `GH_APP_ID` and `GH_APP_PK` as GitHub secrets (organization-wide or per-repo, depending on your GitHub plan). Open **Settings → Code & Repositories → GitHub App**, then **Install App**. See [GitOps → Deployment GitHub App](/infrastructure/gitops/overview#deployment-github-app) for the full walkthrough. Quick fallback — tied to one user's GitHub identity. 1. Create a [fine-grained PAT](https://github.com/settings/tokens?type=beta) with Contents: Read & Write on the deployment repo (and code repo if you need semver bumps). 2. Add it as a GitHub secret named `GHA_PAT` (repository or organization scope). The workflows fall back to `GHA_PAT` when the GitHub App credentials aren't set. ### Protected branches If your default branch is protected with required reviews, the workflow can't push `VERSION` bumps or GitOps overlay updates with the built-in `GITHUB_TOKEN` — GitHub [doesn't grant it bypass permissions](https://github.com/orgs/community/discussions/13836). The simplest fix is to use the `GH_APP_ID`/`GH_APP_PK` secrets from the Deployment GitHub App (recommended above) and allow that app to bypass branch protection under **Repository settings → Branches → Branch protection rules → Allow specified actors to bypass required pull requests**. As a fallback, you can use a PAT from a user with bypass permissions (organization admin, repository admin, or an explicit bypass actor): 1. Create a PAT at [https://github.com/settings/tokens](https://github.com/settings/tokens) with full `repo` access. 2. Add it as an org or repo secret named `GHA_PAT`. 3. Reference it in the checkout step of `release.yml` and (for GitOps) `deploy.yml`: ```yaml theme={"system"} - uses: actions/checkout@v6 with: token: ${{ secrets.GHA_PAT }} ``` The generated workflows reference `GHA_PAT` automatically when it's set, so step 3 isn't needed if you're on the current template. ## Verify the setup Once credentials are in place, trigger a run to confirm. From the service directory, use [`skyhook deploy`](/cli-reference/skyhook_deploy) to build and deploy to a safe environment: ```bash theme={"system"} skyhook deploy --env dev --build -y ``` Or push a commit to your default branch and watch the **Release** workflow run in GitHub Actions. If it fails on authentication, the [CI/CD troubleshooting guide](/application/cicd/troubleshooting#authentication-issues) maps the common error messages back to the specific secret or variable that's missing or misconfigured. # GitHub OIDC setup Source: https://docs.skyhook.io/infrastructure/cicd-setup/github-oidc Automate GitHub Actions OIDC trust with AWS or GCP using the Skyhook CLI, or set it up by hand GitHub Actions can authenticate to AWS and GCP using short-lived OIDC tokens instead of long-lived access keys. The Skyhook CLI automates the setup: it detects existing OIDC configuration in your cloud account, creates the required resources (or extends them), and prints the GitHub variables your workflows need. If you'd rather do it by hand — or your environment doesn't fit the automated path — the [manual walkthroughs](#manual-setup) below produce the same end state. OIDC is the recommended cloud authentication path. For the static-credential alternatives (GCP service account keys, AWS IAM access keys, Azure client secret, BYOK) and the non-OIDC pieces of the CI/CD setup — the Deployment GitHub App, protected branches, the verify step — see [GitHub Actions setup](/infrastructure/cicd-setup/github-integration). ## Run the step ```bash theme={"system"} skyhook github setup ``` `skyhook github setup` and `skyhook onboard github` are aliases — same flags, same behavior. The `setup` form is the canonical one; the `onboard github` form exists because the step is also the GitHub stage of the full `skyhook onboard` wizard. The command is interactive and: 1. **Resolves the cloud provider** from your Skyhook-registered clusters. A single supported cloud (GCP or AWS) is selected silently; multi-cloud setups prompt. BYOK (`other`) clusters don't influence detection — if all your clusters are BYOK, the CLI falls back to a generic `gcp`/`aws` prompt. For BYOK-only setups, use the [BYOK tab on GitHub Actions setup](/infrastructure/cicd-setup/github-integration) instead (OIDC doesn't apply there). 2. **Checks tooling and authentication** for `gcloud` / `aws` and `gh`. For GCP, the CLI actively exercises the credential with `gcloud auth print-access-token` so expired sessions are caught here, not mid-setup. 3. **Detects the GitHub org** from `git remote get-url origin` in the current directory, falling back to a prompt. 4. **Scans your cloud account** for an existing GitHub OIDC configuration (read-only; skipped in `--template-only` mode or when the cloud CLI isn't installed). 5. **Creates or extends the setup** based on what was found. 6. **Prints the GitHub variables** to copy into your repository or organization. ### Flags | Flag | Description | | --------------------- | ------------------------------------------------------------------------- | | `--cloud ` | Skip cloud auto-detection | | `--github-org ` | GitHub organization (defaults to the git remote in the current directory) | | `--template-only` | Emit a Terraform/CloudFormation template instead of executing | | `--dry-run` | Print the plan without creating anything | `--github-org` is the **GitHub** organization. The Skyhook org is set via `skyhook config set org ` or the root-level `-o/--org` flag — don't confuse the two. ## Prerequisites 1. **Cloud CLI installed and authenticated** * GCP: `gcloud` with an active login (not expired) * AWS: `aws` with `aws configure` or an active SSO session 2. **Cloud admin permissions** on the target project or account * GCP: manage Workload Identity Pools, service accounts, and IAM bindings * AWS: `iam:CreateOpenIDConnectProvider`, role management, and CloudFormation deploy 3. **`gh` CLI** (optional) — if installed, makes setting GitHub variables a one-liner 4. **A connected cluster in Skyhook** (recommended) — the CLI auto-detects your cloud provider from registered clusters. Without one, you'll be prompted to pick `gcp` or `aws`. Run `skyhook onboard status` first to see whether OIDC is already marked as configured for your organization. ## What the CLI creates On GCP, the CLI creates a full Workload Identity Federation stack in the current `gcloud` project: | Resource | Name | Purpose | | ---------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | Workload Identity Pool | `github-pool` | Container for OIDC providers | | OIDC Provider | `github-provider` | Accepts tokens from `token.actions.githubusercontent.com`; attribute mapping `google.subject=assertion.sub, attribute.repository=assertion.repository` | | Service Account | `github-actions-sa@.iam.gserviceaccount.com` | Impersonated by GitHub Actions | | SA IAM binding | `roles/iam.workloadIdentityUser` scoped to `principalSet://.../attribute.repository//*` | Lets any repo under your GitHub org impersonate the SA | | Project IAM bindings | `roles/artifactregistry.writer`, `roles/container.developer` | Lets the SA push images to Artifact Registry and deploy to GKE | Scope is enforced at the **binding** (the `principalSet` pattern), not on the provider. The provider itself has no `attributeCondition`, so the same pool/provider can be extended later by adding a binding for another org rather than reconfiguring the provider. After success, the CLI prints: ``` Add these to your GitHub repository variables: WIF_PROVIDER: projects/123456789/locations/global/workloadIdentityPools/github-pool/providers/github-provider WIF_SA: github-actions-sa@my-project.iam.gserviceaccount.com ``` The CLI labels the service-account value `WIF_SA` in the terminal for width, but the generated workflows expect the GitHub variable name to be `WIF_SERVICE_ACCOUNT`. Use `WIF_SERVICE_ACCOUNT` in GitHub. On AWS, the CLI creates all the resources directly via `aws iam` commands (matching how GCP execute mode creates its resources end-to-end): | Resource | Details | | ------------------------- | ------------------------------------------------------------------------------------------------- | | OIDC Identity Provider | URL `https://token.actions.githubusercontent.com`, audience `sts.amazonaws.com` | | IAM Role | `github-actions-deploy-role` — trust policy allows `repo:/*:*` from the GitHub OIDC provider | | Managed policy (attached) | `AmazonEC2ContainerRegistryPowerUser` | | Inline policy | `EKSDeployAccess` with `eks:AccessKubernetesApi`, `eks:DescribeCluster`, `eks:ListClusters` | After setup, the CLI prints the role ARN for you to copy into GitHub repository variables as `AWS_BUILD_ROLE` and `AWS_DEPLOY_ROLE` (both can point at the same role if you don't want to split build/deploy permissions). In `--template-only` mode, the CLI skips execution and prints a CloudFormation template that creates the same resources — useful for environments where you want the setup reviewed in PRs or applied from a central IaC pipeline. **Kubernetes RBAC mapping required.** An IAM role with `eks:*` permissions still needs a cluster-side identity before `kubectl apply` works. Use EKS Access Entries (recommended for clusters created after late 2023) or the legacy `aws-auth` ConfigMap. See the [manual AWS walkthrough](#aws-manual-setup) for the RBAC step. ## Existing OIDC detection The scan is read-only and produces one of four outcomes. ### Nothing found ``` Checking GCP project for existing Workload Identity setup... (read-only — no changes will be made) No existing GitHub OIDC configuration found in GCP project my-project. ``` The CLI proceeds with the full setup. ### Found, scope matches your GitHub org ``` Found GitHub OIDC provider in GCP project my-project Pool/Provider: github-pool/github-provider Service Account: github-actions-sa@my-project.iam.gserviceaccount.com Scope: my-org (org-wide) OIDC is already configured for 'my-org' — no changes needed. ``` Nothing is modified. The CLI exits successfully. A scope-match detection doesn't record completion in Skyhook's org settings — on a fresh machine, `skyhook onboard status` may still show this step as incomplete even though OIDC is already configured in the cloud. This is a known gap in the detect-and-exit path (the CLI has no force-mark path today). ### Found, scope mismatches Common when one cloud project serves multiple GitHub orgs, or the existing setup is scoped to a single repository. The CLI offers a menu — see [Handling scope mismatch](#handling-scope-mismatch) below. ### Could not check Usually a permissions issue. * **GCP** needs `iam.workloadIdentityPools.list` and `iam.serviceAccounts.getIamPolicy`. * **AWS** needs `iam:ListOpenIDConnectProviders` and `iam:GetRole`. The CLI asks whether to proceed anyway (safe — creation is idempotent: already-existing pools, providers, and SAs are reused), skip, or generate a template for an admin to apply. ## Handling scope mismatch You have GitHub OIDC in this cloud account, but it's scoped to a different GitHub org, a single repository, or a scope pattern the CLI couldn't parse. The CLI analyzes the existing setup's bindings and provider `attributeCondition` to pick the safest options: 1. **Extend automatically (recommended)** — shown when the CLI can safely add an IAM binding to the existing service account, mirroring the existing binding style (`attribute.repository_owner/` vs `attribute.repository//*`). If the existing provider's `attributeCondition` would reject tokens from your org, the CLI also proposes a relaxed replacement and shows the exact diff before running anything. GCP only — AWS trust-policy edits aren't automated. 2. **Create a new parallel OIDC setup** — always available. Creates an independent pool/provider/SA stack. Safest when the existing setup is complex or you don't want to modify it. 3. **Show me how to extend the existing setup myself** — when the CLI has a concrete extend plan, it prints the exact `gcloud` (or `aws iam`) commands for your specific setup. When auto-extend isn't feasible, it prints a diagnostic and recommends the parallel or manual path instead of speculative commands. Either way, run what's shown, then re-run `skyhook github setup`. 4. **Skip for now** — defer and come back later. All options require cloud admin permissions on the project — they differ in whether the CLI runs the commands or you do. When auto-extend isn't feasible (per-repo bindings, subject-scoped bindings, multiple service accounts, or an `attributeCondition` the CLI can't safely parse), the CLI prints a diagnostic of what it found, explains why it can't auto-extend, and recommends the parallel setup or manual path. ### Option 1: Extend automatically When the existing setup uses org-wide bindings with a simple `attributeCondition` (a single equality or `in [...]` list) — or no condition at all — the CLI can extend it without user intervention. If the condition needs updating (e.g., from `assertion.repository_owner == 'OldOrg'` to `assertion.repository_owner in ['OldOrg', 'your-org']`), the update is part of the plan. The confirmation shows every operation with its exact gcloud command before running anything. ### Option 2: Manually extend the existing setup Reuse the existing pool/provider by adding a new IAM binding for your GitHub org. When the CLI has enough information to build an extend plan, it prints the exact commands for your specific setup — substituting project number, pool/provider IDs, and SA email. Here's the shape (your output will have concrete values): ```bash theme={"system"} # 1. Fetch the project number (needed for the principalSet URI) gcloud projects describe PROJECT_ID --format='value(projectNumber)' # 2. Add the IAM binding (substitute PROJECT_NUMBER from step 1) gcloud iam service-accounts add-iam-policy-binding EXISTING_SA_EMAIL \ --role='roles/iam.workloadIdentityUser' \ --member='principalSet://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/EXISTING_POOL_NAME/attribute.repository/your-org/*' \ --project=PROJECT_ID ``` The `--member` string has to match what the existing provider's `attributeMapping` exposes: * If the provider maps `attribute.repository_owner` (common for org-scoped setups), use `attribute.repository_owner/your-org` (no `/*`). * If it only maps `attribute.repository` (what Skyhook's own parallel setup creates), use `attribute.repository/your-org/*`. The CLI's "Show me how to extend" output picks the right shape for your specific setup automatically. **Prerequisites**: * `roles/iam.serviceAccountAdmin` on the service account * If a condition update is also needed: `iam.workloadIdentityPools.providers.update` on the pool * The existing provider's `attributeCondition` (if any) must not exclude your org ```bash theme={"system"} # 1. Fetch the current trust policy aws iam get-role --role-name EXISTING_ROLE_NAME \ --query 'Role.AssumeRolePolicyDocument' > trust.json # 2. Edit trust.json — add "repo:your-org/*:*" to the # token.actions.githubusercontent.com:sub StringLike condition # alongside the existing entries: # # "token.actions.githubusercontent.com:sub": [ # "repo:existing-org/*:*", # "repo:your-org/*:*" # ] # 3. Apply the updated policy aws iam update-assume-role-policy --role-name EXISTING_ROLE_NAME \ --policy-document file://trust.json ``` **Prerequisites**: * `iam:UpdateAssumeRolePolicy` on the role * The role's attached permissions must be appropriate for your org's workflows After extending the existing setup manually, rerun `skyhook github setup` — detection will now show the scope covers your org and exit without changes. ## Manual setup Use this path when you can't or won't run `skyhook github setup` — restricted environments, admins who type commands personally, or IaC-only shops. The resource names below **match what the CLI creates**, so running the CLI later will detect your setup as already-configured instead of creating a parallel stack. ### GCP manual setup Substitute `` and `` throughout. ```bash theme={"system"} # 1. Create the Workload Identity pool gcloud iam workload-identity-pools create github-pool \ --location=global \ --display-name="GitHub Actions Pool" \ --project= # 2. Create the OIDC provider on that pool gcloud iam workload-identity-pools providers create-oidc github-provider \ --location=global \ --workload-identity-pool=github-pool \ --issuer-uri="https://token.actions.githubusercontent.com" \ --attribute-mapping="google.subject=assertion.sub,attribute.repository=assertion.repository" \ --project= # 3. Create the service account gcloud iam service-accounts create github-actions-sa \ --display-name="GitHub Actions Service Account" \ --project= # 4. Fetch the project number (needed for the principalSet URI) PROJECT_NUMBER=$(gcloud projects describe --format='value(projectNumber)') # 5. Allow any repo under your GitHub org to impersonate the SA gcloud iam service-accounts add-iam-policy-binding \ github-actions-sa@.iam.gserviceaccount.com \ --role=roles/iam.workloadIdentityUser \ --member="principalSet://iam.googleapis.com/projects/${PROJECT_NUMBER}/locations/global/workloadIdentityPools/github-pool/attribute.repository//*" \ --project= # 6. Grant the SA permissions the workflows need for role in roles/artifactregistry.writer roles/container.developer; do gcloud projects add-iam-policy-binding \ --member="serviceAccount:github-actions-sa@.iam.gserviceaccount.com" \ --role="$role" done ``` Add these as GitHub repository (or organization) variables under **Settings → Secrets and variables → Actions → Variables**: * `WIF_PROVIDER` = `projects//locations/global/workloadIdentityPools/github-pool/providers/github-provider` * `WIF_SERVICE_ACCOUNT` = `github-actions-sa@.iam.gserviceaccount.com` The CLI-created provider has **no** `attributeCondition` — scope is enforced at the IAM binding via the `principalSet://.../attribute.repository//*` pattern. This is intentional: the same pool/provider can be extended later by adding a binding for another org, without reconfiguring the provider. If you want defense-in-depth, you can add a provider-level condition that rejects tokens outside your org before they ever reach the binding check. It's an extra layer, not a replacement for the binding constraint: ```bash theme={"system"} gcloud iam workload-identity-pools providers update-oidc github-provider \ --location=global \ --workload-identity-pool=github-pool \ --attribute-mapping="google.subject=assertion.sub,attribute.repository=assertion.repository,attribute.repository_owner=assertion.repository_owner" \ --attribute-condition="assertion.repository_owner == ''" \ --project= ``` Per [Google's Workload Identity Federation with deployment pipelines guide](https://cloud.google.com/iam/docs/workload-identity-federation-with-deployment-pipelines). If you add this condition and later want to extend the setup to a second GitHub org, you'll need to either relax the condition (e.g., `in ['OrgA', 'OrgB']`) or reconfigure the provider — which is exactly the case the CLI handles via the "Update provider condition + extend automatically" option under scope-mismatch handling. ### AWS manual setup ```bash theme={"system"} # 1. Create the OIDC identity provider (once per AWS account) aws iam create-open-id-connect-provider \ --url https://token.actions.githubusercontent.com \ --client-id-list sts.amazonaws.com ``` Then create an IAM role with a trust policy that allows GitHub OIDC to assume it. Scope the `sub` claim to your org so random repos can't impersonate it: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Principal": { "Federated": "arn:aws:iam:::oidc-provider/token.actions.githubusercontent.com" }, "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringLike": { "token.actions.githubusercontent.com:sub": "repo:/*:*" }, "StringEquals": { "token.actions.githubusercontent.com:aud": "sts.amazonaws.com" } } }] } ``` Attach the permissions the workflows actually need: * **Build role** — `AmazonEC2ContainerRegistryPowerUser` (or narrower `ecr:*` on a single repository) for pushing to ECR. * **Deploy role** — an inline policy with EKS client permissions. Do **not** attach `AmazonEKSClusterPolicy` — that's the policy for the EKS control plane's own service role, not a client, and a workflow with it attached will still fail on `aws eks update-kubeconfig`. ```json theme={"system"} { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "eks:DescribeCluster", "eks:AccessKubernetesApi", "eks:ListClusters" ], "Resource": "*" }] } ``` **Map the role into Kubernetes.** An IAM role with `eks:AccessKubernetesApi` still needs RBAC inside the cluster before it can `kubectl apply`: * **EKS Access Entries** (recommended, for clusters created after late 2023) — `aws eks create-access-entry` + `aws eks associate-access-policy` with `AmazonEKSClusterAdminPolicy` (or a narrower one) * **`aws-auth` ConfigMap** (legacy) — add a `mapRoles` entry for the role ARN; see the AWS-keys tab on [GitHub Actions setup](/infrastructure/cicd-setup/github-integration) for the ConfigMap edit pattern Add the role ARN(s) as GitHub repository variables under **Settings → Secrets and variables → Actions → Variables**: * `AWS_BUILD_ROLE` — used by the build workflow (ECR) * `AWS_DEPLOY_ROLE` — used by the deploy workflow (EKS) Both can point at the same role if you don't want to split permissions. ## Multi-account and multi-project setups OIDC configuration applies to the **current** cloud account or project only. If your GitHub Actions workflows push images or deploy to multiple AWS accounts or GCP projects, run `skyhook github setup` in each one — switching `gcloud` config or AWS profile between runs. The CLI prints a reminder after setup with the account or project name so this is hard to miss. ## Template-only mode ```bash theme={"system"} skyhook github setup --template-only ``` Prints infrastructure-as-code instead of running the cloud CLI: * **GCP** — Terraform HCL (`google_iam_workload_identity_pool`, `..._provider`, `google_service_account`, bindings) * **AWS** — CloudFormation YAML (`AWS::IAM::OIDCProvider`, `AWS::IAM::Role` with the trust policy and EKS access policy baked in) Save the output to a file, review it, and apply with `terraform apply` or `aws cloudformation deploy`. Useful when you want the setup reviewed in PRs, applied from a central IaC pipeline, or when you don't have `gcloud`/`aws` installed locally — the CLI falls back to template mode automatically in that case. ## Dry run ```bash theme={"system"} skyhook github setup --dry-run ``` Prints the full plan (resources, names, and GitHub org scope) without creating anything. If `--template-only` is also set, `--dry-run` is ignored — template output is already non-destructive. ## After setup ### GitHub variables Set the variables printed by the CLI at the org level so every repo under the org can use them: ```bash theme={"system"} gh variable set WIF_PROVIDER --org your-org \ --body "projects/123456789/locations/global/workloadIdentityPools/github-pool/providers/github-provider" gh variable set WIF_SERVICE_ACCOUNT --org your-org \ --body "github-actions-sa@my-project.iam.gserviceaccount.com" ``` ```bash theme={"system"} gh variable set AWS_BUILD_ROLE --org your-org \ --body "arn:aws:iam::123456789012:role/github-actions-deploy-role" gh variable set AWS_DEPLOY_ROLE --org your-org \ --body "arn:aws:iam::123456789012:role/github-actions-deploy-role" ``` Repo-scoped variables work the same way — drop `--org` and add `--repo owner/name`. ### Status persistence On successful setup (including a successful Workload Identity binding), the CLI records OIDC completion in Skyhook's org settings. `skyhook onboard status` then shows the GitHub integration step as complete, and Skyhook's workflow codegen knows which variable values to inject into generated YAML. ### Generated workflows Skyhook's generated GitHub Actions workflows already reference `WIF_PROVIDER` / `WIF_SERVICE_ACCOUNT` (GCP) and `AWS_BUILD_ROLE` / `AWS_DEPLOY_ROLE` (AWS) — no workflow edits needed after setup. ## Troubleshooting ### Google Cloud session expired — reauthentication required Your `gcloud` credentials have expired. The CLI catches this up-front by exercising the token with `gcloud auth print-access-token`, so the error surfaces before any cloud operations run. When the CLI prompts, choose **Re-authenticate now and continue** — it runs `gcloud auth login` inline, without an account argument (passing an account forces gcloud into a password reauth flow that breaks for passkey and SSO accounts). Or run it manually: ```bash theme={"system"} gcloud auth login ``` Then rerun `skyhook github setup`. ### Workload Identity binding failed The pool, provider, and service account were created, but the `roles/iam.workloadIdentityUser` binding on the SA couldn't be added. OIDC setup is **incomplete** — GitHub Actions can't impersonate the service account until the binding exists, and the CLI will not mark the step complete. Verify you have `roles/iam.serviceAccountAdmin` on the service account (or project-level IAM admin), then rerun: ```bash theme={"system"} skyhook github setup ``` The step is idempotent. The existing pool, provider, and SA are reused; only the failed binding is retried. ### Could not check for existing OIDC configuration Detection failed, usually from missing read permissions. * **GCP** needs `iam.workloadIdentityPools.list` and `iam.serviceAccounts.getIamPolicy`. * **AWS** needs `iam:ListOpenIDConnectProviders` and `iam:GetRole`. If you're confident there's no existing setup, choose **Set up OIDC now** — resource creation is idempotent, so re-running is safe even if something does exist. Otherwise, have an admin apply the `--template-only` output instead. ### Multi-cloud: which cloud does the CLI pick? See [Multi-account and multi-project setups](#multi-account-and-multi-project-setups). For BYOK-only clusters, use the [BYOK tab on GitHub Actions setup](/infrastructure/cicd-setup/github-integration) instead — OIDC doesn't apply there. # Cluster View Source: https://docs.skyhook.io/infrastructure/clusters/cluster-view Monitor cluster health, detect problems, and view resource summaries The Cluster View provides a comprehensive health dashboard for each connected Kubernetes cluster. It surfaces problems, tracks resource utilization, monitors certificates, and gives you quick access to detailed resource inspection. Cluster view dashboard with health status and active problems ## Accessing Cluster View From the [Clusters List](/infrastructure/clusters/clusters-list), click any cluster name to open its Cluster View. ## Health Status At the top of the page, you'll see an overall health indicator showing the number of active issues detected in the cluster. **Status types:** * **Healthy** - No critical issues detected * **Warning** - Non-critical issues found (e.g., pod restarts, resource pressure) * **Critical** - Urgent problems requiring attention (e.g., CrashLoopBackOff, OOM kills) Click the health badge to jump to the Active Problems section below. ## Cluster Information Panel ### Agent Details * **Cluster Connector Version** - The version of the Cluster Connector running in this cluster * **API Key** - The unique authentication key for this cluster * **Reinstall Button** - Click to view the `helm upgrade` command to update the agent ### Networking Skyhook auto-assigns unique wildcard DNS (e.g., `*.7xzftmip.mct545.cluster-tests.com`) to each load balancer, so you can expose services without manual DNS setup. Just point your custom domain to the load balancer IP. The panel shows all LoadBalancer services with their external IPs, auto-generated DNS entries, and ingress classes. If you're running multiple ingress controllers (nginx + envoy), each gets its own DNS and IP, useful for traffic splitting, canary testing, or migrating between ingress implementations. ### Storage Classes Lists available storage backends for persistent volumes (e.g., `standard-rwo`, `premium-rwo` on GCP; `gp2`, `gp3` on AWS). The default storage class is marked; that's what PVCs use when you don't specify `storageClassName`. Helps you understand which storage options are available when provisioning volumes. ## Get Kubeconfig Pre-filled `gcloud` or `aws` command to configure kubectl access to your cluster from your terminal. The command includes your exact cluster name, region/zone, and project/account ID. Click copy when you need to run commands the UI doesn't support (custom kubectl plugins, helm charts, etc.). ## Cluster Resource Viewer Quick-access icons to jump directly to any resource type: Nodes, Services, Ingresses, Deployments, Pods, ConfigMaps, Service Accounts, Jobs, Custom Resources, and Events. Faster than clicking through tabs when you know what you're looking for. ## Active Problems The Active Problems panel automatically detects Kubernetes issues across your cluster with 18+ distinct problem types. Each problem is categorized by severity and includes temporal tracking. Active problems panel with color-coded severity chips ### Problem Types Detected **Node Problems:** * **NodeNotReady** (critical) - Nodes not accepting workloads * **MemoryPressure** (critical) - Node running low on memory * **DiskPressure** (critical) - Node running low on disk space * **PIDPressure** (minor) - Node running low on process IDs * **ManyCordonedNodes** (major) - Excessive nodes marked unschedulable **Pod/Container Problems:** * **CrashLoopBackOff** (critical) - Pods repeatedly failing to start * **ImagePullBackOff** (major) - Cannot pull container images * **OOMKilled** (critical) - Containers terminated due to out-of-memory * **CreateContainerConfigError** (minor) - Invalid container configuration * **LivenessProbeFailing** (critical) - Liveness health checks failing * **ReadinessProbeFailing** (minor) - Readiness health checks failing * **HighRestartCount** (major) - Pods restarting >5 times **Pod State Problems:** * **PodPending** (minor) - Pods stuck in Pending state * **UnschedulablePods** (minor) - Pods cannot be scheduled to nodes * **ManyFailedPods** (major) - Multiple pods in Failed state * **EvictedPods** (major) - Pods evicted due to resource pressure * **TerminatingPodsStuck** (major) - Pods stuck terminating >5 minutes **Storage & Workload Problems:** * **FailedMount** (minor) - Volume mount failures * **FailedAttachVolume** (major) - Volume attachment failures * **DegradedWorkloads** (major) - Deployments/StatefulSets with fewer ready replicas than desired ### How Problem Tracking Works Problems are tracked in two states: * **Active Problems**: Currently detected in your cluster's resource state. These affect your cluster health and are shown as colored chips. * **Recently Observed**: Detected in cluster events within the last 10 minutes but not currently active. These help you spot intermittent issues or auto-resolved problems. Each problem chip includes rich tooltips showing: * **Severity**: Critical (red), Major (orange), or Minor (yellow) * **Affected count**: How many resources have this problem * **First observed / Last seen**: Temporal tracking with duration * **Observation count**: How many times this problem was detected * **Remediation guidance**: Specific steps to fix the issue * **View Affected Resources button**: Directly filters the Resource Viewer to show impacted pods/workloads Fix an issue in your cluster and watch it move from Active Problems to Recently Observed within 1-2 minutes as the agent syncs changes. ## Resource Summary Cards Quick-view cards show high-level metrics for different resource categories: ### Nodes * **Total Nodes** - Number of nodes in the cluster * **Ready Nodes** - Nodes in Ready state and accepting workloads Click to view detailed node information including capacity, allocatable resources, and conditions. ### Workloads * **Healthy Workloads** - Deployments, StatefulSets, and DaemonSets meeting their desired state * **Total Workloads** - All workload resources in the cluster A workload is considered healthy if: * All desired replicas are ready * No pods in CrashLoopBackOff or Error state * All containers passing health checks ### Events * **Warning Events** - Events requiring attention * **Normal Events** - Informational events * **Total Events** - All cluster events in the last hour Click to filter and view all cluster events in the [Resource Viewer](/infrastructure/clusters/resource-viewer). ### Certificates * **Valid Certificates** - TLS certificates that haven't expired * **Total Certificates** - All cert-manager Certificate resources Skyhook tracks certificate expiration dates and alerts you before certificates expire. ## Capacity and Headroom The capacity section shows cluster-wide resource utilization with visual progress bars and overcommit detection. Capacity card showing requests and limits with overcommit warning ### Understanding Requests vs Limits * **Requests** - Guaranteed resources the cluster must provide (used for scheduling decisions) * **Limits** - Maximum resources pods can consume (pods are throttled or killed if exceeded) ### Reading the Metrics Each resource shows two progress bars: * **Solid bar (Requests)**: Guaranteed resources as % of node allocatable capacity * **Light overlay (Limits)**: Maximum possible usage as % of node allocatable capacity **Example from screenshot:** ``` CPU: Requests: 60% | Limits: 2558% ⚠️ Memory: Requests: 43% | Limits: 261% ⚠️ ``` **Interpretation:** * ✅ **CPU Requests (60%)**: Healthy headroom for scheduling new workloads * 🚨 **CPU Limits (2558%)**: Severely overcommitted - if all pods hit their limits simultaneously, nodes will throttle containers * ⚠️ **Memory Requests (43%)**: Good utilization with room to grow * 🚨 **Memory Limits (261%)**: Overcommitted - pods at risk of OOMKill if memory usage spikes **Limits >100% means overcommitment.** Progress bars show green (healthy), yellow (moderate), orange (high), or orange with warning icon (overcommitted). If all pods hit their limits simultaneously: * **CPU**: Containers get throttled (performance degradation) * **Memory**: Pods get killed (OOMKilled) based on priority Overcommitment isn't always bad; many workloads never hit their limits. Monitor actual usage in the namespace breakdown to see if you need to adjust limits or add nodes. ## Warning Events A detailed table of recent warning events aggregated by type. The table shows the most recent issues requiring attention. Warning events table showing aggregated cluster events **Columns:** * **Reason** - Event classification with color coding (Failed, Unhealthy, BackOff, etc.) * **Message** - Detailed event description (truncated for long messages) * **Affected Resource** - The pod, deployment, or resource triggering the event (clickable link) * **Namespace** - Where the event occurred * **Count** - How many times this event has been observed * **Last Seen** - When the event last occurred (e.g., "0m ago" for very recent events) Click any **Affected Resource** link to jump directly to that resource in the Resource Viewer for deeper inspection. ## Resource Usage by Namespace A breakdown of resource consumption across namespaces helps you: * **Identify resource-heavy namespaces**: Sort by CPU/Memory to find top consumers * **Detect overcommitment**: Compare requests vs limits per namespace * **Track team resource usage**: If you use namespace-per-team organization * **Plan capacity**: See which namespaces need quota adjustments **Table Columns:** * **Namespace** - The namespace name * **Pods** - Number of running pods * **CPU (Requests / Limits)** - Total requested and max CPU in cores (e.g., "4 / 12") * **Memory (Requests / Limits)** - Total requested and max memory in Gi (e.g., "8Gi / 24Gi") * **Quota Status** - ✅ Within quota or ⚠️ Over quota (if ResourceQuota defined) **Example Use Cases:** If `production` namespace shows 8 cores requested but only 5 pods running with low actual usage, you may have oversized resource requests preventing efficient scheduling. A namespace with 50 pods requesting 20 cores might indicate a scaling issue or resource leak, especially if replicas grew unexpectedly. If multiple namespaces show high request percentages and you're adding new services, use this data to justify adding nodes or adjusting quotas. # Clusters List Source: https://docs.skyhook.io/infrastructure/clusters/clusters-list View and manage all connected Kubernetes clusters The Clusters List shows all Kubernetes clusters connected to your Skyhook organization. Use this page to monitor cluster status, manage agent versions, and access cluster details. Clusters list table showing multiple clusters ## Accessing the Clusters List Navigate to **Clusters → List** in the Skyhook UI, or click **Clusters** in the sidebar. ## Understanding Cluster Status Each cluster displays a color-coded status badge: * **ONLINE** (green) - Cluster is connected and actively syncing data (last check-in \<2 minutes ago) * **WAITING FOR CHECK-IN** (blue) - Cluster registered but agent hasn't reported yet or is still initializing * **INACTIVE** (orange) - Cluster hasn't communicated with Skyhook for >5 minutes (may be offline or network issues) * **ERROR** (red) - Cluster agent encountered an error or authentication failure If a cluster shows **WAITING FOR CHECK-IN** for more than 5 minutes after installing the agent: ```bash theme={"system"} kubectl get pods -n skyhook-cluster-connector kubectl logs -n skyhook-cluster-connector -l app=skyhook-cluster-connector --tail=50 ``` Check for authentication errors, firewall issues, or RBAC permission problems. ## What You'll See The table shows all connected clusters with their cloud provider (GCP/AWS/Azure icons), cluster name, project/account ID, location (region/zone), agent version, and connection status. Click any cluster name to open the [Cluster View](/infrastructure/clusters/cluster-view). **API Keys** are unique authentication tokens for each cluster. The agent uses these to securely sync data to Skyhook. They're shown in the table but you rarely need to reference them directly; they're already embedded in the helm commands. Treat them like passwords (don't commit to git). **Agent Version** shows which Cluster Connector version is running. If an update is available, you'll see an "(update required)" indicator. Click **Install / Update** to get the helm upgrade command. Updates have zero downtime: the new pod comes up before the old one terminates. ## Managing Clusters **Updating the agent:** 1. Click **Install / Update** 2. Copy the `helm upgrade` command 3. Run in your terminal (authenticated to the cluster) Your API key is preserved automatically; no need to copy it separately. **Removing a cluster:** Stops syncing data and removes the cluster from Skyhook's views and reports. Removing a cluster doesn't uninstall the agent from your Kubernetes cluster. You'll need to run `helm uninstall skyhook-cluster-connector -n skyhook-cluster-connector` manually if you want it completely removed. # Connecting Clusters Source: https://docs.skyhook.io/infrastructure/clusters/connecting-clusters Register and connect your Kubernetes clusters to Skyhook Connect your Kubernetes clusters to Skyhook to enable monitoring, resource management, and automated deployments. Skyhook works with existing clusters; no need to provision new infrastructure. **New to Skyhook?** Consider using the [Onboarding Guide](/getting-started/onboarding-guide) for guided setup. It walks you through cluster connection, ArgoCD installation, and addon configuration automatically. This guide covers **manual cluster connection** for users who prefer direct control or already have infrastructure in place. ## Supported Cloud Providers
GCP
Google Cloud (GKE)
Fully supported
AWS
AWS (EKS)
Fully supported
Azure
Azure (AKS)
Private Beta
☸
Any Kubernetes
Fully supported
Interested in Azure support? [Contact us](mailto:support@skyhook.io) to join the private beta. ## Prerequisites Before connecting a cluster, ensure you have: ### Required * **Existing Kubernetes cluster** (GKE, EKS, AKS, or any conformant Kubernetes distribution) * **kubectl** and **helm** installed locally * **Cluster access** with permissions to install workloads * **Cloud provider CLI** configured and authenticated (gcloud, aws, or az CLI) - only needed for managed cloud clusters ### Highly Recommended: Cluster Addons Skyhook works best with these common Kubernetes addons: * **[nginx-ingress controller](https://kubernetes.github.io/ingress-nginx/deploy/)** - Automated ingress configuration and TLS management * **[cert-manager](https://cert-manager.io/docs/installation/)** - Automated certificate issuance and renewal Without nginx-ingress and cert-manager, Skyhook can still monitor your cluster, but you'll need to manually handle ingress configuration and certificate management for your services. #### Addon Management: ArgoCD vs Manual Installation **We strongly recommend managing addons with ArgoCD** for GitOps-based automation: **Why ArgoCD?** * Version-controlled addon configurations in Git * Automated deployment and updates across clusters * Drift detection and self-healing * Centralized management from Skyhook UI **Setup Steps:** 1. Install ArgoCD on your management cluster ([guide](/infrastructure/gitops/overview#argocd-installation-guide)) 2. Configure your GitOps repository 3. Use Skyhook's [GitOps settings page](https://app.skyhook.io/settings/gitops) to add addons 4. ArgoCD automatically deploys and maintains addons across your clusters See the [GitOps with ArgoCD](/infrastructure/gitops/overview) documentation for detailed instructions. The [Onboarding Guide](/getting-started/onboarding-guide) automates ArgoCD setup and addon configuration for you. If you prefer not to use ArgoCD, you can install addons manually with helm: **nginx-ingress:** ```bash theme={"system"} helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm install ingress-nginx ingress-nginx/ingress-nginx \ --namespace ingress-nginx \ --create-namespace ``` **cert-manager:** ```bash theme={"system"} helm repo add jetstack https://charts.jetstack.io helm repo update helm install cert-manager jetstack/cert-manager \ --namespace cert-manager \ --create-namespace \ --set installCRDs=true ``` With manual installation, you'll need to handle addon updates, configuration changes, and multi-cluster consistency yourself. #### Configuring cert-manager ClusterIssuer **No manual configuration needed!** When you install cert-manager through Skyhook's addon system (via ArgoCD), a ClusterIssuer is automatically created and configured with Let's Encrypt. The addon takes care of: * Creating the `letsencrypt` ClusterIssuer * Configuring HTTP01 challenge solver * Setting up the necessary secrets You can view and modify the ClusterIssuer configuration through the [Addons page](https://app.skyhook.io/addons). If you installed cert-manager manually with helm, you'll need to create a ClusterIssuer yourself: ```yaml theme={"system"} kubectl apply -f - < ## Connecting a Cluster ### Using the CLI (recommended) If you already have a kubectl context for the cluster, the fastest path is: ```bash theme={"system"} skyhook onboard cluster connect ``` [`skyhook onboard cluster connect`](/cli-reference/skyhook_onboard_cluster_connect) detects your cluster from the current kubectl context, auto-fills the cloud provider / account / region, registers the cluster with Skyhook, and runs the `helm install` for the connector — all in one shot. You can pass `--context ` to target a specific context, `--all` to register every unconnected context at once, or `--dry-run` to preview. Once the connector comes online, skip to [Step 5: Verify Connection](#step-5-verify-connection) below. For users who prefer the UI, or clusters where the CLI's auto-detection doesn't fit your environment, the per-provider flows below walk through it manually. ### Step 1: Gather Cluster Information You'll need: * **Cluster name** (exact name from GCP Console) * **GCP Project ID** (e.g., `koala-ops-123`) * **Zone** (e.g., `us-west1-a`) or **Region** (e.g., `us-west1` for regional clusters) Find these values in the [GCP Console](https://console.cloud.google.com/kubernetes/list). ### Step 2: Authenticate to Your Cluster Make sure `gcloud` and the GKE auth plugin are installed: ```bash theme={"system"} gcloud components install gke-gcloud-auth-plugin ``` Authenticate to Google Cloud: ```bash theme={"system"} gcloud auth login ``` Get cluster credentials: ```bash theme={"system"} gcloud container clusters get-credentials CLUSTER_NAME \ --zone=COMPUTE_ZONE \ --project=PROJECT_ID ``` Verify access: ```bash theme={"system"} kubectl cluster-info ``` ### Step 3: Register the Cluster 1. Navigate to **Clusters → Connect** in the Skyhook UI 2. Select **GCP** as the cloud provider 3. Fill in your cluster details: * Cluster name * GCP Project ID * Zone or Region 4. Click **Register Cluster** Connect cluster form After registration, you'll see a `helm install` command with your cluster's unique API key. Helm install command in terminal ### Step 4: Install the Cluster Connector Copy the `helm install` command from the previous step and run it in your terminal: ```bash theme={"system"} helm repo add skyhook https://skyhook-io.github.io/helm-charts helm repo update helm upgrade --install skyhook-cluster-connector skyhook/skyhook-cluster-connector \ --namespace skyhook-cluster-connector --create-namespace \ --set apiKey= ``` The Cluster Connector will start syncing data to Skyhook in under a minute. ### Step 5: Verify Connection Return to **Clusters → List** in the Skyhook UI. Your cluster status should change from **WAITING FOR CHECK-IN** (blue) to **ONLINE** (green) in under a minute. The Cluster Connector fetches cluster data on-demand when you use the Skyhook UI, ensuring you always see current information without unnecessary polling. ### Step 1: Gather Cluster Information You'll need: * **Cluster name** (exact name from AWS Console) * **AWS Account ID** (12-digit account number) * **Region** (e.g., `us-east-1`) Find these values in the [EKS Console](https://console.aws.amazon.com/eks/home). ### Step 2: Authenticate to Your Cluster Configure the AWS CLI if you haven't already: ```bash theme={"system"} aws configure # or for SSO: aws configure sso ``` List your configured profiles: ```bash theme={"system"} aws configure list-profiles ``` Update your kubeconfig for the EKS cluster: ```bash theme={"system"} aws eks update-kubeconfig \ --name CLUSTER_NAME \ --region REGION \ --profile YOUR_PROFILE_NAME ``` Verify access: ```bash theme={"system"} kubectl cluster-info ``` ### Step 3: Register the Cluster 1. Navigate to **Clusters → Connect** in the Skyhook UI 2. Select **AWS** as the cloud provider 3. Fill in your cluster details: * Cluster name * AWS Account ID * Region 4. Click **Register Cluster** After registration, you'll see a `helm install` command with your cluster's unique API key. ### Step 4: Install the Cluster Connector Copy the `helm install` command from the previous step and run it in your terminal: ```bash theme={"system"} helm install skyhook-cluster-connector oci://us-docker.pkg.dev/skyhook-artifacts/skyhook-public/skyhook-cluster-connector \ --set apiKey=YOUR_CLUSTER_API_KEY \ --namespace skyhook-cluster-connector \ --create-namespace ``` The Cluster Connector will start syncing data to Skyhook within a few minutes. ### Step 5: Verify Connection Return to **Clusters → List** in the Skyhook UI. Your cluster status should change from **WAITING FOR CHECK-IN** to **ONLINE** within 2-3 minutes. Azure support is currently in private beta. [Contact us](mailto:support@skyhook.io) to request access to the Azure private beta. Once you're enrolled in the beta, we'll provide specific instructions for connecting your AKS clusters. Skyhook supports any conformant Kubernetes cluster - on-prem, bare-metal, OVH, DigitalOcean, Linode, Civo, k3s, or any other distribution. **We strongly recommend installing ArgoCD** on BYOK clusters. While Skyhook's CI/CD pipelines work without it, ArgoCD unlocks the full platform experience: automated addon management (cert-manager, nginx-ingress, OpenCost), GitOps-based configuration, drift detection, and multi-cluster consistency. The onboarding wizard will guide you through ArgoCD installation after connecting your cluster. ### Step 1: Verify Cluster Access Ensure your kubeconfig is configured and you can access the cluster: ```bash theme={"system"} kubectl cluster-info kubectl get nodes ``` No cloud provider CLI is required. ### Step 2: Register the Cluster 1. Navigate to **Clusters → Connect** in the Skyhook UI 2. Select **Other / On-Prem** as the cloud provider 3. Fill in your cluster details: * **Cluster name** (required) - a unique name for this cluster within your organization * **Location** (optional) - where the cluster runs (e.g., `us-east`, `dc-1`, `paris`) * **Organization / Group** (optional) - a label to group clusters (e.g., team name, datacenter, account) 4. Click **Register Cluster** After registration, you'll see a `helm install` command with your cluster's unique API key. ### Step 3: Install the Cluster Connector Copy the `helm install` command from the previous step and run it: ```bash theme={"system"} helm repo add skyhook https://skyhook-io.github.io/helm-charts helm repo update helm upgrade --install skyhook-connector skyhook/skyhook-connector \ --namespace skyhook-connector --create-namespace \ --set apiKey= ``` The connector runs as a pod in your cluster and communicates outbound to the Skyhook API. No inbound ports or public endpoints are required. ### Step 4: Verify Connection Return to **Clusters → List** in the Skyhook UI. Your cluster status should change from **WAITING FOR CHECK-IN** to **ONLINE** within a minute. ### What Works Differently with BYOK Most Skyhook features work identically on BYOK clusters. A few things to be aware of: * **Logging links**: Skyhook won't generate cloud-specific log console links (e.g., CloudWatch, Cloud Logging). Configure a custom logging URL template in your [organization settings](https://app.skyhook.io/settings) if you use Grafana, ELK, or another logging platform. * **Cloud console links**: Links to cloud provider consoles (GCP Console, AWS Console) won't appear for BYOK clusters. * **Cost tracking**: FinOps cloud cost integration requires a cloud billing account. OpenCost still provides cluster-level resource metrics without cloud billing data. * **Container registry**: Use any OCI-compliant registry (Docker Hub, GitHub Container Registry, Harbor, Quay, etc.). Configure `imagePullSecrets` in your cluster if your registry requires authentication. * **Secrets management**: External Secrets Operator works with any backend (HashiCorp Vault, AWS Secrets Manager, etc.). For BYOK, Vault or Sealed Secrets are common choices. * **Storage classes**: Addons that need persistent storage (e.g., Prometheus via OpenCost) default to the `standard` StorageClass. If your cluster uses a different default, update the storage class in the addon configuration. * **Ingress**: nginx-ingress works on any cluster. Cloud-specific ingress controllers (AWS ALB, GCE) are not applicable. ## Configuring DNS for Services To expose services via ingress with custom domains, configure your DNS provider to point to your cluster's load balancer IP address. ### Single Cluster Setup Find your cluster's external load balancer IP in the **Cluster detail page** (Networking section) or in your cloud provider's console. Create an A record in your DNS provider: ``` example.com → A → *.example.com → A → ``` ### Multi-Cluster Load Balancing If you're using a global load balancer across multiple clusters, continue managing DNS through your existing setup. Skyhook doesn't currently automate multi-cluster load balancing. ## Troubleshooting ### Cluster Status Stuck on "WAITING FOR CHECK-IN" If your cluster remains in **WAITING FOR CHECK-IN** status for more than 5 minutes: 1. **Verify the Cluster Connector pod is running:** ```bash theme={"system"} kubectl get pods -n skyhook-connector ``` Expected output: `STATUS: Running` 2. **Check connector logs for errors:** ```bash theme={"system"} kubectl logs -n skyhook-connector -l app.kubernetes.io/name=skyhook-connector --tail=50 ``` 3. **Common issues:** * **Firewall blocking egress**: Ensure your cluster can reach `*.skyhook.io` on port 443 * **Wrong API key**: Verify you used the helm command from the Skyhook UI (includes correct API key) * **RBAC permissions**: The agent needs cluster-wide read permissions (automatically configured by the helm chart) ### Permission Errors During Helm Install Make sure you have admin permissions in the cluster: ```bash theme={"system"} kubectl auth can-i create clusterrole ``` If you see "no", contact your cluster administrator for the necessary permissions. ## Next Steps Monitor cluster status and detect problems Drill down into pods, services, and more Deploy and configure applications # Cluster Management Source: https://docs.skyhook.io/infrastructure/clusters/overview Monitor, manage, and troubleshoot your Kubernetes clusters Skyhook's cluster management provides comprehensive visibility into your Kubernetes infrastructure. Connect your clusters to monitor health, detect problems, inspect resources, and track certificate lifecycles, all from a unified interface. ## What You Can Do ### Monitor Cluster Health Track real-time cluster metrics with automatic problem detection across 18+ issue types: * **Pod/Container problems**: CrashLoopBackOff, OOMKilled, ImagePullBackOff, high restart counts * **Workload health**: Degraded deployments, StatefulSets with unavailable replicas * **Node conditions**: Memory pressure, disk pressure, unschedulable nodes * **Configuration issues**: Container config errors, failed volume mounts * **Resource capacity**: CPU/memory requests vs limits with visual progress bars and overcommit warnings Cluster health dashboard with KPI cards ### Detect and Troubleshoot Problems View active problems across your clusters with detailed context. Each problem type includes: * **Severity classification**: Critical, major, or minor * **Affected resource count** with direct filtering to see impacted pods/workloads * **Temporal tracking**: First observed, last seen, observation count, and duration * **Remediation guidance**: Specific steps to resolve each issue type Problems are tracked in two states: **Active** (currently detected) and **Recently Observed** (resolved within the last 10 minutes but still monitored). Active problems panel showing issue chips ### Inspect Kubernetes Resources Drill down into any resource type with rich filtering and search: * **10 resource tabs**: Nodes, Services, Ingresses, Deployments, Pods, ConfigMaps, Service Accounts, Jobs, Custom Resources, Events * **Advanced filtering**: By namespace, status/phase, problem type, with URL-based shareable filters * **Problem detection**: Automatic detection and filtering for 14+ pod problem types * **Detail drawers**: View complete specs, status conditions, and raw YAML for any resource * **Inline logs viewer**: Stream pod logs with search, level filtering, and JSON prettification ### Track Certificates Monitor cert-manager certificates with comprehensive status tracking: * **Expiration monitoring**: Days remaining countdown with 30-day warning threshold * **Status conditions**: Ready, Pending (Issuing), Error, or Unknown states * **DNS coverage**: View all domains covered by each certificate * **Issuer tracking**: See which ClusterIssuer or Issuer manages each certificate * **Automatic detection**: No configuration needed; certificates appear automatically once cert-manager is installed Certificates are shown in the cluster health dashboard and accessible via Custom Resources in the Resource Viewer. ### Measure Capacity and Utilization Track resource usage with visual progress bars and namespace-level breakdowns: * **Requests vs Limits**: Separate bars showing guaranteed resources and maximum usage caps * **Overcommit detection**: Visual warnings when limits exceed 100% of node capacity * **Namespace breakdown**: See CPU/memory consumption per namespace to identify resource-heavy teams or applications * **Pod capacity**: Running pods vs allocatable pod count Capacity card showing overcommitted limits ## Supported Platforms * **Google Cloud (GKE)** - Fully supported * **AWS (EKS)** - Fully supported * **Azure (AKS)** - Private beta (coming soon) * **Any Kubernetes** - On-prem, bare-metal, OVH, DigitalOcean, Linode, k3s, and any conformant Kubernetes distribution ## How It Works Skyhook connects to your clusters via the lightweight **Cluster Connector**. The connector runs as a single pod in your cluster and continuously syncs cluster state to Skyhook's backend. It's read-only and uses Kubernetes RBAC for permissions. Once connected, you can: 1. View cluster health and problems in the [Cluster View](/infrastructure/clusters/cluster-view) 2. Browse all resources in the [Resource Viewer](/infrastructure/clusters/resource-viewer) 3. Manage agent versions and configurations from the [Clusters List](/infrastructure/clusters/clusters-list) ## Getting Started 1. **[Connect a Cluster](/infrastructure/clusters/connecting-clusters)** - Register your cluster and install the Skyhook Connector 2. **[View Your Clusters](/infrastructure/clusters/clusters-list)** - See all connected clusters and their status 3. **[Explore Cluster Health](/infrastructure/clusters/cluster-view)** - Monitor problems and resource summaries 4. **[Inspect Resources](/infrastructure/clusters/resource-viewer)** - Drill down into pods, services, and more Already have clusters connected? Jump to the [Clusters List](/infrastructure/clusters/clusters-list) to start managing them. # Resource Viewer & Topology Source: https://docs.skyhook.io/infrastructure/clusters/resource-viewer Browse Kubernetes resources, see live cluster topology, and inspect service runtime state without leaving Skyhook. Skyhook gives you three ways to look at what's actually running in your clusters: 1. **Cluster Resources** — a full Kubernetes resource browser, scoped to a cluster, with a categorized sidebar and detail drawer 2. **Cluster Topology** — a live visual map of a cluster's workloads and how they connect 3. **Service Runtime** — a per-service view showing the service's topology, connectivity, and Kubernetes resources in one place All three pull data live from the cluster via the Skyhook agent, so what you see matches what `kubectl` would show you — no stale GitOps state, no manual refresh. ## Cluster Resources browser Navigate to **Clusters → \ → Resources** to open the cluster-wide resource browser. Cluster Resources browser with a categorized sidebar (Workloads, Networking, Configuration, Storage, Access Control, Cluster) showing resource kinds with counts, a search box at the top, and the main content area ### Sidebar navigation The left sidebar groups resource kinds into categories: * **Favorites** — pin the kinds you look at most often * **Workloads** — Deployment, StatefulSet, DaemonSet, Job, CronJob, ReplicaSet, Pod * **Networking** — Service, Ingress, NetworkPolicy, Gateway, HTTPRoute * **Configuration** — ConfigMap, Secret, HorizontalPodAutoscaler * **Storage** — PersistentVolume, PersistentVolumeClaim, StorageClass * **Access Control** — ServiceAccount, Role, RoleBinding, ClusterRole, ClusterRoleBinding * **Cluster** — Node, Namespace, Event * **Custom Resources** — any CRDs installed on the cluster (ArgoCD Application, Prometheus Rule, SealedSecret, VPA, etc.) Each entry shows a count of resources of that kind in the current namespace filter. Empty kinds can be hidden with **Show empty**. ### Search and filter The search box at the top of the sidebar filters the resource list by name. Inside a resource kind, the main panel has its own search for cross-field matching (labels, annotations, owner references). ### Detail drawer Click any resource to open a detail drawer with: * **Summary** — human-readable overview of the resource's state * **YAML** — raw Kubernetes resource spec with syntax highlighting * **Quick Commands** — copy-paste kubectl commands for common operations * **Cloud console links** — jump straight to the cloud provider console for cloud-managed resources (GKE nodes, EKS pods, etc.) * **Actions** — scale, restart, or delete workloads directly from the drawer ### Workload-specific views Skyhook has purpose-built renderers for common workload kinds: * **Deployment** — rollout status, replica health, associated ReplicaSets * **Pod** — container states, restart count, recent logs, events * **ReplicaSet** — replica status, owner reference, revision, pod template * **Ingress** — hosts, TLS configuration, backend services, unified status across rules * **Service** — endpoints, ports, ClusterIP/LoadBalancer details * **Argo Rollouts** — canary/blue-green progress, traffic split, analysis templates These renderers show only the fields you actually care about, so you're not scanning through hundreds of lines of YAML for a simple question. ## Cluster Topology Navigate to **Clusters → \ → Topology** to open a visual map of the cluster's workloads. Cluster Topology page for acme-production-main showing namespaces (production, staging, monitoring, kube-system) as boxes, with Deployment, ReplicaSet, Pod, Service, and Ingress resources inside each namespace, connected by relationship lines ### What you see * **Nodes** in the graph represent Kubernetes resources — Deployments, ReplicaSets, Pods, Services, Ingresses, ConfigMaps * **Edges** represent ownership (ReplicaSet belongs to Deployment) or traffic routing (Ingress → Service → Pods) * **Grouping** — toggle between No Grouping, By Namespace, and By App Label * **Filters** — the left sidebar lets you show or hide resources by kind (Ingresses, Services, Deployments, ReplicaSets, Pods, Namespaces, and any custom resources) ### Use cases * **Sanity-check a deployment** — at a glance, does the Deployment have the right number of replicas? Are the Pods healthy? Does the Service match? * **Find ownership chains** — "which Deployment owns this Pod, and which Service routes to it?" * **Cross-namespace traffic** — see which Ingresses route to Services in other namespaces * **Debug missing wiring** — a Deployment that exists but has no Service pointing at it stands out visually ### Traffic view Toggle from **Resources** to **Traffic** to see the network flow between workloads, based on real-time service mesh or NetworkPolicy data. ## Service Runtime tab Every service page has a **Runtime** tab that shows everything running for that service in a selected environment — the same kind of view as Cluster Topology but scoped to one service. ### Environment picker A chip row at the top lets you switch between the service's environments (autopush, dev, staging, prod). Switching re-queries the target cluster for live state. ### Resource Topology graph Shows the service's live Kubernetes resources and how they connect — Deployment → ReplicaSet → Pods, Service, Ingress, ConfigMap. Click any node to see details. Skyhook highlights ReplicaSet groups separately from the active ReplicaSet so you can see your rollout history at a glance without it cluttering the main graph. Old ReplicaSets from previous rollouts are collapsed into a `ReplicaSetGroup` node. ### Network Connectivity Monitoring A dedicated card verifies your public endpoints are correctly configured and accessible, checking: * **DNS** — the ingress hostname resolves * **TLS** — the certificate is valid and trusted * **HTTP** — the endpoint responds (with status code) * **Backends** — the pods behind the ingress are reachable Failing checks are surfaced inline so you catch broken routes immediately. This is the same connectivity check that appears on the deployment detail page — see [Deploying Services](/application/services/deploy#network-connectivity-check). ### Kubernetes Resources list Below the topology, a categorized list shows every Kubernetes resource that belongs to this service in the selected environment: * **Ingresses** — hosts and TLS state * **Services** — ClusterIP / LoadBalancer and port mappings * **Deployments** — ready state and rollout status * **ReplicaSets** — current and historical (for rollback reference) * **Pods** — running state per pod * **ConfigMaps** — key count and content Each resource has the same inspection affordances as the Cluster Resources browser — click to open a drawer with YAML, quick commands, and actions. ## Troubleshooting Skyhook can't reach the cluster agent for that cluster, or the cluster has been removed. Open the Clusters list to verify the cluster is still registered and the agent is online. The resource browser pulls live from the cluster via the agent. If you see stale data, the agent may have lost its connection to Skyhook temporarily. Hard-refresh the page to re-query. The ingress exists in the cluster but Skyhook can't determine its public accessibility state. Common causes: the ingress controller isn't installed, the DNS record hasn't propagated, or the TLS certificate is still being issued. Check the ingress directly in the Cluster Resources browser to see its raw state. Verify the namespace filter (top-right) isn't hiding everything. If the filter is set to a specific namespace with no resources, the graph will be empty. Switch to **All Namespaces** to see the full cluster. # Branches & Pull Requests Source: https://docs.skyhook.io/infrastructure/gitops/branches-and-prs Preview and edit configuration from any Git branch without leaving Skyhook, and review/approve/merge pull requests in-app. Everything Skyhook manages lives in Git — service configuration, addon values, gateways, certificates, Kyverno policies, observability stacks. That means every time you make a change, Skyhook opens a pull request against your GitOps or deployment repository. Branches and in-app pull request review close the loop so you can see what's already pending, keep editing on an open branch, review the diff, and merge — all without jumping to GitHub. ## Branch indicator Every page that edits GitOps-backed configuration shows a branch indicator at the top, next to the page title: Service detail page for acme-api showing the green 'Viewing: HEAD' chip next to the service title, with Basic Details and Deployment Status sections below * **Viewing: HEAD** (green) — you're looking at the default branch of the configuration repo, i.e. the production configuration that's actually deployed. * **Viewing: \** (blue) — you're previewing a specific working branch. Any edits you make get appended to that branch instead of creating a new one. * **PR #N** chip (green pill) — if the active branch has an open pull request, Skyhook shows the PR number next to the branch chip. Click the **Viewing** chip to open the branch switcher. Click the **PR** chip to open the in-app review (or ⌘-click / Ctrl-click to jump to GitHub). ### What the branch indicator affects When you switch to a branch, the page re-fetches configuration from that branch — the values you see and edit reflect that branch's state, not main. This is true across: * Service detail and settings pages * Addon configure pages (both Helm and Kustomize editors) * Gateway and certificate issuer forms * Observability stack configuration * Kyverno policies * Environment configuration If you switched to a branch in an earlier session, Skyhook remembers it per repository and checks the branch's PR status when you return. **Branch persistence is per repo.** If you switch to `feature/add-otel` on the services repo, then navigate to an addon page whose config lives in a different repo, the addon page will still show `HEAD` — branch overrides don't leak between repos. ## Branch switcher Click the branch indicator to open the **Select Git Reference** picker. Select Git Reference showing a search box at the top, the Default Branch section with HEAD highlighted, and an informational note explaining that switching views changes what you see in the UI The branch list shows: * **Default Branch** — the HEAD of main/master/develop, marked as the production configuration. * **Branches with open PRs** — every branch that has a tracked pull request, with the PR number, branch name, commit SHA link, and last-updated timestamp. * **All other branches** — everything else in the repository, loaded when you open the picker. The search box filters the list in real time with highlighted matches. Clicking a branch switches the view; clicking the trash icon on a branch row offers to delete it (only for non-default branches with no open PRs). Branch switching is repo-scoped. If you're on a service page and you switch to a branch, subsequent navigations within the same repo (other services in the same monorepo, for example) keep the branch active. ### PR status refresh To keep page loads fast, Skyhook only checks the status of the PR you're currently working with. The full list of tracked PRs is refreshed when you open the branch switcher — the moment you actually need it. ## Reviewing pull requests in-app Clicking the **PR #N** chip (from the branch indicator, the branch switcher, or the post-save confirmation banner) opens Skyhook's in-app pull request review. It has two tabs: ### Overview * PR title and body (rendered as markdown) * Head → base branch arrows (`feature/add-otel` → `main`) * Author with avatar * Status chips — Open / Draft / Merged * Created/updated timestamps * Summary: additions, deletions, changed files ### Files Changed Side-by-side diff for every changed file, like the GitHub "Files changed" view. The tab shows how many files were modified. For very large pull requests, GitHub may truncate the file list — Skyhook will let you know if it does. ### Review and merge At the bottom of the review view: * **Review** — approve, request changes, or leave a comment-only review, with an optional message * **Merge** — merge the pull request using the method your repository allows (merge, squash, or rebase), with a custom commit message Reviews and merges are made with your GitHub identity — not a bot account — so attribution in your commit history matches who actually approved the change. The first time you open a review for a private repository, GitHub may ask for additional access. Click **Grant repo access** in the review and sign in again to continue. ### Where else the review opens from The same in-app review is available from several places: * **Branch indicator PR chip** — review the PR for the current branch * **Branch switcher** — review any PR in the list without switching branches * **Save confirmation banner** — after saving configuration, the banner offers a **Review PR** action * **Pending PRs banner** — when a service has queued setup PRs, each shows a **Review PR** button * **Policy creation** — creating a Kyverno policy can open the review inline ## Pending PRs banner When a service is first created (or migrated from an existing cluster), Skyhook may open multiple setup PRs — one for the deployment repo, one for the service config, one for the GitOps registration, etc. The **Pending PRs banner** on the service page shows all of them in one place. * Each row shows the branch name, PR number, and a **Review PR** button that opens the in-app review * Rows automatically disappear as their PRs are merged (Skyhook polls GitHub in the background) * A single **Dismiss** button clears the entire banner This is especially useful for service migrations — each step produces its own PR and the banner lets you walk through them without manually tracking which is which. ## Save confirmation banner After you save a change on any page that writes to Git (addon, service, gateway, certificate, policy), Skyhook shows a confirmation banner: * A message confirming the change was saved to the active branch * **Review PR** — opens the in-app review * **Open in GitHub** — direct GitHub URL The banner also opens the review automatically the first time a new branch gets a pull request, so you can review immediately without hunting for it. ## Creating new branches You don't need to create a branch manually — Skyhook creates one automatically the first time you edit configuration from `HEAD`. The branch name is derived from what you're editing (e.g. `skyhook/update-cert-manager-values`), and subsequent edits on the same page append to the same branch until the PR is merged. To edit on an **existing** branch (for example, picking up work someone else started), open the branch switcher and select that branch. New edits append to it. ## Troubleshooting Hard-refresh the page. If it still shows the wrong branch, open the branch switcher and re-select the branch you want. You clicked with ⌘ (macOS) or Ctrl (Windows/Linux) held down — that modifier opens the pull request on GitHub in a new tab. A plain click opens the in-app review. Your GitHub access needs to include private repository scope. Click **Grant repo access** in the review and re-authenticate — you'll return to the same page. Close and re-open the branch switcher to refresh the list, or use the **Refresh** button inside it. # Helmify-Kustomize Source: https://docs.skyhook.io/infrastructure/gitops/helmify-kustomize ## Introduction **helmify-kustomize** is a CLI tool developed by Skyhook that bridges the gap between Helm and Kustomize, enabling seamless generation of Helm charts from Kustomize configurations. For more details on the benefits of using Helm and Kustomize together, refer to our blog post: [Helm vs. Kustomize: Why Not Both](https://www.skyhook.io/blog/helm-vs-kustomize-why-not-both). ## Benefits of Using helmify-kustomize * **Unified Management**: Combines the declarative nature of Kustomize with Helm's robust release management, streamlining Kubernetes configuration management. * **Flexibility**: Allows teams to maintain environment-specific configurations using Kustomize overlays while leveraging Helm's packaging and deployment capabilities. * **Efficiency**: Reduces the manual effort required to convert Kustomize configurations into Helm charts, facilitating smoother CI/CD pipelines. ## Installation To install **helmify-kustomize**, follow these steps: ### Using Homebrew ```bash theme={"system"} brew install skyhook/tap/helmify-kustomize ``` ## Manual Installation Alternatively, download the latest release from the [GitHub repository](https://github.com/hisco/helmify-kustomize) and add it to your system's PATH. ## Usage ### Converting Kustomize Overlays to Helm Charts 1. Navigate to the directory containing the Kustomize overlays. 2. Run the following command to generate a Helm chart: ```bash theme={"system"} helmify-kustomize build ./path-to-overlay ./output-chart ``` 3. The expected output is a Helm chart that mirrors the original Kustomize configuration. See the full documentation on [npm](https://www.npmjs.com/package/helmify-kustomize). # Management Cluster Source: https://docs.skyhook.io/infrastructure/gitops/management-cluster The management cluster hosts centralized components that aren't needed on every cluster, such as ArgoCD (if using GitOps), and frontends for monitoring tools like Prometheus, Grafana, and Jaeger. This is especially relevant when self-hosting these components rather than using managed services. ## Why Use a Management Cluster? Separating management components from workload clusters reduces the risk of disruption to either production workloads or the supporting tools. Best practices recommend a dedicated management cluster, though Skyhook doesn't technically prevent you from designating any cluster as your management cluster. **Benefits of a dedicated management cluster**: * **Isolation**: Keep management tools separate from production workloads * **Access control**: Simplify permissions management for centralized services * **Reliability**: Prevent resource contention between apps and management tools * **Scalability**: Size the cluster specifically for management workloads ## Configuring Your Management Cluster Navigate to [Organization Settings > Management Cluster](https://app.skyhook.io/settings/management-cluster) to designate which cluster hosts your centralized components. Management cluster configuration showing cluster details If you don't have a management cluster configured yet, you'll see a prompt to select one: 1. Click **Select Cluster** 2. Choose a cluster from your connected clusters 3. Optionally configure the default domain You don't need to specify a management cluster immediately. You can leave this field empty and configure it later when you're ready to install ArgoCD or centralized monitoring tools. ### Management Cluster Details Once configured, you'll see the following information: * **Name**: The name of your management cluster (e.g., `acme-production-main`). This field is editable. * **Status**: Current operational status of the cluster. Common statuses: * **ONLINE**: Cluster is actively running and accessible * **OFFLINE**: Cluster is not reachable * **DEGRADED**: Cluster has issues but is partially operational * **Location**: The cloud region where the management cluster is hosted (e.g., `us-west-2`, `eu-west-1`). Important for understanding data residency and latency. * **Project**: The cloud project or account the cluster belongs to (e.g., `acme-prod`). Helps segregate and organize resources across multiple projects. * **Default Domain**: The default domain for centralized services (e.g., `acme.com`). When you configure tools like Grafana or ArgoCD with an Ingress, Skyhook uses this domain by default. For example, ArgoCD might be accessible at `argocd.acme.com`. ## Addons This section lists the additional components or "addons" that have been installed on the management cluster to extend its functionality. Examples include: * **ArgoCD**: ArgoCD is a declarative, GitOps continuous delivery tool for Kubernetes. * **Cert Manager**: Ensures the management cluster has capabilities for automating the management and issuance of TLS certificates. * **External Secrets Operator**: Facilitates integrating external secret management systems (e.g., AWS Secrets Manager, Azure Key Vault) with the Kubernetes cluster, enabling secure and centralized management of sensitive information. ## Custom Resource Definitions (CRDs) Provides a searchable list of CRDs deployed within the management cluster. CRDs are extensions of the Kubernetes API that allow for the creation of new, custom resources. They are pivotal for customizing Kubernetes clusters to meet specific needs. Each CRD entry includes the name, scope (indicating whether the CRD is namespaced or cluster-wide), supported versions, age (how long it has been deployed), a brief description, and any applicable labels. The list covers a wide range of groups, indicating the diverse functionalities and integrations supported by your management cluster, such as monitoring, auto-scaling, certificate management, networking, and data migration. # GitOps with ArgoCD Source: https://docs.skyhook.io/infrastructure/gitops/overview ## What is ArgoCD? ArgoCD is a declarative GitOps continuous delivery tool for Kubernetes. It enables you to define and control the deployment of applications using Git repositories as the source of truth for deployment configurations. ArgoCD automates the process of syncing your applications with their desired state in Git, ensuring cluster configurations match your version-controlled definitions. ### Benefits of ArgoCD * **Automated Synchronization**: Keeps your environment in sync with configurations stored in Git * **Declarative Setup**: Manage infrastructure and application definitions declaratively and version them in Git * **Self-Healing**: Automatically corrects drifts between the desired state in Git and the live state in the cluster * **Multi-Cluster Management**: Manage deployments across multiple Kubernetes clusters from a single ArgoCD instance * **Visibility**: Provides a graphical UI and CLI for visualization and management of applications and their dependencies * **GitOps Best Practices**: Audit trail, rollback capabilities, and declarative configuration management ## ArgoCD in Skyhook Skyhook provides an integrated setup experience for ArgoCD and simplifies two primary use cases: 1. **Manage cluster addons** - Deploy and manage third-party tools like cert-manager, ingress controllers, Prometheus, and Grafana across your clusters. By managing these with ArgoCD, you can control versions in Git, apply changes declaratively across multiple clusters, and track configuration drift. 2. **Deploy your applications** - Use ArgoCD for application deployments with features like one-click rollbacks, visual diffing, automatic pruning of resources no longer defined in Git, and a UI to view and manage your applications. With Argo Rollouts, you can implement advanced deployment strategies like Blue/Green and Canary deployments. ### What Skyhook Provides * **GitOps overview page** — a state-driven landing page showing every cluster's GitOps status across your organization, with a tabbed view for Managed and Not-in-GitOps clusters * **2-step repository configuration** — repo settings first, then per-cluster selection (with addons and endpoints) * **Per-cluster setup drawer** — a 4-step checklist (endpoint, GitHub credentials, ArgoCD install, bootstrap) that walks you through onboarding a cluster * **Bulk setup** — select multiple clusters in the Not-in-GitOps tab and run "Set up N clusters" in one operation * **Incomplete-state CTA** — managed rows with pending setup steps show "Setup incomplete · X/Y" with a Continue setup button so you always know exactly what's left * **GitHub App integration** — secure, fine-grained repository access with automatic token rotation; flows for OAuth creation, manual entry, and cached credentials * **Deployment GitHub App setup** — a dedicated flow for installing the Skyhook GitHub App on your deployment repository, covered separately below The ArgoCD UI itself remains separate and can be accessed via an Ingress if you configure one during setup. ## GitOps overview page Navigate to **Infrastructure → GitOps** to open the overview. GitOps overview page showing the configured GitOps repository (KoalaOps/deployment), a 9/11 clusters managed progress indicator, and a Clusters table with Managed and Not in GitOps tabs. Rows show a mix of Configured clusters with Manage buttons and Setup incomplete clusters with Continue setup buttons At the top, the **GitOps configuration** card shows the current repository and architecture, followed by a progress indicator summarizing how many clusters are managed out of the total. The cluster list below is split into two tabs: * **Managed** — clusters that have GitOps configured. Default tab. Shows cluster name, status (green dot + label), and a single outlined action button that changes based on state: **Manage** for fully configured, **Continue setup** for incomplete rows, **View PR** while a setup change is pending. * **Not in GitOps** — clusters without GitOps yet. Each row has a **Set up** button that routes through the same single-cluster setup flow. Enable multi-select to run **Set up N clusters** across a group at once. A search filter at the top applies across both tabs. After a successful save, the page automatically switches you to the Managed tab so you see the cluster in its new state. ### Per-cluster setup drawer Clicking **Set up** or **Continue setup** opens a drawer with a 4-step checklist: 1. **Endpoint** — API server URL, any connection details 2. **GitHub credentials** — create via GitHub App OAuth, enter manually, or pull from a cached session credential 3. **ArgoCD install** — provision ArgoCD on the cluster (if not already running) 4. **Bootstrap** — write initial manifests so ArgoCD can self-manage Operation status banners at the top of the drawer show installing, timeout, error, and success states so you always know what's happening. ## Deployment GitHub App Separately from the ArgoCD/GitOps credentials, Skyhook also offers a **Deployment GitHub App** for accessing your **deployment repository** — the repo where Skyhook writes generated Kubernetes manifests and CI workflows. ### When you need it You need the Deployment GitHub App installed when: * Your deployment repository is private and Skyhook needs to push changes to it * You want Skyhook's deployment pull requests attributed to a GitHub App account (not a user) * Your CI workflows need secrets from the deployment GitHub App to authenticate back to the repository ### How to set it up Use either the CLI or the UI — they produce the same result. **CLI (recommended):** ```bash theme={"system"} skyhook onboard deploy-auth ``` Walks through creating the GitHub App, installing it on the deployment repository, and storing `GH_APP_ID` / `GH_APP_PK` where the workflows can find them (organization secrets or per-repo, depending on your GitHub plan). Re-runnable if you want to reconfigure. **UI:** A **Repository Settings → GitHub App** section in your org settings has a setup dialog that walks through: 1. **Install the Skyhook GitHub App** on your deployment repository from the GitHub marketplace link 2. **Complete the OAuth callback** — Skyhook receives the installation ID and access token 3. **Verify access** — Skyhook polls the repo for read/write access and displays a green status once confirmed If the app isn't installed or is missing required permissions, Skyhook shows a banner on: * The Repository Settings page (with a **Configure** button that opens the setup dialog) * Any service detail page that needs access (with guidance on what's missing) * The post-creation step of a service import that can't complete without repository write access The detection logic checks for specific secret keys (`GH_APP_ID`, `GH_APP_PK`) in your CI variables and flags them as missing adaptations you need to resolve before the service is fully operational. ## Installation ### Fastest path: the CLI #### Before you run this The CLI automates a lot, but it assumes the basics are in place. Confirm all five before running: * A [**management cluster**](/infrastructure/gitops/management-cluster) is picked — the one cluster that will host ArgoCD * At least one cluster is [**connected to Skyhook**](/infrastructure/clusters/connecting-clusters) and shows ONLINE — ArgoCD needs a target to reconcile against * [**`skyhook auth login`**](/cli-reference/skyhook_auth_login) has run in your terminal so the CLI has API creds * **`gh` is authenticated** (`gh auth status`) — used to create the ArgoCD GitHub App and push the initial GitOps repo * **`helm` is installed** plus the cloud CLI for your provider (`gcloud` for GKE, `aws` for EKS, `az` for AKS) — used in the bootstrap step Without those, the command will either drop into template-only mode or exit with a specific missing-dependency message you can act on. #### Run it The Skyhook CLI automates the entire bootstrap end-to-end: ```bash theme={"system"} skyhook onboard argocd ``` [`skyhook onboard argocd`](/cli-reference/skyhook_onboard_argocd) runs the 4-step setup in order: 1. [`skyhook onboard argocd setup-repo`](/cli-reference/skyhook_onboard_argocd_setup-repo) — creates or reuses a GitOps repository and seeds it with the initial structure 2. [`skyhook onboard argocd configure-access`](/cli-reference/skyhook_onboard_argocd_configure-access) — creates a **GitHub App scoped to ArgoCD** so it can read your GitOps repo. This is a *different* GitHub App from the one used for cross-repo CI/CD access — see the [three GitHub integrations table](/infrastructure/cicd-setup/github-integration#three-github-integrations-three-purposes) 3. [`skyhook onboard argocd bootstrap`](/cli-reference/skyhook_onboard_argocd_bootstrap) — runs `helm install` for ArgoCD on each of your clusters, applies the cluster-admin AppProject, and applies the bootstrap ApplicationSet 4. [`skyhook onboard argocd install`](/cli-reference/skyhook_onboard_argocd_install) — adds ArgoCD itself as a managed addon via GitOps, so from this point on it reconciles itself You can run any step individually if you need to retry or reconfigure. #### Verify it landed After the command finishes, confirm ArgoCD is actually running: ```bash theme={"system"} # ArgoCD pods should all be Running kubectl get pods -n argocd # The bootstrap Application should exist and be Synced/Healthy (may take a minute) kubectl get application -n argocd ``` If the bootstrap Application shows `OutOfSync`, wait 30–60s and re-check — the first reconcile takes a moment. If it stays `OutOfSync` or shows errors, `kubectl describe application -n argocd ` points at the cause (usually a repo access issue from step 2). Once everything is Healthy, skip ahead to [Managing Addons](#managing-addons). The rest of this section covers the UI flow and the manual install for users who want to do it by hand. ### Prerequisites Before installing ArgoCD, ensure you have: * A [management cluster](/infrastructure/gitops/management-cluster) selected (the cluster that will host ArgoCD) * `kubectl` access to your management cluster * A GitHub repository for storing GitOps configurations (or plan to create one) * Sufficient cluster resources (ArgoCD requires \~500MB memory minimum) GitOps settings page before ArgoCD installation ### Step 1: Install ArgoCD on Your Cluster Navigate to [Organization Settings > GitOps](https://app.skyhook.io/settings/gitops) and click **Configure** to start the setup wizard. ArgoCD installation commands and steps The first tab provides step-by-step installation commands: 1. **Authenticate to your management cluster**: ```bash theme={"system"} # For AWS EKS aws eks update-kubeconfig --name --region # For GCP GKE gcloud container clusters get-credentials --region # For Azure AKS az aks get-credentials --name --resource-group ``` 2. **Create the ArgoCD namespace**: ```bash theme={"system"} kubectl create namespace argocd ``` 3. **Install ArgoCD CRDs and components**: ```bash theme={"system"} kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml ``` 4. **Create an AppProject for managing addons** (expandable section in wizard): The wizard provides a pre-configured AppProject resource. This project scopes ArgoCD's permissions and defines allowed repositories and clusters. 5. **Recommended: Create an Ingress for ArgoCD** (expandable section in wizard): If you want to access the ArgoCD UI from outside your cluster, configure an Ingress. The wizard provides template configuration. 6. **Recommended: Install the ArgoCD CLI**: Follow the [ArgoCD CLI installation guide](https://argo-cd.readthedocs.io/en/stable/cli_installation/) for your operating system. ### Step 2: Configure GitOps Repository GitOps repository configuration with cluster selection In the second tab, configure your GitOps repository and select clusters: 1. **Select GitOps Repository**: Choose the GitHub repository where ArgoCD will look for application manifests and addon configurations. 2. **Set Repository Path**: Specify the path within the repository (default: `clusters`). ArgoCD will monitor this path for Kubernetes manifests. 3. **Select Clusters**: Choose which clusters ArgoCD should manage. All connected clusters are shown in the table with: * Project/Account * Location (region) * Cluster name * API Server Endpoint field 4. **Configure API Endpoints**: Enter the Kubernetes API server endpoint for each cluster: * The **management cluster** uses `kubernetes.default.svc` (pre-filled, since ArgoCD runs there) * For **remote clusters**, find the endpoint in your cloud provider's console: * **AWS EKS**: EKS Console > Clusters > API server endpoint * **GCP GKE**: GKE Console > Clusters > Endpoint * **Azure AKS**: AKS Console > Properties > API server address You can skip endpoint configuration during initial setup and add it later. ArgoCD won't be able to deploy to clusters without configured endpoints. ### Step 3: Configure GitHub Integration GitHub App integration setup for secure repository access The third tab sets up GitHub App integration for secure repository access: **Benefits of using GitHub Apps**: * **Fine-grained permissions**: Better security than personal access tokens * **Organization-wide access**: Access all repositories with a single credential * **Automatic token rotation**: GitHub Apps handle token renewal automatically **Setup process**: 1. **Select GitOps Repository**: Choose the repository from the dropdown 2. **Generate GitHub App Setup**: Click the button to generate GitHub App configuration 3. **Create GitHub App**: Follow the generated instructions to create the app in GitHub 4. **Install GitHub App**: Install the app to your organization 5. **Apply ArgoCD Configuration**: Apply the generated Kubernetes resources to configure ArgoCD ## Managing Addons Once ArgoCD is installed, you can install and configure cluster addons — cert-manager, Kyverno, Karpenter, OpenCost, Prometheus, and many others — from the **Addons** section in the sidebar. Skyhook generates ArgoCD Application resources for each addon you enable, commits them to your GitOps repository, and ArgoCD handles the rollout. See [Addons](/infrastructure/addons/overview) for the full walkthrough covering the addon catalog, per-cluster configuration, importing existing addons, and secret management. ## Deploying Applications For deploying your own applications with ArgoCD: 1. Define your application manifests in your GitOps repository 2. Create ArgoCD Application resources (either through the ArgoCD UI or by adding YAML to your GitOps repo) 3. ArgoCD syncs the application to your clusters based on the defined configuration 4. Monitor application status and health in the ArgoCD UI For advanced deployment strategies (Blue/Green, Canary), see [Argo Rollouts documentation](https://argoproj.github.io/argo-rollouts/). ## Troubleshooting If the `argocd` namespace already exists, you can either: * Delete the existing namespace: `kubectl delete namespace argocd` * Skip the namespace creation step and proceed with installing CRDs Verify ArgoCD isn't already installed: ```bash theme={"system"} kubectl get pods -n argocd ``` If ArgoCD can't connect to a cluster: 1. Verify the endpoint is correct: ```bash theme={"system"} kubectl cluster-info ``` 2. Check cluster credentials are configured: ```bash theme={"system"} kubectl config get-contexts ``` 3. Ensure ArgoCD has network access to the cluster API (check firewall rules, security groups) If GitHub App setup doesn't work: * Verify the app is installed to the correct organization * Check the app has access to the GitOps repository * Ensure the generated credentials were applied to the cluster correctly * Review ArgoCD logs: `kubectl logs -n argocd -l app.kubernetes.io/name=argocd-repo-server` If addons aren't deploying: 1. Check ArgoCD Application status: ```bash theme={"system"} kubectl get applications -n argocd ``` 2. View application details: ```bash theme={"system"} kubectl describe application -n argocd ``` 3. Check ArgoCD can access your GitOps repository 4. Verify the repository path contains valid Kubernetes manifests ## Next Steps * Configure your [management cluster](/infrastructure/gitops/management-cluster) settings * Learn about [helmify-kustomize](/infrastructure/gitops/helmify-kustomize) for converting Kustomize configs to Helm charts * Explore [ArgoCD documentation](https://argo-cd.readthedocs.io/) for advanced features * [How to Set Up ArgoCD on Kubernetes: Step-by-Step Guide](https://www.skyhook.io/blog/how-to-set-up-argocd-on-kubernetes) - deep-dive on ArgoCD installation and configuration * [ArgoCD Multi-Cluster Architecture](https://www.skyhook.io/blog/argocd-multi-cluster-architecture) - centralized vs per-cluster patterns # Policies Source: https://docs.skyhook.io/infrastructure/gitops/policies Policies enforce security, compliance, and best practices across your Kubernetes clusters. They validate resource configurations, prevent misconfigurations, and ensure consistency across environments—helping you catch issues before they reach production. Skyhook leverages Kyverno, a Kubernetes-native policy engine, to provide policy management through GitOps. Kyverno validates, mutates, and generates Kubernetes resources, and Skyhook provides a web interface for managing these policies across all your clusters. ## Prerequisites Before using Kyverno policies, ensure you have: * **ArgoCD installed**: Required for GitOps-based policy deployment. See [GitOps with ArgoCD](/infrastructure/gitops/overview) for setup instructions. * **At least one connected cluster**: Policies deploy to clusters connected to Skyhook. ## Installing Kyverno Kyverno is delivered as a GitOps addon. Installing it creates the required manifests in your GitOps repository and syncs them to your clusters via ArgoCD. ### Step 1: Verify ArgoCD Installation 1. Go to **Settings > GitOps** 2. Confirm that **ArgoCD** shows as **Installed** and **Healthy** 3. If not installed, follow the setup instructions in [GitOps with ArgoCD](/infrastructure/gitops/overview) ### Step 2: Open the Kyverno Addon Page Access the Kyverno addon configuration through either path: * **From Dashboard**: Navigate to **Dashboard > Addons > Kyverno** and click **Install Kyverno** * **From Settings**: Navigate to **Settings > Infrastructure > Kyverno** Both paths open the same configuration page. ### Step 3: Enable Kyverno on Clusters On the Kyverno addon page: 1. View the list of connected clusters with their addon configuration 2. For each cluster where you want Kyverno, set `enabled: true` using the UI toggle or YAML editor 3. Click **Save** / **Apply** to commit the configuration Skyhook then: * Updates the Kyverno addon values in your GitOps repository * Creates a pull request if your organization uses PR-based changes * Relies on ArgoCD to sync the Kyverno resources to your clusters ### Step 4: Verify Installation Once changes are applied: 1. Return to the **Kyverno** addon page or the **Kyverno** card on the **Dashboard** 2. Verify: * **Installed / Not Installed** status for Kyverno * The number of clusters where Kyverno is enabled If the status remains pending for a long time, check the ArgoCD sync status for the Kyverno application and review the GitOps PR status if changes are PR-based. ## Accessing Policies Once Kyverno is installed and enabled: * Go to **Settings > Policies** to see all Kyverno policies across your organization * Alternatively, use **Settings > Infrastructure > Kyverno** to access the Kyverno configuration and policy view ## Policy List The policy list displays all deployed Kyverno policies across clusters with the Kyverno addon enabled. ### Table Columns | Column | Description | | ---------------- | ---------------------------------------------------------------- | | **Policy Name** | Unique identifier of the policy | | **Type** | Validation, Mutation, Generation, or ImageVerification | | **Category** | Security, BestPractices, Compliance, or Custom | | **Mode** | Audit (report only) or Enforce (block violations) | | **Scope** | Cluster-wide or Namespaced | | **Cluster** | Target cluster(s) - shows "All Clusters" for base-level policies | | **Last Updated** | When the policy was last modified | | **Status** | Active or Inactive based on Kyverno addon status | ### Filtering Policies Use the filter dropdowns to narrow down the policy list: * **Type**: Filter by policy type (Validation, Mutation, Generation, ImageVerification) * **Category**: Filter by category (Security, BestPractices, Compliance, Custom) * **Mode**: Filter by enforcement mode (Audit or Enforce) * **Cluster**: Filter by specific cluster * **Namespace**: Filter by namespace (for namespaced policies) Use the search box to find policies by name or category. ### Understanding "All Clusters" Policies shown with "All Clusters" in the Cluster column are base-level policies that apply across all clusters where Kyverno is enabled. These are defined once and deployed to all clusters automatically. ## Adding a New Policy Click **Add Policy** to create a new policy. ### Step 1: Select Template or Custom Choose how to create your policy: 1. Select the **Use Template** tab 2. Browse available templates by category and type 3. Click on a template to select it Templates include pre-configured policies for common use cases like: * Requiring resource limits on pods * Blocking privileged containers * Enforcing image pull policies * Requiring specific labels or annotations 1. Select the **Custom YAML** tab 2. Enter your Kyverno policy YAML The policy must include: * `apiVersion: kyverno.io/v1` * `kind: ClusterPolicy` or `Policy` * `metadata.name` * For namespaced policies: `metadata.namespace` Example custom policy: ```yaml theme={"system"} apiVersion: kyverno.io/v1 kind: ClusterPolicy metadata: name: require-labels spec: validationFailureAction: Enforce rules: - name: check-for-labels match: resources: kinds: - Pod validate: message: "The label 'app.kubernetes.io/name' is required." pattern: metadata: labels: app.kubernetes.io/name: "?*" ``` ### Step 2: Configure Policy Settings 1. **Policy Scope**: Choose between ClusterPolicy (cluster-wide) or Namespaced Policy 2. **Enforcement Mode**: * **Audit**: Violations are reported but not blocked * **Enforce**: Violations are blocked 3. Review the YAML preview ### Step 3: Select Target Clusters 1. Select target clusters for deployment 2. For namespaced policies, select specific namespaces within each cluster 3. Use the search box to find clusters by name, provider, or region ### Step 4: Create the Policy Click **Create Policy** to generate a pull request with your policy changes. Once the PR is merged, ArgoCD deploys the policy. ## Policy Details Click on any policy in the list to open the details drawer. ### Overview Tab * **Enforcement Mode**: Toggle between Audit and Enforce modes (click **Apply** after changing to create a PR with the update) * **Metadata**: Policy name, namespace, and status * **Target Resources**: Kubernetes resources the policy applies to ### Rules Tab View individual rules within the policy: * Rule name and type * Match conditions * Exclude conditions * Rule logic ### YAML Tab View the complete policy YAML definition. ## Managing Clusters Click **Manage Clusters** to configure which clusters have Kyverno enabled. This opens the Kyverno addon configuration page where you can: * Enable/disable Kyverno on specific clusters * Configure Kyverno addon settings * View installation status ## GitOps Workflow All policy changes follow a GitOps workflow: 1. **Create/Modify Policy**: Use the UI to create or update policies 2. **Pull Request**: A PR is automatically created with your changes 3. **Review & Merge**: Review the PR and merge when ready 4. **Automatic Deployment**: ArgoCD syncs the changes to your clusters ## Observing Policy Effects Once policies are deployed, observe their effects in several places. ### In the Skyhook UI * **Policy Status**: In **Settings > Policies**, each policy shows its Mode (Audit/Enforce), Scope, Cluster, and Status * **Addon Status**: On the Kyverno addon page, verify the list of clusters where Kyverno is enabled and healthy ### In Kubernetes Events On clusters where Kyverno is enabled, policy activity appears in Kubernetes events: **Admission events / rejections**: When a policy is in **Enforce** mode and blocks a resource, the API server returns a validation error. View these failures in: * `kubectl` output when applying manifests * Cluster events for the affected resource ```bash theme={"system"} # View events for a specific resource kubectl get events -A --field-selector involvedObject.name= # Describe a resource to see related events kubectl describe -n ``` Look for messages that reference Kyverno or specific Kyverno rule names. ### Policy Reports If your Kyverno installation is configured to produce `PolicyReport` or `ClusterPolicyReport` resources: ```bash theme={"system"} # List policy reports kubectl get policyreport -A kubectl get clusterpolicyreport # View details of a specific report kubectl describe policyreport -n ``` Policy reports provide a history of policy evaluations (both successes and failures), complementing real-time Kubernetes events. ## Best Practices Test new policies in Audit mode before enforcing to understand their impact without blocking workloads. Leverage pre-built templates for common security and compliance policies rather than writing from scratch. Be specific about which resources a policy applies to. Overly broad policies can cause unexpected blocks. Always review the generated PR before merging. Verify the policy YAML and target clusters are correct. ## Troubleshooting Kyverno policy management requires ArgoCD for GitOps deployment. **Solution**: Visit **Settings > GitOps** to install and configure ArgoCD. Follow the setup wizard to complete the installation. Policies appear inactive when Kyverno is not enabled on the target cluster. **Solution**: Enable Kyverno on the cluster through the addon settings: 1. Go to **Settings > Infrastructure > Kyverno** 2. Enable Kyverno on the affected cluster 3. Wait for ArgoCD to sync the changes If no namespaces appear when creating a namespaced policy: **Check**: * The cluster is connected and accessible * Namespaces exist in the target cluster * You have permissions to list namespaces **Verify connectivity**: ```bash theme={"system"} kubectl get namespaces --context ``` If a policy is deployed but not validating resources: **Check**: 1. Verify the policy is in **Enforce** mode (Audit mode only reports, doesn't block) 2. Confirm the policy matches the target resources (check `match` conditions in the YAML) 3. Review Kyverno controller logs: ```bash theme={"system"} kubectl logs -n kyverno -l app.kubernetes.io/name=kyverno ``` 4. Check if the resource was created before the policy was applied (policies only affect new resources by default) ## Next Steps * Learn about [GitOps with ArgoCD](/infrastructure/gitops/overview) for managing deployments * Configure your [management cluster](/infrastructure/gitops/management-cluster) settings * Explore [Kyverno documentation](https://kyverno.io/docs/) for advanced policy patterns # Gateways & Certificates Source: https://docs.skyhook.io/infrastructure/networking/gateways-certificates Manage Envoy Gateway instances, Kubernetes Gateway API HTTPRoutes, and TLS certificate issuers from one place. Skyhook provides dedicated settings pages for Kubernetes **Gateway API** and **certificate management**, so routing and TLS configuration live alongside the rest of your infrastructure settings — not buried in raw YAML. Two pages work together: * **Settings → Gateways** — Envoy Gateway installation status, gateway classes, and gateway instances across your clusters * **Settings → Certificates** — cert-manager installation status and certificate issuers (ClusterIssuer resources) For services that use the Gateway API instead of traditional Ingress, this is where you configure the routing infrastructure; the per-service HTTPRoute settings are on the service's Network tab. ## Gateways The **Settings → Gateways** page manages your Envoy Gateway deployment. Gateways settings page showing Envoy Gateway installation status (3 of 9 clusters), Gateway Classes table with envoy-gateway and gke-l7 classes, and Gateway Instances table listing primary-gateway, skyhook-frp-gateway across multiple clusters ### Envoy Gateway installation At the top, a status banner shows how many clusters have the Envoy Gateway addon installed. Click **Manage** to install it on additional clusters. [Envoy Gateway](https://gateway.envoyproxy.io/) is an open-source project that wraps Envoy Proxy as a Kubernetes Gateway API controller — it's what translates Gateway API resources into real traffic routing. Envoy Gateway is the recommended implementation for: * **Standardized ingress** — one configuration format that works across clusters and cloud providers * **Richer routing** than classic Ingress (header-based routing, traffic splitting, gRPC, TCP) * **Multi-team isolation** — each team owns its own Gateway without stepping on shared resources ### Gateway Classes A **GatewayClass** is a cluster-scoped resource that tells Kubernetes which controller should handle a given Gateway. You'll see one row per gateway class available across your clusters, with: * **Class Name** — the GatewayClass name * **Controller** — the controller that handles this class (e.g. `gateway.envoyproxy.io/gatewayclass-controller`, `networking.gke.io/gateway` for GKE-managed) * **Description** — short summary of the class's purpose * **Clusters** — which clusters this class is available on Skyhook picks up cloud-provider GatewayClasses automatically (like GKE's `gke-l7-global-external-managed`), so you can use them alongside Envoy Gateway without manual setup. ### Gateway Instances The table at the bottom lists every **Gateway** resource in your clusters: * **Cluster** — which cluster it runs on * **Name** — the Gateway name * **Namespace** — Kubernetes namespace * **Gateway Class** — which class handles this Gateway * **Listeners** — how many listeners (ports + protocols) the Gateway exposes * **Status** — Runtime status from ArgoCD Click **Add Gateway** to create a new Gateway from a form. If a cluster has no GatewayClass resources, the form shows a contextual alert linking you to install Envoy Gateway first. ### Linking a certificate issuer at creation time When you create a Gateway that needs TLS termination, the form offers an inline picker to link an existing gateway-compatible ClusterIssuer. Selecting one bundles the Gateway creation and the issuer attachment into a single pull request — no two-step process where you create the Gateway first and then go hunting for the issuer config separately. ## Certificate issuers The **Settings → Certificates** page manages cert-manager and its ClusterIssuer resources. Certificates settings page showing cert-manager installation status (5 of 9 clusters) with a Manage button, and a Certificate Issuers table listing letsencrypt, gateway-letsencrypt, gateway-selfsigned, letsencrypt-dns01 entries across clusters with ACME type and Runtime status ### cert-manager installation At the top, a banner shows how many clusters have [cert-manager](https://cert-manager.io/) installed. Click **Manage** to install it on additional clusters. cert-manager is the standard for automated TLS certificate issuance on Kubernetes — it handles Let's Encrypt, ACME DNS-01/HTTP-01 challenges, self-signed certificates, private CAs, and more. ### Certificate Issuers table The table lists every `ClusterIssuer` resource across all clusters where cert-manager is installed. Columns: * **Name** — the issuer name (e.g. `letsencrypt`, `letsencrypt-dns01`, `gateway-letsencrypt`, `gateway-selfsigned`) * **Cluster** — which cluster the issuer is configured on * **Type** — issuer type (ACME for Let's Encrypt, CA for private CAs, etc.) * **Status** — Runtime status from cert-manager * **Actions** — View opens the full definition Click **Add Issuer** to create a new ClusterIssuer. Common issuer types: * **Let's Encrypt (production)** — free certificates from Let's Encrypt's production endpoint * **Let's Encrypt (staging)** — for testing; hits rate limits gently but issues untrusted certs * **Let's Encrypt DNS-01** — DNS-based challenge for wildcard certificates * **Self-signed** — for internal services and testing * **Gateway-compatible issuers** — issuers with the `gateway-*` prefix are specifically configured for use with Gateway API resources ### Using issuers with Gateways Gateway-compatible issuers appear in the picker when you create a Gateway that terminates TLS. They're functionally the same as regular ClusterIssuers but are pre-configured to work with Gateway API's `listeners[].tls.certificateRefs` pattern, saving you from having to manually wire a Certificate resource between the issuer and the Gateway. ## Typical setup A minimum viable setup for Gateway API with automatic TLS looks like this: From **Settings → Certificates**, click **Manage** on the cert-manager banner and install it on every cluster that needs TLS certificates. From **Settings → Gateways**, install Envoy Gateway on the clusters that will host your Gateway instances. On the Certificates page, click **Add Issuer** and configure a Let's Encrypt production issuer (with DNS-01 if you need wildcard certificates, HTTP-01 otherwise). On the Gateways page, click **Add Gateway**, pick the `envoy-gateway` GatewayClass, add a listener for port 443 with TLS, and link the ClusterIssuer you just created. On each service's Network tab, enable HTTPRoute, pick the Gateway you just created, and define the paths you want to route. Each step opens a pull request against your GitOps repository. After they're all merged, you have a fully-configured Gateway API ingress path with automatic TLS. ## Troubleshooting Skyhook couldn't reach one or more clusters to fetch the ClusterIssuer state. Already-fetched issuers are still shown; only the failing clusters are affected. Check cluster connectivity on the Clusters page and refresh. The cluster you picked doesn't have any GatewayClass resources. Install Envoy Gateway (or use a cloud-provider GatewayClass like GKE's) on that cluster first. The form shows a direct link to manage Envoy Gateway when it detects this state. ACME issuers need to complete a challenge before they're marked ready. Common causes: * **HTTP-01 challenge** — the challenge endpoint isn't publicly reachable. Check that your load balancer routes the `/.well-known/acme-challenge/*` path to the cluster. * **DNS-01 challenge** — the DNS provider credentials are wrong or don't have permission to create TXT records. * **Rate limits** — Let's Encrypt production has strict rate limits. Use the staging issuer for testing. Check three things: 1. The HTTPRoute is attached to the Gateway (parentRef matches the Gateway name and namespace) 2. The backend Service exists and has healthy endpoints 3. The Gateway listener protocol matches your route (HTTPS on 443 vs HTTP on 80) # Sealed Secrets Implementation Source: https://docs.skyhook.io/infrastructure/security/envvars-secrets This page covers the technical implementation of Sealed Secrets in Skyhook for platform operators and infrastructure teams. For developer-facing documentation on using environment variables and secrets, see [Environment Variables & Secrets](/application/services/envvars-secrets). ## Overview Skyhook uses [Bitnami Sealed Secrets](https://github.com/bitnami-labs/sealed-secrets) to encrypt sensitive configuration data before storing it in Git repositories. This ensures secrets remain secure even when version-controlled alongside application code. ## How Sealed Secrets Work Sealed Secrets uses asymmetric cryptography to enable GitOps-compatible secret management: ### Architecture ``` Plain-text secret → Skyhook UI ↓ (encrypt with public key) Encrypted SealedSecret → Git repository ↓ (deploy via GitOps/ArgoCD) SealedSecret resource → Kubernetes cluster ↓ (decrypt with private key) Sealed Secrets Controller → Standard Kubernetes Secret ↓ (mount to pod) Application pods → Access secret values ``` ### Key Components **Public Key (Cluster-Specific)**: * Each cluster's Sealed Secrets controller generates a unique public/private key pair * Skyhook fetches the public key to encrypt secrets * Public keys are safe to store or share **Private Key (Cluster-Specific)**: * Stored securely within the Sealed Secrets controller in the cluster * Never leaves the cluster * Used to decrypt SealedSecret resources into standard Kubernetes Secrets **Sealed Secrets Controller**: * Runs in the target Kubernetes cluster (typically in the `kube-system` namespace) * Watches for SealedSecret custom resources * Decrypts them into standard Secrets that pods can consume * Manages key rotation and renewal ### Security Model The security model ensures zero-knowledge architecture: 1. **Encryption happens client-side**: Skyhook encrypts secrets before they leave the UI 2. **Git stores encrypted data**: Only encrypted `SealedSecret` resources are committed to repositories 3. **Decryption happens in-cluster**: Only the target cluster's controller can decrypt secrets 4. **Skyhook has no access**: The platform cannot decrypt secrets; only your clusters can **Benefits**: * Secrets are safe to commit to version control * Git provides audit trail (who changed what, when) * No central secret store vulnerability * Compatible with GitOps workflows * Cluster isolation via cluster-specific keys ## Installing Sealed Secrets The Sealed Secrets controller must be installed on all clusters where you want to use secrets. ### Installation via Skyhook GitOps **Recommended**: Install via Skyhook's GitOps settings for automated management. **Prerequisites**: 1. ArgoCD installed on your management cluster (see [GitOps Setup](/infrastructure/gitops/overview)) 2. Clusters connected to Skyhook **Installation Steps**: 1. Navigate to [GitOps Settings](https://app.skyhook.io/settings/gitops) in Skyhook 2. Under **Featured Addons**, locate **Sealed Secrets controller** 3. Select the clusters where you want secrets support (typically all clusters) 4. Review the default configuration or customize as needed 5. Generate and merge the pull request to deploy the controller **Default Configuration**: * Namespace: `kube-system` * Controller image: `quay.io/bitnami/sealed-secrets-controller` * Key renewal: Enabled (30-day rotation) * Service type: `ClusterIP` ### Manual Installation Alternatively, install Sealed Secrets manually using kubectl or Helm: **Using kubectl**: ```bash theme={"system"} kubectl apply -f https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.24.0/controller.yaml ``` **Using Helm**: ```bash theme={"system"} helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets helm install sealed-secrets sealed-secrets/sealed-secrets --namespace kube-system ``` ### Verifying Installation Check that the controller is running: ```bash theme={"system"} kubectl get pods -n kube-system -l name=sealed-secrets-controller ``` Expected output: ``` NAME READY STATUS RESTARTS AGE sealed-secrets-controller-xxxxxxxxxx-xxxxx 1/1 Running 0 5m ``` Fetch the public key (used by Skyhook for encryption): ```bash theme={"system"} kubectl get secret -n kube-system sealed-secrets-key -o jsonpath='{.data.tls\.crt}' | base64 -d ``` ## How Skyhook Integrates with Sealed Secrets ### Secret Encryption Flow When a developer adds or updates a secret in Skyhook: 1. **Fetch Public Key**: Skyhook retrieves the public certificate from the target cluster's Sealed Secrets controller 2. **Encrypt Secret**: The secret value is encrypted client-side using the public key 3. **Create SealedSecret**: A `SealedSecret` Kubernetes custom resource is generated 4. **Store in Git**: The encrypted SealedSecret is committed to the deployment repository 5. **Deploy via GitOps**: ArgoCD or another GitOps tool syncs the SealedSecret to the cluster 6. **Controller Decrypts**: The Sealed Secrets controller decrypts the SealedSecret into a standard Kubernetes Secret 7. **Pods Consume**: Application pods mount the Secret as environment variables or files ### Secret Storage in Git Sealed Secrets are stored in your deployment repository as Kubernetes custom resources: ```yaml theme={"system"} apiVersion: bitnami.com/v1alpha1 kind: SealedSecret metadata: name: my-service-secrets namespace: production spec: encryptedData: DATABASE_URL: AgA...encrypted... STRIPE_API_KEY: AgB...encrypted... ``` The `encryptedData` fields contain encrypted values that are safe to commit to Git. ### Environment-Specific Secrets Skyhook creates a SealedSecret resource for each service, named after the service itself (e.g., `my-service`) and deployed to the service's namespace. Secrets are environment-specific, with separate encrypted values for each environment (production, staging, development, etc.) stored within the same SealedSecret resource. This ensures: * Environment isolation through separate encrypted values * Different credentials per environment * Cluster-specific encryption (production cluster can't decrypt staging secrets if using different controllers) ## Reloader Integration ### Overview Kubernetes does not automatically restart pods when ConfigMaps or Secrets change. [Reloader](https://github.com/stakater/Reloader) solves this by monitoring configuration resources and triggering rolling restarts when changes are detected. ### How Reloader Works 1. **Watch for Changes**: Reloader watches ConfigMaps and Secrets referenced by Deployments, StatefulSets, and DaemonSets 2. **Detect Updates**: When a ConfigMap or Secret is updated, Reloader detects the change 3. **Trigger Restart**: Reloader updates an annotation on the Deployment, triggering a rolling restart 4. **Zero Downtime**: Pods restart gracefully with the new configuration ### Installing Reloader **Via Skyhook GitOps**: 1. Go to [GitOps Settings](https://app.skyhook.io/settings/gitops) 2. Locate **Reloader** under Featured Addons 3. Select target clusters 4. Generate and merge the pull request **Manual Installation**: ```bash theme={"system"} kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml ``` ### Enabling Per-Service Developers can enable auto-reload for individual services in the **Env Vars & Secrets** tab by checking **Reload on Environment Variables or Secrets Update**. This adds the necessary annotations to the service's Deployment: ```yaml theme={"system"} apiVersion: apps/v1 kind: Deployment metadata: annotations: reloader.stakater.com/auto: "true" spec: # ... ``` ## Troubleshooting ### Secrets Not Decrypting **Symptoms**: SealedSecret exists but no corresponding Secret is created **Causes**: * Sealed Secrets controller not installed or not running * Wrong cluster public key used for encryption * Controller doesn't have RBAC permissions **Resolution**: ```bash theme={"system"} # Check controller status kubectl get pods -n kube-system -l name=sealed-secrets-controller # Check controller logs kubectl logs -n kube-system -l name=sealed-secrets-controller # Verify SealedSecret resource kubectl get sealedsecret -n kubectl describe sealedsecret -n ``` ### Key Rotation Issues **Symptoms**: Old secrets work but newly created secrets fail to decrypt **Causes**: * Cluster certificate was rotated but Skyhook is using old public key * Manual certificate replacement without proper key backup **Resolution**: * Ensure Skyhook refetches the cluster's current public key * Verify the controller's certificate: ```bash theme={"system"} kubectl get secret -n kube-system sealed-secrets-key -o yaml ``` ### Pods Not Reloading **Symptoms**: Secrets updated but pods still use old values **Causes**: * Reloader not installed * Reloader annotations missing or incorrect * Reloader not watching the correct namespace **Resolution**: ```bash theme={"system"} # Check if Reloader is running kubectl get pods -n reloader # Verify Deployment annotations kubectl get deployment -n -o yaml | grep reloader # Check Reloader logs kubectl logs -n reloader -l app=reloader ``` ## kubectl Integration ### Sealing Secrets Manually The `kubeseal` CLI can manually encrypt secrets: **Install kubeseal**: ```bash theme={"system"} # macOS brew install kubeseal # Linux wget https://github.com/bitnami-labs/sealed-secrets/releases/download/v0.24.0/kubeseal-linux-amd64 chmod +x kubeseal-linux-amd64 sudo mv kubeseal-linux-amd64 /usr/local/bin/kubeseal ``` **Seal a secret**: ```bash theme={"system"} # Create a Secret (don't apply it) kubectl create secret generic my-secret \ --from-literal=DB_PASSWORD=supersecret \ --dry-run=client -o yaml > secret.yaml # Seal the secret kubeseal --format yaml < secret.yaml > sealed-secret.yaml # Apply the SealedSecret kubectl apply -f sealed-secret.yaml ``` ### Backing Up Encryption Keys **Important**: Back up the Sealed Secrets controller's private key to prevent data loss during cluster migrations. **Export private key**: ```bash theme={"system"} kubectl get secret -n kube-system sealed-secrets-key -o yaml > sealed-secrets-key-backup.yaml ``` **Restore private key** (on new cluster): ```bash theme={"system"} kubectl apply -f sealed-secrets-key-backup.yaml kubectl delete pod -n kube-system -l name=sealed-secrets-controller # Restart controller ``` ## Security Best Practices ### Key Management * **Backup private keys**: Store sealed-secrets controller keys securely for disaster recovery * **Rotate keys regularly**: Enable automatic key rotation (default: 30 days) * **Separate keys per cluster**: Never share private keys between clusters ### Access Control * **Limit RBAC**: Restrict who can view/edit Secrets and SealedSecrets * **Audit changes**: Review Git history for unauthorized secret modifications * **Encrypt Git repos**: Use private repositories with strict access controls ### Secret Hygiene * **Rotate secrets**: Update API keys, passwords, and tokens periodically * **Delete unused secrets**: Remove deprecated secrets to reduce attack surface * **Monitor usage**: Track which secrets are actually being used ## Additional Resources * [Sealed Secrets GitHub Repository](https://github.com/bitnami-labs/sealed-secrets) * [Sealed Secrets Documentation](https://sealed-secrets.netlify.app/) * [Reloader GitHub](https://github.com/stakater/Reloader) * [Skyhook GitOps Setup](/infrastructure/gitops/overview) * [How to Manage Secrets in Kubernetes: 5 Approaches Compared](https://www.skyhook.io/blog/how-to-manage-secrets-in-kubernetes) - comparison of Sealed Secrets, SOPS, vault SDKs, External Secrets Operator, and CSI Driver # SOC2 Source: https://docs.skyhook.io/infrastructure/security/soc2 Skyhook is committed to security and is fully SOC2 compliant. This means our infrastructure and processes are being constantly evaluated against industry best practices to ensure the highest level of security for your applications, clusters, and databases. Skyhook also incorporates numerous security features by default to safeguard your applications and clusters, ensuring they meet the most rigorous SOC2 security standards. All customers who require SOC2 compliance and leverage Skyhook benefit from significant time savings. For more details on our security and compliance measures, visit our [Trust Center](https://trust.skyhook.io/). SOC2Logo # Role Based Access Control Source: https://docs.skyhook.io/infrastructure/security/team-management All changes that are made to your configuration through the Skyhook Portal or CLI are created as Pull Requests (PRs). Therefore, your existing repository RBAC settings and review processes are inherently in use by Skyhook for any change that is made to your backend services configuration. Skyhook will soon support additional RBAC granularities, for example, control which users are allowed to: * View certain areas of the product, such as Settings. * View only specific services and clusters. * Create PRs with configuration changes. # Core Concepts Source: https://docs.skyhook.io/introduction/core-concepts Understanding these core concepts will help you get the most out of Skyhook. ## Service In Skyhook, a **service** is your unit of deployment: the code that gets packaged and deployed together across environments. It could be a microservice, API, or web application. Think of it from a development team's perspective: a service is typically "owned" by a person or team and includes everything related to it, including deployment process, testing, observability, and configuration. **Key characteristics:** * Has its own repository (or path in a monorepo) * Deploys to one or more environments * Configured with container settings, resources, and scaling rules * Can expose APIs via ingress/networking configuration This is different from the Kubernetes **Service** object, which is a low-level networking abstraction. Skyhook helps you configure Kubernetes Services as part of managing your service deployment. ## Jobs **Jobs** in Skyhook are one-time or scheduled tasks that run to completion. Unlike services that run continuously, jobs execute, finish, and exit. **Common use cases:** * Database migrations * Scheduled data processing (cron jobs) * Batch operations * CI/CD tasks Jobs can be triggered manually, on a schedule, or as part of deployment workflows. ## Environment An **environment** in Skyhook represents where your services run (e.g., `dev`, `staging`, `production`). **Two types of environments:** ### Static Environments Long-lived, shared environments where services run together. Your team decides which services deploy to which environments and which versions run in each. **Examples:** `production`, `staging`, `dev`, `qa` ### Preview (Ephemeral)Environments Temporary environments created on-demand, typically for pull requests or feature branches. These spin up, get tested, and are automatically cleaned up when no longer needed. **Example:** A preview environment for PR #123 that includes your service and its dependencies Not to be confused with development environments (IDEs, dev tools), which are about building code, not deploying it. ## Cluster A **Kubernetes cluster** is where your services and jobs actually run. It's a group of machines (nodes) that run containerized applications, managed by Kubernetes. Skyhook connects to your clusters and helps you manage deployments, but the clusters remain in your cloud account and you retain full control. **Key points:** * You can connect multiple clusters (for different regions, environments, or teams) * Clusters can be in AWS, GCP, Azure, or any Kubernetes-compatible platform * Skyhook's Cluster Connector runs in your cluster to enable management ## GitOps **GitOps** is an optional operational model where your Git repository is the source of truth for infrastructure and application configuration. With Skyhook, you can choose to use GitOps via ArgoCD: * Your desired state is defined in Git (via YAML manifests) * ArgoCD continuously syncs your cluster to match Git * Changes are made via pull requests, providing audit trails and easy rollbacks Alternatively, you can deploy directly from your CI/CD workflows without GitOps. ## Cluster Connector vs Skyhook Agent Skyhook has two distinct components that work together: ### Cluster Connector A lightweight software component that runs **inside your Kubernetes cluster**. Also known as the Skyhook Cluster Connector or Skyhook Connector, it provides Skyhook with visibility into your cluster by fetching resource information on demand. **What it does:** * Reads Kubernetes resources (pods, deployments, services, etc.) * Maintains a fast in-memory cache for quick queries * Fetches logs from your services * Cleans up ephemeral preview environments when they're no longer needed **What it does NOT do:** * Does not deploy workloads (deployments happen via GitOps or CI/CD) * Does not modify resources (except deleting ephemeral namespaces) * Does not access secrets **Think of it as:** A read-only observer that gives Skyhook visibility into your cluster without requiring external API access. ### Skyhook Agent An AI-powered assistant that helps you interact with Skyhook, debug issues, and understand your setup. **What it does:** * Answers questions about your services and cluster * Helps troubleshoot deployment issues * Suggests configurations and best practices * Provides insights based on your actual setup **Think of it as:** Your intelligent platform copilot that knows your specific infrastructure and code. The Cluster Connector provides cluster visibility, while the Skyhook Agent helps you understand and act on that information. *** Ready to get started? Head to our [Quick Start](/getting-started/quick-start) guide. # Welcome to Skyhook Source: https://docs.skyhook.io/introduction/welcome A Kubernetes platform that generates the workflows, manifests, and GitOps plumbing — you keep the repo and the cloud account. Skyhook generates the GitHub Actions, Kubernetes manifests, and GitOps wiring that most teams build by hand. You bring a cluster and a repo; Skyhook fills in the boring middle so engineers can ship to Kubernetes without running a platform team. ## Pick your path Import a repo, get generated workflows + Kubernetes config, deploy to dev in under ten minutes. Start with **Create and Import Services**. Connect clusters, set up GitOps, configure addons and CI/CD credentials. Start with the **Onboarding Guide**. ## How it works Bring your own GKE, EKS, AKS, or any Kubernetes-compatible cluster. Skyhook installs a lightweight read-only connector via Helm — clusters stay in your account. Skyhook scans your repo, detects language and framework, and generates a Dockerfile, Kubernetes manifests, and CI/CD workflows. You review the pull requests before anything merges. Push to main and your service builds and deploys automatically. Promote across environments from the UI, CLI, or a `workflow_dispatch` run in GitHub Actions. Logs, metrics, traces, preview environments, GitOps with ArgoCD — all wired up. Override anything the generators produced; it's your repo. ## Set it up from your terminal The fastest way through onboarding is the CLI: ```bash theme={"system"} # install (macOS — see Onboarding Guide for Linux/Windows) brew install skyhook-io/tap/skyhook # walk through cluster connect → GitHub OIDC → ArgoCD bootstrap → first service skyhook onboard ``` The same flow is available in the web UI at [app.skyhook.io](https://app.skyhook.io). Both produce the same result. ## What's in here Services, environments, clusters, GitOps, and the difference between the cluster connector and the AI agent. How generated GitHub Actions workflows build, deploy, and promote your services across environments. Optional declarative deployments — Git as the source of truth, ArgoCD reconciling clusters. GKE, EKS, AKS, or any conformant Kubernetes — including bare-metal, k3s, and on-prem. Logs, metrics, traces, and FinOps — opinionated defaults you can swap out. AI assistant that knows your services, clusters, and code. Ask, debug, and configure in chat. Stuck? Email [support@skyhook.io](mailto:support@skyhook.io) — a real engineer reads it. # FinOps Source: https://docs.skyhook.io/observability/finops/overview Monitor Kubernetes costs, resource efficiency, and network transfer spend across your clusters. The FinOps dashboard gives you visibility into Kubernetes spend across your connected clusters. It surfaces total cost, potential savings from right-sizing, workload efficiency, and cross-zone/cross-region/internet-egress network costs — all in one place — so you can decide where to optimize before money is wasted. FinOps data is powered by [OpenCost](https://www.opencost.io/), an open-source Kubernetes cost monitoring project. Skyhook bundles OpenCost and Prometheus together as a single addon and wires in cloud billing integration automatically. FinOps dashboard showing total spend, potential savings, efficiency, top inefficient pods, cost composition, cost over time, and action-required items ## Prerequisites * At least one connected cluster (see [Connecting Clusters](/infrastructure/clusters/connecting-clusters)) * The **OpenCost** addon installed on the clusters you want to monitor If OpenCost is not installed, the FinOps pages show an empty state with a direct link to the addon. ## Installing the OpenCost addon FinOps in Skyhook is delivered as a single addon that installs both OpenCost and Prometheus: * **Prometheus** — collects metrics from your cluster and containers so efficiency calculations have accurate usage data * **OpenCost** — joins that usage data with pricing (either estimated or from your cloud bill) to produce cost numbers Navigate to **Addons** in the sidebar and find **OpenCost** in the catalog, or follow the **Go to Addon** button from the FinOps empty state. On the OpenCost addon page, click **Add** next to each cluster where you want cost monitoring. OpenCost addon page showing cluster installation status across 11 clusters, with Configured status on two clusters and Add buttons on the rest Skyhook automatically detects the cloud provider for each cluster and pre-fills cloud-specific configuration: * **AWS** — IRSA role annotation, Athena CUR integration (database, table, workgroup) * **GCP** — Workload Identity annotation, BigQuery billing export integration * **Generic/other** — Basic Prometheus metrics only (no cloud billing numbers) Setup instructions in the YAML header include the exact CLI commands for creating the IAM role or service account. No static credentials are stored. After the addon syncs via ArgoCD, OpenCost needs a few minutes to start reporting metrics. Once data is available, the FinOps pages populate automatically. FinOps costs shown in Skyhook are **estimates** derived from resource usage rates. Live cloud billing integration is available via the AWS/GCP configuration above — hover over the info icon next to the page title to see the current estimation status. ## Summary dashboard The main FinOps page (**FinOps > Overview**) summarizes cost and efficiency across all clusters where OpenCost is installed. ### Key metrics Three headline cards at the top: * **Total Spend** — Sum of Kubernetes resource costs: compute (CPU + memory requests), idle capacity, and network transfer, over the selected time range. * **Potential Savings** — Estimated cost reduction from right-sizing over-provisioned workloads. Calculated as requested resources minus actual usage. * **Efficiency** — Ratio of actual resource usage to requested resources, weighted by cost and averaged across all workloads. Color-coded: * **Green** ≥ 60% (healthy) * **Orange** 30–60% (over-provisioned) * **Red** \< 30% (severely over-provisioned) ### Top Inefficient Pods Lists the five workloads with the worst efficiency (\< 60%) and the monthly savings opportunity for each. Clicking **View All** jumps to the Efficiency Analysis page pre-filtered to those pods. ### Where Your Money Goes Donut chart breaking total spend into three categories: * **Compute (Used)** — active workload cost * **Idle Capacity** — unused cluster resources (node headroom, unallocated pods) * **Network** — data transfer cost across zones, regions, and internet egress ### Cost Breakdown Over Time Stacked bar chart of daily or weekly cost, colored by compute/idle/network. Use the time range selector (24h, 7d, 30d, or custom) to change the window — chart buckets resize automatically (7 daily buckets for 7d, 4 weekly buckets for 30d, etc.). ### Action Required Contextual list of recommended actions derived from the data: * **Efficiency actions** for the three worst-performing workloads, linking directly to the pod in the Efficiency page * **Idle capacity actions** when idle percentage exceeds 10%, suggesting right-sizing or workload consolidation Each item shows severity (high/medium/low), a description, the monthly savings potential, and a **View Details** button. ## Efficiency Analysis The **FinOps > Efficiency** page shows resource utilization for every workload, with an interactive table to find over-provisioning at any level. Efficiency Analysis page with a sortable table showing CPU Usage, Memory Usage, Overall efficiency, and Waste columns, aggregated by namespace ### Aggregation Switch the **Aggregate** dropdown to group by: * **Namespace** (default) * **Controller** (Deployment, StatefulSet, etc.) * **Pod** * **Node** — adds a **Machine type** column cross-referenced from cluster data Filters reset when you switch aggregation to avoid stale name filters from a different level. ### Columns | Column | What it shows | | ---------------- | -------------------------------------------------------- | | **Name** | Namespace / controller / pod / node name | | **CPU Usage** | Percent of requested CPU actually in use | | **Memory Usage** | Percent of requested memory actually in use | | **Overall** | Cost-weighted efficiency across CPU + memory | | **Waste** | Estimated monthly dollar amount spent on unused capacity | Click any column header to sort. Use the **Name** filter box for multi-select filtering across the current aggregation. A warning icon (⚠️) flags workloads with severely over-provisioned resources. ### Expandable rows Expand a namespace or controller row to see its child workloads with their individual CPU/memory utilization and inline **Apply** / **Dismiss** recommendations where Skyhook can suggest right-sized requests. ## Network Costs The **FinOps > Network Costs** page breaks down data transfer spend that often hides in cloud bills. Network Costs page showing total transfer, total network cost, cross-zone, cross-region, and internet egress totals, with a detailed breakdown table and optimization suggestions ### Top-line metrics * **Total Transfer** — Total data moved across the network in GB * **Total Network** — Total network spend * **Cross-Zone** — Transfer between availability zones in the same region (usually the largest line item) * **Cross-Region** — Transfer between regions * **Internet Egress** — Transfer leaving the cloud provider's network ### Detailed Breakdown Table with per-namespace (or per-controller, or per-cluster) cost and GB transferred, split across cross-zone, cross-region, and internet egress columns. Click any column header to sort. ### Optimization Suggestions Skyhook generates contextual suggestions based on the breakdown — for example: * **High cross-zone traffic** in a namespace → consider pod affinity rules or topology-aware routing * **Cross-region traffic** → co-locate services or use regional caching * **Internet egress** → review external API calls for caching opportunities Each suggestion includes the current cost contribution. Click **Ask Skyhook Agent** at the top of the suggestions panel to have the AI assistant help dig into the root cause. ## Time range and refresh Every FinOps page shares a time range selector (**24h / 7d / 30d / Custom**) and a refresh button. Each cluster is queried independently, so if one cluster's OpenCost instance is unreachable, the dashboard shows partial results with a warning banner naming the failed clusters. A **Last updated** timestamp next to the refresh button shows data freshness. The 7-day window is loaded in the background on page open, so switching between time ranges feels instant. ## Troubleshooting The OpenCost addon is not installed on any connected cluster. Click **Go to Addon** to open the OpenCost configuration page and add it to at least one cluster. After the addon syncs via ArgoCD, click **Refresh** on the FinOps page. Skyhook couldn't reach OpenCost on one or more clusters. The dashboard still shows partial results from the remaining clusters. Common causes: * OpenCost pod is not running — check **Cluster resources** for the `opencost` namespace * ArgoCD sync is in progress — verify addon status on the OpenCost addon page * Cluster agent connectivity issue — check the cluster health in **Infrastructure > Clusters** Without cloud billing integration, Skyhook estimates costs from resource usage rates and standard instance pricing. These are useful for relative comparisons (which workload wastes the most?) but won't match a cloud bill to the cent. For accurate numbers, configure the AWS Athena CUR integration or GCP BigQuery billing export in the OpenCost addon. The info icon next to the page title shows the current estimation status. A workload using more resources than requested is **underprovisioned** — it's being throttled or risks OOM-kill. Skyhook flags these alongside over-provisioned workloads so you can raise the requests instead of lowering them. # Logs Source: https://docs.skyhook.io/observability/logs In-app log viewing for running services plus Grafana Loki aggregation for long-term analysis. Skyhook gives you two ways to look at logs: 1. **In-app Logs tab** on each service — live pod logs for quick debugging, no query language required 2. **Grafana Loki** — long-term log aggregation with LogQL querying, shipped as part of the observability bundle Use the in-app viewer for "what is my service doing right now?" and Grafana Loki for "show me every error in the last week correlated with deployments". They complement each other. ## In-app Logs tab Every service has a **Logs** tab that streams logs directly from the running pods in a selected environment. No setup required — it works as soon as the service has a connected cluster. ### What you can do * **Pick an environment** — switch between dev, staging, prod, or any custom environment to see logs from the pods running there * **Pick a pod and container** — services with multiple containers or replicas show a picker so you can focus on one specific instance * **Search** — filter log lines by text content * **Download** — save the current log buffer to a file * **Auto-scroll** — follow new log lines as they arrive, or pause to read history * **Line wrapping** — toggle word-wrap for long lines ### Previous container logs When a container crashes and restarts, its logs before the restart are gone from the live stream — but they're often exactly what you need to debug the crash. Toggle **Previous container logs** to fetch the logs from the last terminated container instance. This works for any container that has restarted at least once. Previous container logs require a recent version of the Skyhook cluster agent (the **connector**). If the toggle is disabled or grayed out, upgrade the connector chart on the target cluster — the Cluster detail page will show the current version. ### Color output Log lines with ANSI color codes (bold, dim, italic, 16 colors, 256 colors, true color) render with their colors preserved. If your application logs errors in red and warnings in yellow, the viewer shows them the same way you'd see them in a local terminal. ### Same viewer, different contexts The same in-app log viewer is used for: * **Service Logs tab** — pod logs in the currently-deployed environment * **Deployment detail page** — runtime logs linked from a specific deployment (see [Deploying Services](/application/services/deploy#build-deploy-and-runtime-logs)) * **Resource drawer** — logs for a specific pod when you click into it from the [Cluster Resources browser](/infrastructure/clusters/resource-viewer) All three share the same search, download, previous-container, and color features. ## Grafana Loki For long-term log storage, cross-service correlation, and LogQL querying, the observability bundle includes Grafana Loki. Loki is a horizontally-scalable log aggregation system inspired by Prometheus but designed specifically for logs. Instead of indexing log content (which is expensive), Loki indexes only metadata labels, making it cost-effective to store and query large volumes of logs. ### Key Features **Cost-Effective Storage**: * Indexes metadata labels, not log content * Significantly reduces storage and indexing costs compared to traditional log systems * Compresses log data efficiently **Label-Based Querying**: * Uses the same label-based approach as Prometheus * Fast queries using metadata indexes * No need for expensive full-text indexes **Native Kubernetes Integration**: * Automatically discovers pods and services * Extracts Kubernetes metadata as labels (namespace, pod, container) * Works with standard stdout/stderr container logs **Grafana Integration**: * Explore logs directly in Grafana dashboards * Correlate logs with metrics and traces * LogQL query language similar to PromQL ### How Loki Works ``` Container Logs (stdout/stderr) │ └─> Promtail/OTel Collector ──────> Grafana Loki (collects logs) (stores logs) │ └──> Grafana (visualizes logs) ``` **Log Collection**: 1. Containers write logs to stdout/stderr 2. Kubernetes stores logs on nodes 3. Promtail or OpenTelemetry Collector reads log files 4. Labels are extracted (namespace, pod, container, etc.) 5. Logs are sent to Loki for storage **Log Querying**: 1. User queries logs in Grafana using LogQL 2. Loki uses label indexes to find relevant log streams 3. Loki filters and returns matching log lines 4. Grafana displays results ## LogQL Query Language LogQL (Log Query Language) is used to query logs in Loki. It's similar to PromQL but designed for log data. ### Basic Queries **Select logs by labels**: ```logql theme={"system"} {namespace="production"} {app="api-server", env="prod"} {namespace="production", pod=~"api-.*"} ``` **Filter log content**: ```logql theme={"system"} # Contains text {namespace="production"} |= "error" # Doesn't contain text {namespace="production"} != "debug" # Regex match {app="api"} |~ "error|ERROR|Error" # Case-insensitive match {app="api"} |~ "(?i)error" ``` ### Advanced Queries **Parse structured logs**: ```logql theme={"system"} # JSON logs {app="api"} | json | status_code >= 400 # Logfmt (key=value format) {app="api"} | logfmt | level="error" # Pattern matching {app="api"} | pattern ` ` ``` **Aggregations**: ```logql theme={"system"} # Count logs count_over_time({namespace="production"}[5m]) # Rate of logs rate({app="api"} |= "error" [5m]) # Sum a parsed field sum by (status_code) ( rate({app="api"} | json | __error__="" [5m]) ) ``` **Multi-line queries**: ```logql theme={"system"} # Errors with high status codes sum by (pod) ( count_over_time( {namespace="production"} | json | status_code >= 500 [5m] ) ) ``` ## Configuration Loki is configured through the Observability Bundle's GitOps workflow. ### Basic Configuration ```yaml theme={"system"} enabled: true valuesObject: # Storage backend storage: bucketNames: chunks: loki-chunks ruler: loki-ruler type: s3 s3: endpoint: s3.amazonaws.com region: us-east-1 # Retention period limits_config: retention_period: 30d # Ingestion rate limits ingester: chunk_idle_period: 1h max_chunk_age: 2h ``` ### Multi-Tenancy For multi-cluster deployments, configure tenants to separate logs: ```yaml theme={"system"} valuesObject: auth_enabled: true distributor: ring: kvstore: store: memberlist ``` Then send logs with an `X-Scope-OrgID` header identifying the cluster/tenant. For detailed configuration options, see the [Loki Helm chart documentation](https://artifacthub.io/packages/helm/grafana/loki). ## Viewing Logs in Grafana ### Accessing Logs 1. Navigate to Grafana (access URL configured during Observability Bundle setup) 2. Go to **Explore** in the left sidebar 3. Select **Loki** as the data source 4. Use the query builder or write LogQL queries ### Common Use Cases **View recent logs for a pod**: 1. Select labels: `namespace=production`, `pod=api-server-xyz` 2. Add time range (e.g., last 15 minutes) 3. Optionally filter by keyword (e.g., "error") **Search for errors across all services**: ```logql theme={"system"} {namespace="production"} |= "error" |= "ERROR" |= "Error" ``` **View logs around a specific time**: 1. Use time picker to select date/time 2. Adjust time range to ±5 minutes around the event 3. Filter by relevant labels ### Live Tail Grafana supports live tailing of logs (similar to `kubectl logs -f`): 1. In Explore view, click the **Live** button 2. Logs will stream in real-time as they're collected 3. Use filters to narrow down which logs to tail ## Log Collection The Observability Bundle supports multiple log collection methods: ### OpenTelemetry Collector (Recommended) The OTel Collector can collect logs and forward them to Loki: ```yaml theme={"system"} # OTel Collector configuration receivers: filelog: include: - /var/log/pods/*/*/*.log operators: - type: json_parser timestamp: parse_from: attributes.time layout: '%Y-%m-%dT%H:%M:%S.%LZ' exporters: loki: endpoint: http://loki-gateway/loki/api/v1/push ``` Benefits: * Single agent for metrics, traces, and logs * Unified configuration and management * Consistent labeling across telemetry types ### Promtail (Loki Native) Promtail is Loki's purpose-built log collector: ```yaml theme={"system"} enabled: true valuesObject: config: clients: - url: http://loki-gateway/loki/api/v1/push positions: filename: /tmp/positions.yaml scrape_configs: - job_name: kubernetes-pods kubernetes_sd_configs: - role: pod ``` Benefits: * Optimized for Loki * Lower resource usage * Native Kubernetes integration ## Structuring Logs for Observability ### Log Levels Use consistent log levels across applications: * **DEBUG**: Detailed information for diagnosing issues * **INFO**: General informational messages * **WARN**: Warning messages for potentially harmful situations * **ERROR**: Error messages for failure scenarios * **FATAL**: Critical errors that cause application shutdown ### Structured Logging Use structured logging (JSON) rather than plain text: **Good - JSON structured logs**: ```json theme={"system"} { "level": "error", "timestamp": "2025-01-16T10:30:00Z", "message": "Database connection failed", "error": "connection timeout", "service": "api-server", "trace_id": "abc123" } ``` **Bad - Unstructured text**: ``` [ERROR] 2025-01-16 10:30:00 - Database connection failed: connection timeout ``` Structured logs enable: * Filtering by fields (`| json | level="error"`) * Aggregations (`sum by (status_code)`) * Correlation with traces (`trace_id`) ### Include Context Add context to log messages: * User ID, request ID, trace ID * Operation being performed * Input parameters (sanitized) * Error codes or types ## Correlating Logs with Traces When using distributed tracing, include trace IDs in logs for correlation: ```javascript theme={"system"} // Application code logger.info("Processing request", { trace_id: span.context().traceId, user_id: request.userId, operation: "create_order" }); ``` In Grafana: 1. View a trace in Tempo 2. Click "Logs for this trace" 3. Grafana automatically queries Loki for logs with matching trace ID 4. See all logs related to that specific request ## Troubleshooting **Check log collection agent**: ```bash theme={"system"} # If using Promtail kubectl logs -n observability -l app=promtail # If using OTel Collector kubectl logs -n observability -l app=opentelemetry-collector ``` **Verify Loki is running**: ```bash theme={"system"} kubectl get pods -n observability | grep loki ``` **Check Loki ingester logs**: ```bash theme={"system"} kubectl logs -n observability -l app=loki -c ingester ``` **Common issues**: * Network connectivity between collector and Loki * Loki ingestion rate limits hit * Incorrect labels causing streams to be dropped Loki memory usage scales with: * Number of active streams (unique label combinations) * Ingestion rate (logs per second) * Query load **Solutions**: * Reduce label cardinality (avoid high-cardinality labels like request IDs) * Decrease retention period * Increase chunk idle period to batch more data before flushing * Add more Loki ingesters for horizontal scaling **Check stream cardinality**: ```bash theme={"system"} # Access Loki metrics kubectl port-forward -n observability svc/loki-gateway 3100:80 curl http://localhost:3100/metrics | grep loki_ingester_streams ``` **Optimize queries**: * Use specific labels to narrow search space * Avoid querying very long time ranges * Use aggregations instead of returning raw logs when possible **Good query**: ```logql theme={"system"} {namespace="production", app="api"} |= "error" [1h] ``` **Bad query** (too broad): ```logql theme={"system"} {namespace="production"} [24h] # Searches all apps for 24 hours ``` **Check query performance**: * Grafana shows query execution time * Loki query stats show chunks scanned **Solutions**: * Add more specific labels * Reduce time range * Use log aggregation rules for common queries **Check pod labels**: ```bash theme={"system"} kubectl get pods -n my-namespace --show-labels ``` **Verify log collector is scraping pod**: ```bash theme={"system"} # Check Promtail targets kubectl port-forward -n observability svc/promtail 3101:3101 curl http://localhost:3101/targets ``` **Common issues**: * Pod doesn't match log collector's label selectors * Pod is in a namespace not being monitored * Logs are being written to files instead of stdout/stderr ## Best Practices Always use JSON or structured log formats. This enables filtering, parsing, and aggregation in LogQL queries. Keep the number of unique label combinations low. Avoid labels with values like request IDs, timestamps, or user IDs. Add trace IDs to logs for correlation with distributed traces. This enables powerful debugging workflows. Balance storage costs with retention needs. Typical: 7-30 days for logs, longer for critical systems. ## Next Steps * [View Metrics](/observability/metrics) - Learn about metrics collection with Prometheus and Mimir * [Configure Tracing](/observability/tracing) - Set up distributed tracing with Tempo * [Observability Overview](/observability/overview) - Return to bundle overview # Metrics Source: https://docs.skyhook.io/observability/metrics Prometheus, Mimir, and metrics collection for Kubernetes monitoring ## Overview Metrics provide numerical measurements of your system's performance over time. The Observability Bundle includes four components that work together to collect, store, and visualize metrics from your Kubernetes clusters: * **Prometheus**: Collects and stores short-term metrics * **Grafana Mimir**: Long-term metrics storage and querying * **Kube State Metrics**: Exposes Kubernetes object state as metrics * **Prometheus Node Exporter**: Exposes node hardware and OS metrics ## Prometheus Prometheus is the industry-standard monitoring system and time-series database for cloud-native environments. It automatically discovers services in Kubernetes and scrapes metrics from them. ### What Prometheus Monitors **Application Metrics**: * Request rates, latencies, error rates (RED metrics) * Custom business metrics from your applications * Metrics from `/metrics` endpoints **Kubernetes Metrics**: * Pod CPU and memory usage * Container resource consumption * Service endpoint availability **Integration**: * Scrapes metrics every 15-30 seconds (configurable) * Stores data locally for 15-30 days (typical configuration) * Remote writes to Mimir for long-term retention ### PromQL Basics Prometheus uses PromQL (Prometheus Query Language) for querying metrics. **Example queries**: ```promql theme={"system"} # CPU usage by pod sum(rate(container_cpu_usage_seconds_total[5m])) by (pod) # Memory usage by namespace sum(container_memory_usage_bytes) by (namespace) # Request rate for a service rate(http_requests_total{job="my-service"}[5m]) # 95th percentile response time histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m]) ) ``` ### Configuration Prometheus is configured via the Observability Bundle's GitOps workflow. Key configuration options: ```yaml theme={"system"} enabled: true valuesObject: # Scrape interval scrapeInterval: 30s # Retention period retention: 15d # Remote write to Mimir remoteWrite: - url: http://mimir-gateway/api/v1/push # Resource limits resources: limits: memory: 4Gi cpu: 2 ``` For detailed Helm chart values, see the [Prometheus chart documentation](https://artifacthub.io/packages/helm/prometheus-community/prometheus). ## Grafana Mimir Mimir provides long-term, scalable storage for Prometheus metrics. It's designed to handle billions of active time series across multiple tenants. ### Why Mimir? **Long-term Retention**: * Stores metrics for months or years * Prometheus typically keeps 15-30 days locally * Historical analysis and capacity planning **Horizontal Scalability**: * Scales to handle millions of samples per second * Distributed architecture handles large metric volumes * No single point of failure **Prometheus Compatible**: * Receives data via Prometheus remote write * Queries with PromQL * Drop-in replacement for long-term storage ### How It Works ``` Prometheus ──[remote write]──> Mimir ──[PromQL queries]──> Grafana │ │ └─────────────[PromQL queries for recent data]─────────────┘ ``` Grafana can query both Prometheus (recent data) and Mimir (historical data) simultaneously, providing seamless access to both real-time and long-term metrics. ### Configuration ```yaml theme={"system"} enabled: true valuesObject: # Storage backend (S3, GCS, Azure Blob) storage: backend: s3 s3: endpoint: s3.amazonaws.com bucket: my-mimir-metrics # Retention period limits: compactor_blocks_retention_period: 1y # Ingestion limits ingester: ring: replication_factor: 3 ``` For detailed configuration, see the [Mimir chart documentation](https://artifacthub.io/packages/helm/grafana/mimir-distributed). ## Kube State Metrics Kube State Metrics generates metrics about the state of Kubernetes objects. Unlike metrics from the Kubernetes API server, kube-state-metrics focuses on the state of the objects (e.g., deployments, pods, nodes) rather than their resource consumption. ### What It Exposes **Deployment Metrics**: * `kube_deployment_status_replicas`: Number of desired replicas * `kube_deployment_status_replicas_available`: Number of available replicas * `kube_deployment_status_replicas_unavailable`: Number of unavailable replicas **Pod Metrics**: * `kube_pod_status_phase`: Pod phase (Pending, Running, Succeeded, Failed) * `kube_pod_status_ready`: Whether pod is ready * `kube_pod_container_status_restarts_total`: Container restart count **Node Metrics**: * `kube_node_status_condition`: Node conditions (Ready, MemoryPressure, DiskPressure) * `kube_node_status_allocatable`: Allocatable resources per node * `kube_node_status_capacity`: Total capacity per node ### Use Cases **Cluster Health Monitoring**: ```promql theme={"system"} # Pods not in Running state count(kube_pod_status_phase{phase!="Running"}) # Nodes with conditions other than Ready sum(kube_node_status_condition{condition!="Ready",status="true"}) ``` **Capacity Planning**: ```promql theme={"system"} # Available CPU capacity across cluster sum(kube_node_status_allocatable{resource="cpu"}) # Pod resource requests vs node capacity sum(kube_pod_container_resource_requests{resource="memory"}) / sum(kube_node_status_capacity{resource="memory"}) ``` **Deployment Monitoring**: ```promql theme={"system"} # Deployments with unavailable replicas kube_deployment_status_replicas_unavailable > 0 # Deployments not at desired replica count kube_deployment_status_replicas != kube_deployment_spec_replicas ``` ### Configuration Kube State Metrics typically requires minimal configuration: ```yaml theme={"system"} enabled: true valuesObject: # Resource limits resources: limits: memory: 256Mi cpu: 100m # Which resources to monitor (default: all) collectors: - deployments - pods - nodes - services - configmaps ``` For more details, see the [Kube State Metrics chart](https://artifacthub.io/packages/helm/prometheus-community/kube-state-metrics). ## Prometheus Node Exporter The Node Exporter exposes hardware and OS metrics from Kubernetes nodes. It runs as a DaemonSet (one pod per node) to collect node-level performance data. ### What It Exposes **CPU Metrics**: * `node_cpu_seconds_total`: CPU time spent in different modes (user, system, idle) * Used to calculate CPU usage percentages **Memory Metrics**: * `node_memory_MemTotal_bytes`: Total memory * `node_memory_MemAvailable_bytes`: Available memory * `node_memory_Cached_bytes`: Cached memory **Disk Metrics**: * `node_filesystem_size_bytes`: Filesystem size * `node_filesystem_avail_bytes`: Available space * `node_disk_io_time_seconds_total`: Disk I/O time **Network Metrics**: * `node_network_receive_bytes_total`: Bytes received * `node_network_transmit_bytes_total`: Bytes transmitted * `node_network_receive_errors_total`: Receive errors ### Use Cases **Node Resource Monitoring**: ```promql theme={"system"} # CPU usage by node 100 - (avg by(instance) (irate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) # Memory usage by node 100 * (1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) # Disk usage by mount point 100 - ((node_filesystem_avail_bytes / node_filesystem_size_bytes) * 100) ``` **Network Monitoring**: ```promql theme={"system"} # Network traffic by node rate(node_network_receive_bytes_total[5m]) # Network errors rate(node_network_receive_errors_total[5m]) > 0 ``` **Disk I/O**: ```promql theme={"system"} # Disk I/O operations rate(node_disk_io_time_seconds_total[5m]) ``` ### Configuration Node Exporter runs as a DaemonSet with host network and pid namespace access: ```yaml theme={"system"} enabled: true valuesObject: # Host network access for accurate metrics hostNetwork: true hostPID: true # Resource limits resources: limits: memory: 128Mi cpu: 100m ``` For more configuration options, see the [Node Exporter chart](https://artifacthub.io/packages/helm/prometheus-community/prometheus-node-exporter). ## Visualizing Metrics in Grafana Once metrics are being collected, Grafana provides powerful visualization capabilities. ### Pre-built Dashboards The Observability Bundle includes dashboards for common monitoring needs: * **Kubernetes Cluster Monitoring**: Overview of cluster health and resource usage * **Node Metrics**: Detailed node performance (from Node Exporter) * **Pod Metrics**: CPU, memory, network by pod * **Deployment Status**: Replica counts, pod states ### Creating Custom Dashboards 1. Navigate to Grafana (access via ingress URL configured during setup) 2. Click **Dashboards** → **New Dashboard** 3. Add a panel and select **Prometheus** or **Mimir** as data source 4. Write PromQL queries to visualize your metrics **Example panel configuration**: * **Panel Title**: "API Request Rate" * **Data Source**: Prometheus * **Query**: `rate(http_requests_total{job="api-service"}[5m])` * **Visualization**: Time series graph ### Alerting Grafana can alert based on metric thresholds: 1. Create an alert rule in a dashboard panel 2. Define alert conditions (e.g., CPU > 80% for 5 minutes) 3. Configure notification channels (email, Slack, PagerDuty) ## Accessing Grafana To access Grafana and view your metrics: 1. Get the Grafana URL from your Observability Bundle configuration (configured during setup) 2. Log in with the credentials you configured: * **Username**: admin (default) * **Password**: Set during bundle configuration If you need to retrieve the password: ```bash theme={"system"} kubectl get secret grafana -o jsonpath="{.data.admin-password}" -n observability | base64 --decode ``` For security, change the default admin password and create additional user accounts as needed through the Grafana UI. ## Troubleshooting **Check Prometheus targets**: 1. Access Prometheus UI (typically at `http://prometheus:9090`) 2. Go to **Status** → **Targets** 3. Look for targets in "down" state **Common issues**: * Network policies blocking Prometheus * Service selector not matching pods * Pods don't expose `/metrics` endpoint **Verify metrics endpoint**: ```bash theme={"system"} kubectl port-forward pod/my-app-pod 8080:8080 curl http://localhost:8080/metrics ``` Prometheus memory usage scales with: * Number of time series (unique label combinations) * Scrape interval (more frequent = more data) * Retention period (longer = more data stored) **Solutions**: * Reduce retention period (keep 7-15 days, use Mimir for long-term) * Increase scrape interval (30s → 60s) * Drop unnecessary metrics using relabeling * Add more memory to Prometheus pods **Check cardinality**: ```bash theme={"system"} # Access Prometheus UI # Go to Status → TSDB Status # Look for series with high cardinality ``` **Check Prometheus logs**: ```bash theme={"system"} kubectl logs -n observability prometheus-server-0 | grep "remote write" ``` **Common issues**: * Mimir gateway not accessible (network/DNS issues) * Authentication failure (check credentials) * Rate limiting (ingestion rate too high) **Verify Mimir is running**: ```bash theme={"system"} kubectl get pods -n observability | grep mimir ``` **Verify kube-state-metrics is running**: ```bash theme={"system"} kubectl get pods -n observability | grep kube-state-metrics ``` **Verify node-exporter is running on all nodes**: ```bash theme={"system"} kubectl get pods -n observability -l app=prometheus-node-exporter -o wide # Should show one pod per node ``` **Check Prometheus is scraping these exporters**: * Access Prometheus UI → Status → Targets * Look for `kube-state-metrics` and `node-exporter` targets ## Best Practices Follow Prometheus naming conventions: * Use base unit (seconds, not milliseconds) * Append `_total` for counters * Append `_bucket` for histograms * Example: `http_request_duration_seconds` Keep cardinality low: * Avoid high-cardinality labels (user IDs, timestamps) * Use service name, environment, region as labels * Don't create unique label values for every request Balance cost and utility: * Prometheus: 7-15 days (recent, high-resolution) * Mimir: months to years (long-term, downsampled) * Adjust based on storage costs and query patterns Right-size resource allocations: * Prometheus memory scales with active series * Monitor and adjust based on actual usage * Use horizontal scaling for very large deployments ## Next Steps * [View Logs](/observability/logs) - Learn about log aggregation with Loki * [Configure Tracing](/observability/tracing) - Set up distributed tracing * [Observability Overview](/observability/overview) - Return to bundle overview # Observability Bundle Source: https://docs.skyhook.io/observability/overview Complete observability stack with metrics, logs, and traces for Kubernetes clusters ## What is the Observability Bundle? The Observability Bundle is a curated collection of industry-standard tools that provide comprehensive monitoring, logging, and tracing for your Kubernetes clusters. Skyhook manages the installation and configuration of these tools through GitOps workflows, giving you a complete observability solution with minimal setup effort. Observability Bundle status showing installed components The bundle implements the three pillars of observability: * **Metrics**: Numerical measurements of system performance over time (CPU usage, request rates, error rates) * **Logs**: Text records of discrete events that occurred in your system * **Traces**: Records of requests as they flow through distributed services ## Bundle Components The Observability Bundle includes 9 integrated components that work together to provide complete visibility into your Kubernetes infrastructure and applications. ### Visualization and Dashboards Central dashboard for visualizing metrics, logs, and traces. Grafana connects to all other components in the bundle to provide unified observability dashboards. * Multi-datasource support (Prometheus, Loki, Tempo, Mimir) * Pre-built dashboards for Kubernetes monitoring * Custom dashboard creation * Alerting and notifications ### Distributed Tracing High-volume distributed tracing backend for storing and querying traces from your applications. * Cost-effective trace storage (object storage backend) * Integrates with Grafana for trace visualization * Compatible with OpenTelemetry, Jaeger, and Zipkin * Search traces by service, duration, tags Vendor-neutral telemetry collection agent that receives, processes, and exports traces, metrics, and logs. * Deployment mode: Collector (aggregation) * Receives telemetry from applications * Routes data to Tempo, Loki, and other backends * Protocol support: OTLP, Jaeger, Zipkin Node-level OpenTelemetry collector running as a DaemonSet (one pod per node). * Deployment mode: DaemonSet (per-node) * Collects node and pod-level telemetry * Lower network overhead for local collection * Forwards to central collector or backends ### Log Aggregation Log aggregation system designed for efficiency and ease of use, inspired by Prometheus. * Cost-effective log storage (indexes metadata, not content) * LogQL query language (similar to PromQL) * Integrates seamlessly with Grafana * Label-based log filtering and search ### Metrics Collection and Storage Industry-standard metrics collection and time-series database for Kubernetes. * Automatic service discovery in Kubernetes * PromQL query language * Pull-based metrics collection * Short-term metrics storage (15-30 days typical) Long-term metrics storage backend compatible with Prometheus. * Horizontally scalable metrics storage * Long-term retention (months to years) * Prometheus remote write compatible * Multi-tenancy support Generates metrics about Kubernetes object states (deployments, pods, nodes, etc.). * Cluster-level resource metrics * Object state and health information * Deployment status, pod status, node conditions * Scraped by Prometheus Exports hardware and OS-level metrics from Kubernetes nodes. * CPU, memory, disk, network metrics * Runs as DaemonSet (one per node) * System-level performance data * Node health monitoring ## How Components Work Together The observability bundle components integrate to provide end-to-end visibility: ``` Application ├─> OpenTelemetry SDK (instrumented code) │ ├─> Traces ────────────> OTel Collector ────────> Grafana Tempo │ ├─> Logs ──────────────> OTel Collector ────────> Grafana Loki │ └─> Metrics ───────────> OTel Collector ────────> Prometheus/Mimir │ Kubernetes Cluster ├─> Prometheus ──────────────> Scrapes metrics from: │ ├─> Kube State Metrics (cluster objects) │ ├─> Node Exporter (node resources) │ └─> Application /metrics endpoints │ └─> Remote Write ────────> Grafana Mimir (long-term storage) │ └─> Grafana ─────────────────> Visualizes data from: ├─> Prometheus (real-time metrics) ├─> Mimir (historical metrics) ├─> Loki (logs) └─> Tempo (traces) ``` ## Installation The Observability Bundle is installed and managed through Skyhook's GitOps integration using ArgoCD. ### Prerequisites * ArgoCD installed and configured (see [GitOps Setup](/infrastructure/gitops/overview)) * At least one Kubernetes cluster connected to Skyhook * Management cluster identified (where observability backends will run) ### Installing the Bundle 1. Navigate to **Addons** in the Skyhook dashboard 2. Click on **Observability Bundle** 3. Click **Configure** to set up the bundle Addons page showing Observability Bundle The configuration wizard guides you through: * Selecting management and workload clusters * Configuring storage settings * Setting up ingress for Grafana and OpenTelemetry * Managing secrets (Grafana credentials, authentication tokens) ### Architecture Patterns **Management Cluster**: Runs the observability backends * Grafana (visualization) * Tempo (trace storage) * Loki (log storage) * Mimir (metrics storage) * Prometheus (metrics collection) **Workload Clusters**: Run data collection agents * OpenTelemetry Collector (send traces/logs to management cluster) * Prometheus (scrape local metrics, remote write to management cluster) * Kube State Metrics (expose cluster metrics) * Node Exporter (expose node metrics) This centralized architecture allows you to monitor all your clusters from a single Grafana instance. ## Component Documentation For detailed setup and usage of individual components: * [Metrics](/observability/metrics) - Prometheus, Mimir, Kube State Metrics, Node Exporter * [Logs](/observability/logs) - Grafana Loki log aggregation * [Tracing](/observability/tracing) - Grafana Tempo and OpenTelemetry distributed tracing ## Benefits Single pane of glass for metrics, logs, and traces across all your clusters Infrastructure as code with version control, audit trails, and easy rollbacks Best-of-breed open source tools used by thousands of organizations Efficient storage and retention strategies minimize infrastructure costs Monitor all your Kubernetes clusters from a centralized observability stack OpenTelemetry-based collection works with any instrumented application ## Next Steps Set up GitOps and install the Observability Bundle Set up Prometheus and Mimir for metrics collection Configure Loki for centralized log management Implement tracing with Tempo and OpenTelemetry # Tracing Source: https://docs.skyhook.io/observability/tracing Distributed tracing with Grafana Tempo and OpenTelemetry ## Overview Distributed tracing tracks requests as they flow through multiple services in your microservices architecture. The Observability Bundle includes Grafana Tempo and OpenTelemetry Collector to provide comprehensive tracing capabilities. This guide covers distributed tracing with Tempo and OpenTelemetry. For the complete observability solution including metrics and logs, see the [Observability Bundle Overview](/observability/overview). In today's complex, distributed systems, understanding the journey of requests through various services is essential for troubleshooting, performance tuning, and security auditing. Tracing provides visibility into the system's behavior, offering insights that are critical for maintaining and improving application performance and reliability. ## Benefits of Tracing * **Enhanced Visibility:** Tracing illuminates the path of requests across service boundaries, helping identify bottlenecks and inefficiencies in microservices architectures. * **Improved Debugging:** By providing a granular view of requests, tracing simplifies debugging, allowing developers to pinpoint the source of errors and latency issues. * **Performance Optimization:** Tracing data helps in identifying slow operations and performance anomalies, guiding optimization efforts for better resource utilization and response times. * **Security and Compliance:** Tracing can be used to monitor and audit access to sensitive data, ensuring compliance with security policies and regulations. ## Advantages of the Skyhook Tracing Architecture Our setup includes ArgoCD, Grafana, Grafana Tempo, and an OpenTelemetry Collector. Each tool offers unique benefits for a comprehensive tracing and observability solution: * **ArgoCD for GitOps:** Manages clusters and applications through GitOps, ensuring Kubernetes clusters' state matches Git configurations for automated deployments. * **Grafana:** Offers data visualization in dashboards with customizable views, alerting, and community plugins for enhanced functionality. * **Grafana Tempo:** Provides high-volume trace storage with cost-effective scalability and simplified troubleshooting by integrating with Grafana. * **Otel Collector:** Collects and exports telemetry data in a vendor-agnostic manner, offering flexible data handling and resource efficiency. This combination enhances system observability and leverages each component's strengths for improved reliability, performance, and security. # Installation Guide This guide outlines the prerequisites and steps required to set up our recommended tracing tools on your platform, utilizing ArgoCD and several open-source addons including Grafana, Grafana Tempo, and the Otel Collector. ## Prerequisites Ensure you have ArgoCD installed on your cluster. If not, please refer to the [GitOps section](https://app.skyhook.io/settings/gitops) which will guide you through the installation. ## Grafana Tempo Addon Installation The recommended practice is to run Grafana from a management cluster that displays data from all other workload clusters. ### Configuration for the Management Cluster 1. Select the Grafana Tempo addon from the [GitOps section](https://app.skyhook.io/settings/gitops). 2. Enable the addon specifically for the management cluster. 3. Input the following custom YAML configuration to set up the primary management cluster instance: ```yaml theme={"system"} enabled: true version: 1.0.1 addonParameters: standardBackend: true createSecrets: true mirrorSecretsToAllClusters: true valuesObject: secretName: tempo-auth ingress: enabled: true host: {tempo.example.com} ``` Ensure to modify the relevant host value in the ingress section. ### Configuration for all other workload clusters 1. Enable the Grafana Tempo addon for each cluster intended to act as a client. 2. Use a simplified YAML configuration for the workload clusters: ```yaml theme={"system"} enabled: true version: 0.1.0 addonParameters: standardClient: true valuesObject: secretName: tempo-auth ingress: enabled: true host: {tempo.example.com} ``` Ensure to modify the host value in the ingress section to point to the primary grafana installation. ## Grafana Addon 1. Choose the Grafana addon in the [GitOps section](https://app.skyhook.io/settings/gitops). 2. Locate the management cluster row and use the ticket on the left to enable the addon for it. 3. Edit the custom values YAML and add the following configuration: ```yaml theme={"system"} enabled: true version: 0.1.0 addonParameters: ingressHost: {grafana.example.com} ``` The Grafana addon is not required on the client clusters, but only on the management cluster. ## OtelCollector Addon This addon needs to be installed on all clusters. 1. Choose the OtelCollector addon in the [GitOps section](https://app.skyhook.io/settings/gitops). 2. Use the tickers on the left to enable the addon for all clusters. 3. Edit the custom values YAML and add the following configuration for each of the workload clusters: ```yaml theme={"system"} enabled: true version: 0.1.0 addonParameters: tempo: enabled: true insecureHost: false hostAndPort: {tempo.example.com} basicAuth: enabled: true secretName: tempo ``` 4. Edit the custom values YAML and add the following configuration for the management cluster: ```yaml theme={"system"} enabled: true version: 0.1.0 addonParameters: tempo: enabled: true insecureHost: true hostAndPort: {tempo.example.com}:4317 basicAuth: enabled: false ``` The hostAndPort field for the management cluster should be directed to port 4317. Note that it may take 5-15 minutes for the installation of all addons to complete. ## Accessing Grafana To log in to Grafana, use the host name that was defined in the "Grafana Tempo" addon: * **Username:** admin * **Password Retrieval:** ```shell theme={"system"} kubectl get secret grafana -o jsonpath="{.data.admin-password}" -n observability | base64 --decode ; echo ``` **Important**: For security reasons, it's strongly recommended to change the default admin password and create additional user accounts as needed through the Grafana UI. ## OpenTelemetry Code Instrumentation OpenTelemetry provides a set of APIs, libraries, agents, and instrumentation tools to capture distributed traces and metrics from your application. It supports various programming languages, allowing developers to collect and export telemetry data (like traces and metrics) to analysis tools in a standardized way. OpenTelemetry supports instrumentation for many popular programming languages, see the full list and the required steps to add support for you code here: [https://opentelemetry.io/docs/languages/](https://opentelemetry.io/docs/languages/) # Code & Repositories Source: https://docs.skyhook.io/settings/code-repositories Configure repository settings, code preferences, and service templates for new services Configure default code and repository settings that apply to new services. Existing services maintain their current configuration. Access this page from **Settings > Code & Repositories** in the sidebar. ## Repository Settings Central deployment repository configuration ### Use Central Deployment Repository Select a default repository for service deployment files (Kubernetes manifests, Helm charts, etc.). Individual services can override this setting. * **When to use**: Centralize deployment configuration across multiple services in a single repository * **Override**: Services can specify their own deployment repository if needed * **Example**: `KoalaOps/helm-charts` stores all service Helm charts in one place This is particularly useful for monorepo setups or when following GitOps practices with a dedicated infrastructure repository. ## Code Preferences Code preferences including branch settings, environment files, and naming conventions Settings that control code generation and naming conventions for new services. ### Branch Settings **Default Repo Branch** The default branch name for new repositories (`main`, `master`, etc.). This does not affect existing repositories. * **Default**: `main` * **When to use**: Set to `master` if your organization uses legacy naming conventions ### Environment Files Configure the default names for environment-related files in new services. **Container Environment File** The name of the environment file in overlay folders. * **Recommended**: `container.env` (modern standard) * **Legacy**: `.env` (for backward compatibility) * **Purpose**: Stores environment variables for containers in Kustomize overlays **Environment Config File** The name of the environment configuration file used for Kustomize replacements. * **Purpose**: Defines environment-specific values for Kustomize variable substitution Changing these settings only affects new services. Existing services keep their current file names to avoid breaking existing deployments. ### Kubernetes Resource Naming Control how Kubernetes resources are named across your organization. **Enable Environment Name Prefix** Prefix Kubernetes resource names with the environment name. * **Example**: `dev-my-service`, `prod-my-service` * **Trade-off**: Longer names but explicit environment identification * **Recommendation**: Use Kubernetes namespaces instead of prefixes for environment separation **Enable Object Type Suffix** Append resource type to Kubernetes object names. * **Example**: `my-service-deployment`, `my-service-service` * **Trade-off**: More explicit but more verbose * **Recommendation**: Rely on Kubernetes object Kinds rather than adding suffixes In most cases, we recommend shorter and simpler names, relying on Kubernetes namespaces and object Kinds to differentiate environments and types. ### Preview Environment Settings Configure default settings for preview environments in new services. **Add Preview Environment Blueprint** Automatically create a blueprint configuration for preview environments when creating new services. * **When enabled**: New services include preview environment setup out of the box * **When to use**: If your team regularly uses preview environments for PR testing **Default Cluster** The default cluster for preview environments. * **Purpose**: Some resources like sealed secrets are cluster-specific * **Recommendation**: Select a non-production cluster for preview workloads **Default Ingress Domain** The default domain for preview environment ingress resources. * **Leave empty**: Use the default Skyhook-provided domain * **Custom domain**: Specify your own domain for preview environments (e.g., `preview.example.com`) ## Service Templates Service templates table showing custom templates for creating new services Custom templates that can be used when creating new services. * **Repository**: Where the template code is stored * **Path**: Directory path within the repository * **Usage**: Select template when creating a new service **Managing templates**: * **Add Template**: Point to a repository and path containing your service template * **Delete**: Remove templates that are no longer needed ## Important Notes **Code preferences only affect new services**. Changing settings like branch names, environment files, or resource naming will not update existing services. Existing services maintain their current configuration to avoid breaking changes. **Apply button**: Most sections have an "Apply" button that remains disabled until you make changes. Click "Apply" to save your configuration updates. # Notifications Source: https://docs.skyhook.io/settings/notifications Configure Slack notification rules and channels for deployment updates Configure which Slack channels receive notifications for deployments and service updates in each environment. Access this page from **Settings > Notifications** in the sidebar. ## Notification Rules Notification rules showing environment-based routing to Slack channels Route deployment notifications to different Slack channels based on environment. ### Environment-Based Routing Configure which channels receive notifications for specific environments: * `dev` environment → `#engineering` channel * `staging` environment → `#qa-team` channel * `prod` environment → `#alerts` channel * `All Environments` → `#general` channel ### How It Works 1. **Add an environment rule** specifying the environment name or "All Environments" 2. **Select Slack channels** to receive notifications for that environment 3. **Deployments trigger notifications** to the specified channels when they occur ### Managing Rules * **Edit**: Change the environment or channels for an existing rule * **Delete**: Remove a rule to stop sending notifications * **Add Environment Rule**: Create a new routing rule Use environment-specific channels to reduce noise. For example, send dev deployments to `#engineering`, but production deployments to `#alerts` for higher visibility. ## Notification Channels Slack integration showing connected channels and direct messages ### Slack Integration Connect Slack channels to receive notifications about deployments and service updates. **Connected channels show**: * **Channel name**: e.g., `#general`, `#alerts`, `@username` * **Channel ID**: e.g., `C04SCMG9CAD` (Slack's internal identifier) * **Channel types**: Public channels (`#channel-name`) or direct messages (`@username`) ### Adding Slack Channels 1. Click **Add Slack Channel** 2. Authorize Skyhook to access your Slack workspace (if not already connected) 3. Select the channel to connect 4. Use the channel in notification rules You can send notifications to both public channels (`#channel-name`) and direct messages (`@username`) for important alerts or individual updates. ### Managing Channels * **Delete**: Remove a channel from Skyhook (stops all notifications to that channel) * **Add Slack Channel**: Connect additional channels as needed Channels must be added to Slack Integration before they can be used in Notification Rules. ## Use Cases ### Development Team Notifications Route dev and staging deployments to your team's working channel: * Environment: `dev` * Channel: `#engineering` ### Production Alerts Send production deployments to a dedicated alerts channel with higher visibility: * Environment: `prod` * Channels: `#alerts`, `#on-call` ### Individual Notifications Send notifications to specific team members for their services: * Environment: `All Environments` * Channel: `@developer-name` ### Catch-All Notifications Ensure all deployments are logged in a central channel: * Environment: `All Environments` * Channel: `#deployments` Notification rules are processed in order. More specific rules (like individual environments) take precedence over general rules (like "All Environments"). ## Related Documentation * [Service Deployment](/application/services/deploy) - How deployments work * [Environments](/application/environments/overview) - Understanding environments * [CI/CD](/application/cicd/overview) - CI/CD pipeline configuration # Organization Settings Source: https://docs.skyhook.io/settings/overview Configure organization-wide settings for code, repositories, notifications, permissions, and infrastructure Organization Settings centralize configuration for your entire Skyhook organization. Access them through the Settings link in the left sidebar. ## Settings Areas Repository settings, code preferences, branch defaults, environment files, resource naming, preview environments, and service templates Configure Slack notification rules and channels for deployment updates across environments Control who can deploy to specific services and environments with allow/block rules ArgoCD installation status and GitOps repository configuration Configure the central cluster for GitOps operators and monitoring tool frontends GitHub CI/CD authentication, platform access, and GitOps workflow setup ## Quick Links * **Repository Settings**: [Configure central deployment repository](/settings/code-repositories#repository-settings) * **Code Preferences**: [Set default branch, environment files, and naming conventions](/settings/code-repositories#code-preferences) * **Service Templates**: [Create custom templates for new services](/settings/code-repositories#service-templates) * **Notification Rules**: [Route notifications by environment](/settings/notifications#notification-rules) * **Slack Integration**: [Connect Slack channels](/settings/notifications#slack-integration) * **Deployment Permissions**: [Restrict who can deploy](/settings/permissions) # Deployment Permissions Source: https://docs.skyhook.io/settings/permissions Control who can deploy to specific services and environments Configure who can deploy to specific services and environments using allow or block rules. Access this page from **Settings > Permissions** in the sidebar. ## Deployment Permissions Deployment permissions table showing access control rules by service and environment Control access to deployments using environment and service-specific rules. ### Default Behavior **Any environment without specific permissions allows everyone to deploy.** This means you only need to configure permissions where you want to restrict access. All other services and environments remain open to all team members. ### Access Types **Allow only** Grant deployment access to specific users only. * **Example**: `my-service` in `prod` can only be deployed by `max-gun-koala` * **Use case**: Restrict production deployments to approved team members * **Effect**: Only listed users can deploy; all others are blocked **Allow everyone except** Grant deployment access to all users except specific ones. * **Example**: `koala-backend` in `autopush` can be deployed by anyone except `github|39222286_different_user_id` * **Use case**: Block specific users while allowing the rest of the team * **Effect**: All users can deploy except those listed ### Permission Components Each permission rule includes: * **Service**: Which service the rule applies to (e.g., `koala-backend`, `my-test`) * **Environment**: Which environment the rule applies to (e.g., `dev`, `staging`, `prod`, `autopush`) * **Access Type**: Either "Allow only" or "Allow everyone except" * **Users**: GitHub usernames or user IDs * With avatar: `max-gun-koala` (GitHub username) * Without avatar: `github|39222286_different_user_id` (user ID) ### Managing Permissions * **Add Permission**: Create a new deployment permission rule * **Edit**: Modify an existing rule's access type or users * **Delete**: Remove a rule (environment reverts to "allow everyone") ## Common Scenarios ### Restrict Production Deployments Limit who can deploy to production: 1. Click **Add Permission** 2. Select service: `my-service` 3. Select environment: `prod` 4. Choose access type: **Allow only** 5. Add approved users: `senior-dev-1`, `senior-dev-2` Result: Only `senior-dev-1` and `senior-dev-2` can deploy to `my-service` in `prod`. ### Block Specific Users Prevent a user from deploying to a sensitive environment: 1. Click **Add Permission** 2. Select service: `payment-service` 3. Select environment: `prod` 4. Choose access type: **Allow everyone except** 5. Add blocked user: `intern-username` Result: All users except `intern-username` can deploy `payment-service` to `prod`. ### Temporary Access Restriction Block deployments during a freeze or incident: 1. Click **Add Permission** 2. Select service: `all-services` (or specific service) 3. Select environment: `prod` 4. Choose access type: **Allow only** 5. Add users: `on-call-engineer` Result: Only the on-call engineer can deploy during the freeze. ## Important Notes **Permissions are environment-specific**. A user blocked from deploying to `prod` can still deploy to `dev` unless explicitly restricted. **Service-level restrictions**. Permissions apply per service. If you want organization-wide restrictions, you must create rules for each service. **GitHub integration required**. Users are identified by their GitHub username or GitHub user ID. Ensure your team members have connected their GitHub accounts to Skyhook. ## Best Practices ### Start Permissive Don't over-restrict initially: * Leave most environments open (default behavior) * Only restrict production or sensitive environments * Add restrictions as needed based on team growth ### Use Allow-Only for Critical Environments For production or other critical environments: * Use "Allow only" with a list of trusted deployers * Keeps control explicit and visible * Easy to audit who has production access ### Use Except for Temporary Blocks When you need to temporarily restrict someone: * Use "Allow everyone except" to block specific users * Easier to remove the exception later * Doesn't require maintaining a full allow list ### Document Your Permissions Keep track of why permissions exist: * Add comments in your team's documentation * Explain the reasoning for production restrictions * Note temporary restrictions and when to remove them ## Related Documentation * [Team Management](/infrastructure/security/team-management) - Overall RBAC and team access * [Environments](/application/environments/overview) - Understanding environments * [Service Deployment](/application/services/deploy) - How deployments work * [CI/CD](/application/cicd/overview) - CI/CD pipeline permissions # Privacy Policy Source: https://docs.skyhook.io/terms/privacy-policy # Terms of Service Source: https://docs.skyhook.io/terms/terms-of-service