3.4 Kubernetes Deployment

In this section we will create the Kubernetes Deployment.

$KCHOME = /opt/connect.install/kc

Create Kubernetes Deployment

Navigate to $KCHOME/install

run the following command

installer.sh installk8s ../install.kubernetes/deployment/deployment-kubernetes.conf


This will create a deployment records in the database and files in $KCHOME/deploy/kubernetes

There are three subdirectories in $KCHOME/deploy/kubernetes

  • java

  • kc

In the POD, these directories are mounted at the following paths:

  • /opt/brickst/config

  • /opt/brickst/kc

  • /opt/brickst/java

Create the brickst namespace

kubectl create namespace brickst

If you are rebuilding an exisiting cluster you may want to delete the namespace

kubectl delete namespace brickst


In $KCHOME/install.kubernetes make sure you are logged into awscli with your aws account

run the following command

aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 0791xxxxxxxxxx.dkr.ecr.us-east-1.amazonaws.com

Create the brickst and brickstwar images

Make sure there is an AWS repository username to prefix the repository and images. Ensure the repository is named (in this case names user-brickst and user-brickstwar already exist and are accessible)

./updateAwsImages.sh (d,w,a) your aws repo account) (repo name for brickst image) (connect release version)”. (d=brickst, w=brickstwar all= both)
 
Example for brickst container
bash ./updateAwsImages.sh d 570993xxxxxxx.dkr.ecr.us-east-1.amazonaws.com user-brickst v11.0.0
 
Example for brickstwar container
bash ./updateAwsImages.sh w 570993xxxxxxx.dkr.ecr.us-east-1.amazonaws.com user-brickstwar v11.0.0


Edit if need $KCHOME/install.kubernetes/wildfly/wildfly.config