-
-
Notifications
You must be signed in to change notification settings - Fork 80
Add argocd #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add argocd #17
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f27606d
Add argocd
kainlite 45db91c
Fix Readme
kainlite 7f54563
Fixing some issues
kainlite cfdda59
Make paid_account optional resource
kainlite f17ead9
All the changes for the argocd installation are OK. Revert template c…
garutilorenzo 0fa01b5
Updated README
garutilorenzo a7fb3cd
Updated README
garutilorenzo 5710605
Merge branch 'master' into argocd
garutilorenzo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -250,6 +250,10 @@ nginx_ingress_controller_http_nodeport | |
| `install_certmanager` | `no` | Boolean value, install [cert manager](https://cert-manager.io/) "Cloud native certificate management". Default: true | | ||
| `certmanager_release` | `no` | Cert manager release. Default: v1.8.2 | | ||
| `certmanager_email_address` | `no` | Email address used for signing https certificates. Defaul: [email protected] | | ||
| `install_argocd` | `no` | Boolean value, install [Argo CD](https://argo-cd.readthedocs.io/en/stable/) "a declarative, GitOps continuous delivery tool for Kubernetes.". Default: true | | ||
| `argocd_release` | `no` | Argo CD release. Default: v2.4.11 | | ||
| `install_argocd_image_updater` | `no` | Boolean value, install [Argo CD Image Updater](https://argocd-image-updater.readthedocs.io/en/stable/) "A tool to automatically update the container images of Kubernetes workloads that are managed by Argo CD.". Default: true | | ||
| `argocd_image_updater_release` | `no` | Argo CD release Image Updater. Default: v0.12.0 | | ||
| `unique_tag_key` | `no` | Unique tag name used for tagging all the deployed resources. Default: k3s-provisioner | | ||
| `unique_tag_value` | `no` | Unique value used with unique_tag_key. Default: https://github.com/garutilorenzo/k3s-oci-cluster | | ||
| `expose_kubeapi` | `no` | Boolean value, default false. Expose or not the kubeapi server to the internet. Access is granted only from *my_public_ip_cidr* for security reasons. | | ||
|
@@ -681,6 +685,37 @@ longhorn-manager-zrrf2 1/1 Running 0 9m | |
longhorn-ui-9fdb94f9-6shsr 1/1 Running 0 8m59s | ||
``` | ||
|
||
#### Argocd check | ||
|
||
You can verify that all pods are running: | ||
``` | ||
root@inst-hmgnl-k3s-servers:~# kubectl get pods -n argocd | ||
NAME READY STATUS RESTARTS AGE | ||
argocd-application-controller-0 1/1 Running 0 8m51s | ||
argocd-applicationset-controller-7b74965f8c-mjl97 1/1 Running 0 8m53s | ||
argocd-dex-server-7f75d56bc6-j62hb 1/1 Running 0 8m53s | ||
argocd-notifications-controller-54dd686846-lggrz 1/1 Running 0 8m53s | ||
argocd-redis-5dff748d9c-s5q2l 1/1 Running 0 8m52s | ||
argocd-repo-server-5576f8d84b-sgbbt 1/1 Running 0 8m52s | ||
argocd-server-76cf7d4c7b-jq9qx 1/1 Running 0 8m52s | ||
``` | ||
|
||
To fetch the initial admin password, to be able to do this you need to expose your kubeapi-server (set *expose_kubeapi* variable to ture) and fetch the | ||
kubeconfig from one of the server nodes, it will be in (/var/lib/rancher/k3s/server/cred/admin.kubeconfig): | ||
|
||
``` | ||
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d | ||
``` | ||
|
||
To connect to the UI (make sure to copy the kubeconfig to your local machine first): | ||
|
||
``` | ||
kubectl -n argocd port-forward service/argocd-server -n argocd 8080:443 | ||
``` | ||
|
||
After that you should be able to visit the ArgoCD UI: https://localhost:8080 | ||
|
||
|
||
## Deploy a sample stack | ||
|
||
Finally to test all the components of the cluster we can deploy a sample stack. The stack is composed by the following components: | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.