Create EKS Clusters

Create Development (dev) EKS Cluster using EKS Blueprints

In order to create an EKS cluster, you just have to define a few parameters like Cluster name and select the components which you need to be enabled in the EKS cluster. You can also define the environment the EKS cluster will be part of (dev/qa/stg/prd)

Picture Not Found

# Execute the following commands

Run the following command to Login to the Omnideq portal
Syntax: chctl login --username <user_email_address> --secret <onmideq_login_password> --server <omnideq_portal_url>

Run the following command to create EKS cluster
Syntax: chctl eks create --awsVaultName <aws_vaultname_created_in_omnideq> --sshVaultName <ssh_vaultname_created_in_omnideq> --eksGitRepositoryUrl "<ssh_url_of_github_repository>” --blueprint <json_path_in_github>

Example: chctl eks create --awsVaultName aws-proserv --sshVaultName ssh-key-proserv --eksGitRepositoryUrl "git@github.com:Cloudhedge/eksblueprint-demo-dev.git" --blueprint dev-eks-blueprint.json

Create Staging/Production (stg/prd) EKS Cluster using EKS Blueprints


# Execute the following command

Run the following command to create EKS cluster
Syntax: chctl eks create --awsVaultName <aws_vaultname_created_in_omnideq> --sshVaultName <ssh_vaultname_created_in_omnideq> --eksGitRepositoryUrl <ssh_url_of_github_repository>” --blueprint <json_path_in_github>

Example: chctl eks create --awsVaultName aws-proserv --sshVaultName ssh-key-proserv --eksGitRepositoryUrl "git@github.com:Cloudhedge/eksblueprint-demo-stage.git" --blueprint stage-eks-blueprint.json

Accessing the EKS Clusters

# Execute the following command

AWS_PROFILE=your-aws-account aws eks --region us-west-2 update-kubeconfig --name od-eks-dev-01

# Execute the following command

kubectl -n argocd port-forward svc/argo-cd-argocd-server 8443:443 (Ensure there is no space at the end of 443 while running the command)

NOTE : User need to download kubeconfig file and get ArgoCD password seperately for dev and stg cluster respectively.

Accessing ArgoCD

# Execute the following command

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

# Execute the following command

kubectl -n argocd port-forward svc/argo-cd-argocd-server 8443:443 (Ensure there is no space at the end of 443 while running the command)


Launch your web browser and access ArgoCD using the URL https://localhost:8443

Picture

You will see that there are no applications which ArgoCD is managing currently