From 067143caf2a699506fb763bc36c83d80f5644303 Mon Sep 17 00:00:00 2001 From: jshu0 Date: Tue, 15 Aug 2023 10:29:14 -0500 Subject: [PATCH 1/5] Updated for weather app --- helm-webapp/templates/deployment.yaml | 2 +- helm-webapp/templates/service.yaml | 2 +- helm-webapp/values.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-webapp/templates/deployment.yaml b/helm-webapp/templates/deployment.yaml index 1ba1743a..4adfdf39 100644 --- a/helm-webapp/templates/deployment.yaml +++ b/helm-webapp/templates/deployment.yaml @@ -20,7 +20,7 @@ spec: - name: mycontainer image: "{{ .Values.image.name }}:{{ .Values.image.tag }}" ports: - - containerPort: 80 + - containerPort: 3000 envFrom: - configMapRef: name: {{ .Values.configmap.name }} diff --git a/helm-webapp/templates/service.yaml b/helm-webapp/templates/service.yaml index 0ffe034c..2f445415 100644 --- a/helm-webapp/templates/service.yaml +++ b/helm-webapp/templates/service.yaml @@ -6,7 +6,7 @@ metadata: app: {{ .Values.appName }} spec: ports: - - port: 80 + - port: 3000 protocol: TCP name: flask selector: diff --git a/helm-webapp/values.yaml b/helm-webapp/values.yaml index 2f332a2e..b205c18b 100644 --- a/helm-webapp/values.yaml +++ b/helm-webapp/values.yaml @@ -8,5 +8,5 @@ configmap: CUSTOM_HEADER: 'This app was deployed with helm!' image: - name: devopsjourney1/mywebapp + name: shujohns/weather tag: latest \ No newline at end of file From 8980f429b31182ddde31b1fac77103b9dd676f76 Mon Sep 17 00:00:00 2001 From: jshu0 Date: Tue, 15 Aug 2023 11:47:03 -0500 Subject: [PATCH 2/5] Updated ports and replicas --- helm-webapp/values-dev.yaml | 2 +- helm-webapp/values-prod.yaml | 2 +- helm-webapp/values.yaml | 2 +- readme.md | 17 ++++++++--------- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/helm-webapp/values-dev.yaml b/helm-webapp/values-dev.yaml index a53c0b2f..386934bf 100644 --- a/helm-webapp/values-dev.yaml +++ b/helm-webapp/values-dev.yaml @@ -1,5 +1,5 @@ -replicas: 5 +replicas: 2 configmap: data: diff --git a/helm-webapp/values-prod.yaml b/helm-webapp/values-prod.yaml index fa91ac76..e726c049 100644 --- a/helm-webapp/values-prod.yaml +++ b/helm-webapp/values-prod.yaml @@ -1,5 +1,5 @@ -replicas: 4 +replicas: 2 configmap: data: diff --git a/helm-webapp/values.yaml b/helm-webapp/values.yaml index b205c18b..b5f7a7cf 100644 --- a/helm-webapp/values.yaml +++ b/helm-webapp/values.yaml @@ -1,6 +1,6 @@ appName: myhelmapp -port: 80 +port: 3000 configmap: name: myhelmapp-configmap-v1 diff --git a/readme.md b/readme.md index b40ed77e..79c92bda 100644 --- a/readme.md +++ b/readme.md @@ -1,27 +1,29 @@ - - # Follow this video to be a ArgoCD Boss -https://youtu.be/JLrR9RV9AFA +https://youtu.be/JLrR9RV9AFA # Installing latest/stable version of ArgoCD + ``` kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml ``` ### Forward Ports + ``` -k get services -n argocd +kubectl get services -n argocd kubectl port-forward service/argocd-server -n argocd 8080:443 ``` ### Get Credentials + ``` kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d ``` # Install ArgoCD CLI / Login via CLI + ``` brew install argocd kubectl port-forward svc/argocd-server -n argocd 8080:443 @@ -29,6 +31,7 @@ argocd login 127.0.0.1:8080 ``` # Creating an Application using ArgoCD CLI: + ``` argocd app create webapp-kustom-prod \ --repo https://github.com/devopsjourney1/argo-examples.git \ @@ -37,6 +40,7 @@ argocd app create webapp-kustom-prod \ ``` # Command Cheat sheet + ``` argocd app create #Create a new Argo CD application. argocd app list #List all applications in Argo CD. @@ -49,8 +53,3 @@ argocd app rollback #Rollback to a previous version argocd app set #Set the application’s configuration. argocd app delete #Delete an Argo CD application. ``` - - - - - From 511842b7249cbe86d0ac7dc766f57251ffe0432f Mon Sep 17 00:00:00 2001 From: jshu0 Date: Tue, 15 Aug 2023 12:07:45 -0500 Subject: [PATCH 3/5] updated app name --- helm-webapp/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-webapp/values.yaml b/helm-webapp/values.yaml index b5f7a7cf..020cc14b 100644 --- a/helm-webapp/values.yaml +++ b/helm-webapp/values.yaml @@ -1,4 +1,4 @@ -appName: myhelmapp +appName: weatherapp port: 3000 From b912318eb5b06cdda4c644618adf648b11bcde0a Mon Sep 17 00:00:00 2001 From: jshu0 Date: Wed, 16 Aug 2023 10:00:53 -0500 Subject: [PATCH 4/5] Change name to weather-webapp --- {helm-webapp => weather-webapp}/.helmignore | 0 {helm-webapp => weather-webapp}/Chart.yaml | 0 {helm-webapp => weather-webapp}/templates/NOTES.txt | 0 {helm-webapp => weather-webapp}/templates/configmap.yaml | 0 {helm-webapp => weather-webapp}/templates/deployment.yaml | 0 {helm-webapp => weather-webapp}/templates/service.yaml | 0 {helm-webapp => weather-webapp}/values-dev.yaml | 0 {helm-webapp => weather-webapp}/values-prod.yaml | 0 {helm-webapp => weather-webapp}/values.yaml | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename {helm-webapp => weather-webapp}/.helmignore (100%) rename {helm-webapp => weather-webapp}/Chart.yaml (100%) rename {helm-webapp => weather-webapp}/templates/NOTES.txt (100%) rename {helm-webapp => weather-webapp}/templates/configmap.yaml (100%) rename {helm-webapp => weather-webapp}/templates/deployment.yaml (100%) rename {helm-webapp => weather-webapp}/templates/service.yaml (100%) rename {helm-webapp => weather-webapp}/values-dev.yaml (100%) rename {helm-webapp => weather-webapp}/values-prod.yaml (100%) rename {helm-webapp => weather-webapp}/values.yaml (100%) diff --git a/helm-webapp/.helmignore b/weather-webapp/.helmignore similarity index 100% rename from helm-webapp/.helmignore rename to weather-webapp/.helmignore diff --git a/helm-webapp/Chart.yaml b/weather-webapp/Chart.yaml similarity index 100% rename from helm-webapp/Chart.yaml rename to weather-webapp/Chart.yaml diff --git a/helm-webapp/templates/NOTES.txt b/weather-webapp/templates/NOTES.txt similarity index 100% rename from helm-webapp/templates/NOTES.txt rename to weather-webapp/templates/NOTES.txt diff --git a/helm-webapp/templates/configmap.yaml b/weather-webapp/templates/configmap.yaml similarity index 100% rename from helm-webapp/templates/configmap.yaml rename to weather-webapp/templates/configmap.yaml diff --git a/helm-webapp/templates/deployment.yaml b/weather-webapp/templates/deployment.yaml similarity index 100% rename from helm-webapp/templates/deployment.yaml rename to weather-webapp/templates/deployment.yaml diff --git a/helm-webapp/templates/service.yaml b/weather-webapp/templates/service.yaml similarity index 100% rename from helm-webapp/templates/service.yaml rename to weather-webapp/templates/service.yaml diff --git a/helm-webapp/values-dev.yaml b/weather-webapp/values-dev.yaml similarity index 100% rename from helm-webapp/values-dev.yaml rename to weather-webapp/values-dev.yaml diff --git a/helm-webapp/values-prod.yaml b/weather-webapp/values-prod.yaml similarity index 100% rename from helm-webapp/values-prod.yaml rename to weather-webapp/values-prod.yaml diff --git a/helm-webapp/values.yaml b/weather-webapp/values.yaml similarity index 100% rename from helm-webapp/values.yaml rename to weather-webapp/values.yaml From 229a3cef832b228ad3143e472689092842098322 Mon Sep 17 00:00:00 2001 From: jshu0 Date: Wed, 16 Aug 2023 10:27:09 -0500 Subject: [PATCH 5/5] Change config map name --- weather-webapp/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather-webapp/values.yaml b/weather-webapp/values.yaml index 020cc14b..cae0803b 100644 --- a/weather-webapp/values.yaml +++ b/weather-webapp/values.yaml @@ -3,7 +3,7 @@ appName: weatherapp port: 3000 configmap: - name: myhelmapp-configmap-v1 + name: weatherapp-configmap-v1 data: CUSTOM_HEADER: 'This app was deployed with helm!'