Onboard a new microservice to Harness for EKS deployment with Keycloak authentication
Onboards microservices to Harness for EKS deployment with Keycloak authentication and ECR repository setup.
/plugin marketplace add Lobbi-Docs/claude/plugin install lobbi-docs-aws-eks-helm-keycloak-plugins-aws-eks-helm-keycloak@Lobbi-Docs/claudeOnboard a new microservice to the EKS + Harness + Keycloak ecosystem with full automation.
/eks:service-onboard <service-name> [options]
service-name - Name of the service to onboard (required)--chart - Path to Helm chart (default: charts/<service-name>)--repo - Harness Code repository name (default: current repo)--keycloak-client - Create Keycloak client (default: true)--keycloak-realm - Keycloak realm (default: from config)--environments - Environments to configure (default: dev,staging,prod)--ecr-repo - ECR repository name (default: <service-name>)--create-ecr - Create ECR repository if not exists (default: true)--pipeline - Generate deployment pipeline (default: true)--dry-run - Show what would be created without executing/eks:service-onboard payment-service
Creates everything: Harness service, environments, pipeline, Keycloak client, ECR repo.
/eks:service-onboard batch-processor --keycloak-client=false
/eks:service-onboard api-gateway --chart=./infrastructure/helm/gateway
/eks:service-onboard user-service --dry-run
Service:
- Name: <service-name>
- Type: NativeHelm
- Manifests: From Harness Code repo
- Artifacts: ECR image
Environments:
- development (PreProduction)
- staging (PreProduction)
- production (Production)
Infrastructure:
- EKS connector per environment
- Namespace: <service-name>-<env>
Pipeline:
- Deploy pipeline with rolling strategy
- PR trigger for validation
- Push/tag triggers for deployment
ECR Repository:
- Name: <service-name>
- Lifecycle policy: Keep last 30 images
- Scan on push: Enabled
Secrets Manager:
- <service-name>/keycloak-client-secret (per env)
Client:
- Client ID: <service-name>-client
- Protocol: openid-connect
- Access Type: confidential
- Service accounts: Enabled
Roles (optional):
- <service-name>-admin
- <service-name>-user
values-<env>.yaml:
- ECR repository configured
- Keycloak client ID set
- Environment-specific overrides
This command activates the deployment-strategist agent for optimal configuration.
Validate Prerequisites
Create AWS Resources
Configure Keycloak
Create Harness Service
Create Harness Environments
Generate Pipeline
Update Helm Values
Verify Setup
✅ SERVICE ONBOARDING COMPLETE
Created:
- Harness Service: payment-service
- Harness Environments: dev, staging, prod
- ECR Repository: 123456789012.dkr.ecr.us-west-2.amazonaws.com/payment-service
- Keycloak Client: payment-service-client
- Pipeline: payment-service-deploy
- Triggers: PR validation, push to main
Files Updated:
- charts/payment-service/values-dev.yaml
- charts/payment-service/values-staging.yaml
- charts/payment-service/values-prod.yaml
- .harness/pipelines/payment-service-deploy.yaml
Next Steps:
1. Review generated pipeline
2. Push changes to trigger first deployment
3. Verify Keycloak integration in dev
If onboarding fails, the command provides rollback instructions:
# Remove created resources
/eks:service-onboard payment-service --rollback