-
Clone this repository
git clone https://github.com/oyoh-edmond/Devops-intern-task.git
-
Navigate into the repo directory (folder)
cd Devops-intern-task
-
Create a Kind cluster by exectuing the following script
./KIND_cluster.sh
The result will be that a new Kind cluster has been created.
-
Grab the kubeconfig file by running the following command
kind get kubeconfig --name ignite-app > kubeconfig.yaml
The command above saves the kubeconfig to a file named
kubeconfig.yaml
-
Install the node application dependencies by running the following command in the `node_application`` directory
cd node_application && npm i
Note
: You can test the application by simply executingnode index.js
within the node_application dir -
Build and deploy a docker image to dockerhub from the node_app dir
docker buildx build . -t <dockerhub-username>/<image-name>
For example:
docker buildx build . -t oyohedmond/ignite-app
Once that is done, login to dockerhub and verify that it exists -
Navigate to the terraform directory and execute the following commands:
a. Init
terraform init
b. Plan
terraform plan
b. Apply
terraform apply
forked from akurasy/intern-task
-
Notifications
You must be signed in to change notification settings - Fork 0
Oyoh-Edmond/DevOps-intern-task
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- HCL 47.9%
- Shell 39.5%
- JavaScript 12.6%