frmscoe / docs

This is the main directory for all project documentation files.
Apache License 2.0
23 stars 3 forks source link

Tazama Infrastructure #31

Open scott45 opened 2 months ago

scott45 commented 2 months ago

Identify any issues, errors and opportunities for improvement in the installation guide.

Issues & errors

  1. Step-1 Explicityly state the namespace where (optionals) vault, keycloak, prometheus and grafana are to be deployed
  2. Step-3 Secure your ingress with TLS, show how to generate the tls.key and tls.crt command using
mkdir certs 

openssl req -x509 -nodes -days 9999 -newkey rsa:2048 -keyout /Users/scott/Desktop/tazama/EKS-helm/certs/tls.key -out /Users/scott/Desktop/tazama/EKS-helm/certs/tls.crt 

kubectl create secret tlscomsecret ingress-cert --namespace development --key=/Users/scott/Desktop/tazama/EKS-helm/certs/tls.key --cert=/Users/scott/Desktop/tazama/EKS-helm/certs/tls.crt -o yaml
  1. Provide more commands in jenkins section e.g getting password, port forwarding etc

Get your 'admin' user password by running:

kubectl exec --namespace cicd -it svc/jenkins -c jenkins -- /bin/cat /run/secrets/additional/chart-admin-password && echo

Get the Jenkins URL to visit by running these commands in the same shell:

echo http://127.0.0.1:8080
  kubectl --namespace cicd port-forward svc/jenkins 8080:8080
  1. State the need to install the aws credentials plugin before configuring ecr credentials
  2. Before running through the installation commands in Section Building the Jenkins Agent Locally Image

Prereqs:

Create image repo in aws;

aws ecr create-repository --repository-name hello-repository --region region. The image repository on aws will be aws_account_id.dkr.ecr.region.amazonaws.com

Login to registry

aws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com

Bash docker script provided here

The script that has a dockerfile didn't work for me. Made a few changes to it for it to successfully run. I'll submit the changes.

  1. Couple of jenkins notes to be aware of; Step 4

Opportunities for improvement

Workflow Automations / Security

Documentation The currently archived eks setup wiki / doc in confluence is best suited as an installation guide

CICD & Deployments

Monitoring Stack

Artifactory mgt