https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-ec2.Vpc.html
npx cdktf deploy "*"
Required only if you have previous installation
export CLUSTER='arn:aws:eks:eu-west-3:504566391182:cluster/sbx-laurentgil'
kubectl config delete-cluster $CLUSTER
kubectl config delete-context $CLUSTER
kubectl config delete-user $CLUSTER
Make sure to have follow this documentation to install the required tools :
Once authenticated to aws cloud, execute the following command.
aws eks update-kubeconfig --region eu-west-3 --name sbx-laurentgil --profile manomano-sbx
GitLab is able to integrate with kubernetes however some requirements are required.
- create a dedicated service account
- grant the service account with cluster-admin permission
From the kubernetes folder, execute :
kubectl apply -f .
Execute the following command to get the gitlab service account token:
export TOKEN_NAME=$(kubectl get sa -n kube-system gitlab -o=jsonpath="{.secrets[0].name}")
kubectl get secrets $TOKEN_NAME -n kube-system -o=jsonpath={.data.token}| base64 -d
Execute the following command to get the gitlab service account certificate:
export TOKEN_NAME=$(kubectl get sa -n kube-system gitlab -o=jsonpath="{.secrets[0].name}")
kubectl get secrets $TOKEN_NAME -n kube-system -o=jsonpath={.data."ca\.crt"}| base64 -d
Execute the following command to get the cluster api URL :
kubectl cluster-info
export HELM_KUBEAPISERVER=
kubectl config view --minify --raw --output 'jsonpath={..cluster.certificate-authority-data}' | base64 -d