Skip to content

Setting up a Kubernetes Cluster in AWS

nthota edited this page Jun 3, 2021 · 2 revisions

Set up a Kubernetes cluster with AWS for running TIBCO BusinessEvents® application.

  • Download and install the following CLIs on your system:

  • Go to the EC2 Container Services dashboard and create a repository with the same name as the container image of TIBCO BusinessEvents application. Upload the BusinessEvents application image to the repository. For help you can use the View Push Commands button.

    Note: AWS Repository name must be the same as the container image of TIBCO BusinessEvents application.

    For more information on how to create a repository in Amazon AWS, refer to setup registry.

  1. Creating Cluster

  2. Create an Amazon Simple Storage Service (Amazon S3) storage to store the cluster configuration and state. You can use either AWS CLI or AWS console to create the storage.

    For more information about Amazon S3, see Amazon S3 Documentation.

    For example:

    aws s3 mb s3://be-bucket
    
  3. Create the Kubernetes cluster on AWS using the kops CLI.

    For more information, see the kops CLI documentation.

    For example:

    kops create cluster --zones us-west-2a --master-zones us-west-2a --master-size t2.large --node-size t2.large --name becluster.k8s.local --state s3://<s3-bucket-name> --yes
    

    Where,

    • s3-bucket-name is the name of the S3 storage created earlier.
    • becluster.k8s.local is the name of the cluster being created. Use k8s.local prefix to identify a gossip-based Kubernetes cluster and you can skip the DNS configuration.
  4. Validating Cluster

  5. Validate your cluster using the validate command.

    kops validate cluster
    

    Node and master must be in ready state. The kops utility stores the connection information at ~/.kops/config, and kubectl uses the connection information to connect to the cluster.

Next topic: Continue to Setup Registry

Clone this wiki locally