Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@


# 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
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 \
Expand All @@ -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.
Expand All @@ -49,8 +53,3 @@ argocd app rollback <appname> #Rollback to a previous version
argocd app set <appname> #Set the application’s configuration.
argocd app delete <appname> #Delete an Argo CD application.
```





File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
app: {{ .Values.appName }}
spec:
ports:
- port: 80
- port: 3000
protocol: TCP
name: flask
selector:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

replicas: 5
replicas: 2

configmap:
data:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

replicas: 4
replicas: 2

configmap:
data:
Expand Down
8 changes: 4 additions & 4 deletions helm-webapp/values.yaml → weather-webapp/values.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
appName: myhelmapp
appName: weatherapp

port: 80
port: 3000

configmap:
name: myhelmapp-configmap-v1
name: weatherapp-configmap-v1
data:
CUSTOM_HEADER: 'This app was deployed with helm!'

image:
name: devopsjourney1/mywebapp
name: shujohns/weather
tag: latest