Skip to content

Commit 910e6de

Browse files
committed
Remove Project Structure section from README, add .gitignore
1 parent a73f85a commit 910e6de

17 files changed

Lines changed: 29 additions & 22 deletions

File tree

‎.circleci/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
name: Set image in manifests
4949
command: |
5050
IMAGE_TAG=${CIRCLE_SHA1:0:7}
51-
sed -i "s|ACCOUNT/REPO:TAG|${DOCKER_REPO}:${IMAGE_TAG}|g" kubernetes/03-deployment/deployment.yaml
51+
sed -i "s|chafah/devopsapp:latest|${DOCKER_REPO}:${IMAGE_TAG}|g" kubernetes/03-deployment/deployment.yaml
5252
- run:
5353
name: Deploy application
5454
command: |

‎.github/workflows/deploy.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
AWS_REGION: us-east-1
1010
CLUSTER_NAME: landmark-eks-cluster
11-
DOCKER_REPO: landmark/devopsapp
11+
DOCKER_REPO: chafah/devopsapp
1212

1313
jobs:
1414
build-and-push:
@@ -57,7 +57,7 @@ jobs:
5757

5858
- name: Set image in manifests
5959
run: |
60-
sed -i 's|ACCOUNT/REPO:TAG|${{ env.DOCKER_REPO }}:${{ needs.build-and-push.outputs.image_tag }}|g' kubernetes/03-deployment/deployment.yaml
60+
sed -i 's|chafah/devopsapp:latest|${{ env.DOCKER_REPO }}:${{ needs.build-and-push.outputs.image_tag }}|g' kubernetes/03-deployment/deployment.yaml
6161
6262
- name: Deploy to EKS
6363
run: |

‎.gitignore‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
.terraform/
3+
*.tfstate
4+
*.tfstate.backup
5+
.terraform.lock.hcl
6+
*.tfvars

‎Jenkinsfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pipeline {
4545
steps {
4646
script {
4747
sh "aws eks update-kubeconfig --name ${CLUSTER_NAME} --region ${AWS_DEFAULT_REGION}"
48-
sh "sed -i 's|ACCOUNT/REPO:TAG|${DOCKER_REPO}:${IMAGE_TAG}|g' kubernetes/03-deployment/deployment.yaml"
48+
sh "sed -i 's|chafah/devopsapp:latest|${DOCKER_REPO}:${IMAGE_TAG}|g' kubernetes/03-deployment/deployment.yaml"
4949
sh "kubectl apply -f kubernetes/01-namespace/namespace.yaml"
5050
sh "kubectl apply -f kubernetes/04-configmap/configmap.yaml"
5151
sh "kubectl apply -f kubernetes/03-deployment/deployment.yaml"

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ helm install aws-load-balancer-controller eks/aws-load-balancer-controller \
111111
-n kube-system \
112112
--set clusterName=landmark-eks-cluster \
113113
--set serviceAccount.create=false \
114-
--set serviceAccount.name=aws-load-balancer-controller
115-
114+
--set serviceAccount.name=aws-load-balancer-controller \
115+
--set region=us-east-1 \
116+
--set vpcId=<VPC_ID>
116117
# 5. Verify
117118
kubectl get deployment -n kube-system aws-load-balancer-controller
118119
```
@@ -125,7 +126,7 @@ Replace the image placeholder in the manifest with your actual image, then deplo
125126

126127
```bash
127128
# Replace the placeholder with your image
128-
sed -i 's|ACCOUNT/REPO:TAG|your-dockerhub-username/devopsapp:v1|g' kubernetes/03-deployment/deployment.yaml
129+
sed -i 's|chafah/devopsapp:latest|your-dockerhub-username/devopsapp:v1|g' kubernetes/03-deployment/deployment.yaml
129130

130131
# Deploy
131132
kubectl apply -f kubernetes/01-namespace/namespace.yaml
@@ -154,7 +155,7 @@ Open the URL in your browser on port 80. It may take 2-3 minutes for the ELB to
154155

155156
Choose one of the following CI/CD tools to automate the build and deploy process.
156157

157-
All pipelines use a `DOCKER_REPO` environment variable (e.g., `landmark/devopsapp`). Update this in the pipeline file to match your Docker Hub `account/repo`. The pipelines automatically replace the `ACCOUNT/REPO:TAG` placeholder in the Kubernetes manifests at deploy time.
158+
All pipelines use a `DOCKER_REPO` environment variable (e.g., `landmark/devopsapp`). Update this in the pipeline file to match your Docker Hub `account/repo`. The pipelines automatically replace the `chafah/devopsapp:latest` placeholder in the Kubernetes manifests at deploy time.
158159

159160
---
160161

‎kubernetes/02-pod/pod.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ metadata:
1111
spec:
1212
containers:
1313
- name: nodejs
14-
image: ACCOUNT/REPO:TAG
14+
image: chafah/devopsapp:latest
1515
ports:
1616
- containerPort: 8080

‎kubernetes/03-deployment/deployment.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
spec:
2323
containers:
2424
- name: nodejs
25-
image: ACCOUNT/REPO:TAG
25+
image: chafah/devopsapp:latest
2626
ports:
2727
- containerPort: 8080
2828
resources:

‎kubernetes/04-configmap/deployment.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
spec:
2020
containers:
2121
- name: nodejs
22-
image: ACCOUNT/REPO:TAG
22+
image: chafah/devopsapp:latest
2323
ports:
2424
- containerPort: 8080
2525
envFrom:

‎kubernetes/05-secret/deployment.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
spec:
2020
containers:
2121
- name: nodejs
22-
image: ACCOUNT/REPO:TAG
22+
image: chafah/devopsapp:latest
2323
ports:
2424
- containerPort: 8080
2525
envFrom:

‎kubernetes/06-ingress/deployment.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ spec:
1919
spec:
2020
containers:
2121
- name: nodejs
22-
image: ACCOUNT/REPO:TAG
22+
image: chafah/devopsapp:latest
2323
ports:
2424
- containerPort: 8080
2525
envFrom:

0 commit comments

Comments
 (0)