You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: argocd/iac/terraform/examples/eks/external-secrets/README.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,13 @@
2
2
3
3
This example shows how to deploy Amazon EKS with addons configured via ArgoCD
4
4
5
-
The example demonstrate how to use private git repository for workload apps
5
+
The example demonstrate how to use private git repository for workload apps.
6
6
7
-
Create an AWS Secret Manager secret with name `github-ssh-key` and the content in plain text of git private ssh key
7
+
The example stores your ssh key in AWS Secret Manager, and External Secret Operator to create the secret
8
+
for ArgoCD to access the git repositories.
9
+
10
+
## Prerequisites
11
+
- Create a Github ssh key file, example assumes the file path `~/.ssh/id_rsa`, update `main.tf` if using a different location
8
12
9
13
Deploy EKS Cluster
10
14
```shell
@@ -17,9 +21,16 @@ Access Terraform output to configure `kubectl` and `argocd`
17
21
terraform output
18
22
```
19
23
20
-
After cluster is deploy use the external secret operator to create the ArgoCD secret for git ssh access
24
+
There is a file `github.yaml` located in the addons git repository `clusters/ex-external-secrets/secret/` this file creates the resources `ClusterSecretStore` and `ExternalSecret`. Update the git `url` this file when you change the git repository for the workloads specified in `bootstrap/workloads.yaml`
25
+
26
+
To verify that the ArgoCD secret with ssh key is created run the following command
21
27
```shell
22
-
kubectl apply -f secrets/github.yaml
28
+
kubectl get secret private-repo-creds -n argocd
29
+
```
30
+
Expected output, should have 3 data items in secret
0 commit comments