forked from bregman-arie/devops-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As well as exercises.
- Loading branch information
abregman
committed
Oct 24, 2022
1 parent
7cceb86
commit cbdcfa3
Showing
15 changed files
with
671 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# App Creation | ||
|
||
## Requirements | ||
|
||
1. Make sure you have repository with some Kubernetes manifests | ||
2. Make sure you have a Kubernetes cluster running with ArgoCD installed | ||
|
||
## Objectives | ||
|
||
1. Using the CLI or the UI, create a a new application with the following properties: | ||
1. app name: app-demo | ||
2. project: app-project | ||
3. repository URL: your repo with some k8s manifests | ||
4. namespace: default | ||
2. Verify the app was created | ||
3. Sync the app | ||
4. Verify Kubernetes resources were created | ||
5. Delete the app | ||
|
||
## Solution | ||
|
||
Click [here](solution.md) to view the solution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# App Creation | ||
|
||
## Requirements | ||
|
||
1. Make sure you have repository with some Kubernetes manifests | ||
2. Make sure you have a Kubernetes cluster running with ArgoCD installed | ||
|
||
## Objectives | ||
|
||
1. Using the CLI or the UI, create a a new application with the following properties: | ||
1. app name: app-demo | ||
2. project: app-project | ||
3. repository URL: your repo with some k8s manifests | ||
4. namespace: default | ||
2. Verify the app was created | ||
3. Sync the app | ||
4. Verify Kubernetes resources were created | ||
5. Delete the app | ||
|
||
## Solution | ||
|
||
### UI | ||
|
||
1. Click on "New App" | ||
1. Insert application name: `app-demo` | ||
2. Insert project: `app-project` | ||
3. Under source put the repository URL to your GitHub repo with Kubernetes manifests | ||
1. Set the path for your application | ||
4. Under destination put the address of your Kubernetes cluster and set namespace to `default` | ||
5. Click on "Create" | ||
2. Click on "Sync" button on the "app-demo" form | ||
1. Click on "Synchronize" | ||
3. Verify the Kubernetes resources were created | ||
1. `kubectl get deployments` | ||
4. Delete the app | ||
|
||
### CLI | ||
|
||
``` | ||
argocd app create app-demo \ | ||
--project app-project \ | ||
--repo https://fake.repo.address \ | ||
--path ./some_app_path \ | ||
--dest-namespace default \ | ||
--dest-server my.kubernetes.cluster | ||
# Check app state | ||
argocd app list | ||
argocd app get app-demo | ||
# Sync app state | ||
argocd app sync app-demo | ||
argocd app wait app-demo | ||
# Verify kubernetes resources were created | ||
kubectl get deployments | ||
# Delete the app | ||
argocd app delete app-demo | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ArgoCD Helm App | ||
|
||
## Requirements | ||
|
||
1. Running Kubernetes cluster | ||
2. ArgoCD installed on the k8s cluster | ||
3. Repository of an Helm chart | ||
|
||
## Objectives | ||
|
||
1. Create a new app in ArgoCD that points to the repo of your Helm chart | ||
|
||
## Solution | ||
|
||
Click [here](solution.md) to view the solution |
Oops, something went wrong.