- Printing Values on CLI
- Resolve resource dependencies ** very important**
- Counts
- depends_on
- Providers
- for_each
TERRAFORM IMPORT
Terraform import will import the actual existing infrastructure file to your local state file or remote state file. Terraform import will not create a configuration file for you. We had to sync the environment.
Kubectl installed, eksctl installed, helm installed.
Install the AWS CLI VERSION 2.10.3 and click this link and download this package.
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
STEP 2:
Download the Amazon EKS kubectl binary.
STEP 3:
STEP 4:
Copy the binary to a folder in your "path".
STEP 5:
Verify if it's installed.
STEP 6:
Install eksctl
STEP 7:
Move the extracted binary to /usr/local/bin.
STEP 8:
Check if its installed.
STEP 9:
Run the list command "ls". You should see the kubectl.
STEP 10:
We stall helm package.
STEP 11:
We ensure that your AWS credentials is configured. Run this command.
STEP 12:
We create an EKS cluster. Wait for 20 minutes to provision.
eksctl create cluster
STEP 15:
Where you see "my-cluster" replace with your cluster name and replace "1112222" to your account ID.
eksctl create addon --name aws-ebs-csi-driver --cluster my-cluster --service-account-role-arn arn:aws:iam::111122223333:role/AmazonEKS_EBS_CSI_DriverRole --force
STEP 19:
You should see two URLs. Log into your admin url with the user ID and password. The url is like the endpoint to connect you to the external IP and service is the ingress, direct the traffic. The site isn't secure to secure you will need a certificate manager.
STEP 20:
Now, your Wordpress cluster is using helm. We run the kubctl commands to check your nodes, clusters, namespaces, services.
MONITORING WITH PROMETHEUS
Create a namespace for prometheus , add a chart community and deploy prometheus.
STEP 22:
Check to see your pod inside Prometheus namespace.
Use kubectl to "port forward prometheus" console to your local machine through the server "9090".
Go to your local browser "localhost:9090. You should prometheus running.
Check your prometheus target and see the active metrics to view the running containers.
Congratulations you've successfully deployed Kubernetes integrate with AWS EKS and deploy with helm to organize your deployment using prometheus to monitor the pods. Happy Learning!!๐
Referencing: AWS: https://docs.aws.amazon.com/
Kubernetes : https://kubernetes.io/docs/home/
Helm :https://helm.sh/docs/
Prometheus : https://prometheus.io/docs/introduction/overview/
Kaity leGrande
How confident are you in your security program (Tools, systems, controls etc)? In the context of information security , the terms valida...