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
| module "ec2_instance_A" { | |
| source = "terraform-aws-modules/ec2-instance/aws" | |
| version = "~> 3.0" | |
| name = "ec2_instance_A" | |
| ami = "ami-ebd02392" | |
| instance_type = "t2.micro" | |
| key_name = "user1" | |
| monitoring = true |
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
| $ argocd app list | |
| NAME CLUSTER NAMESPACE PROJECT STATUS HEALTH SYNCPOLICY CONDITIONS REPO PATH TARGET | |
| app-of-apps https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none> https://github.com/kanuahs/argocd-demo.git app-of-apps-chart | |
| minikube-monitoring https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none> https://kubernetes-charts.storage.googleapis.com 9.7.4 | |
| nginx https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none> https://github.com/kanuahs/argocd-demo.git nginx-chart HEAD |
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
| $ argocd cluster add | |
| ERRO[0000] Choose a context name from: | |
| CURRENT NAME CLUSTER SERVER | |
| * gke_[PROJECT_NAME]_us-central1-a_gke-argocd gke_[PROJECT_NAME]_us-central1-a_gke-argocd https://[KUBERNETES-MASTER-IP] | |
| minikube minikube https://192.168.99.100:8443 | |
| $ argocd cluster add gke_[PROJECT_NAME]_us-central1-a_gke-argocd | |
| INFO[0001] ServiceAccount "argocd-manager" created in namespace "kube-system" |
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
| $ argocd cluster list | |
| SERVER NAME VERSION STATUS MESSAGE | |
| https://[KUBERNETES_MASTER_IP] gke_[PROJECT_NAME]_us-central1-a_gke-argocd 1.13+ Successful | |
| https://kubernetes.default.svc 1.14 Successful |
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
| $ argocd app list | |
| NAME CLUSTER NAMESPACE PROJECT STATUS HEALTH SYNCPOLICY CONDITIONS REPO PATH TARGET | |
| app-of-apps https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none> https://github.com/[GITHUB_USERNAME]/argocd-demo.git app-of-apps-chart | |
| minikube-monitoring https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none> https://kubernetes-charts.storage.googleapis.com 9.7.4 | |
| minikube-nginx https://kubernetes.default.svc default default Synced Healthy Auto-Prune <none> https://github.com/kanuahs/argocd-demo.git nginx-chart HEAD | |
| gke-monitoring https://[KUBERNETES_MASTER_IP] default default Synced Healthy Auto-Prune <none> https://kubernetes-charts.storage.googleapis.com 9.7.4 | |
| gke-nginx https://[KUBERNETES_MASTER_IP] |
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
| argocd app patch app-of-apps --patch '{"spec": { "source": { "repoURL": "https://github.com/[GITHUB_USERNAME]/argocd-demo.git" } }}' --type merge |
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
| > k get pods -n argocd | |
| NAME READY STATUS RESTARTS AGE | |
| argocd-application-controller-0 1/1 Running 0 7m7s | |
| argocd-dex-server-6dcf645b6b-p2xjd 1/1 Running 0 7m7s | |
| argocd-redis-5b6967fdfc-97ttj 1/1 Running 0 7m7s | |
| argocd-repo-server-7598bf5999-mwsbz 1/1 Running 0 7m7s | |
| argocd-server-79f9bc9b44-7fvnv 1/1 Running 0 7m7s |
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
| > k get events --sort-by='.metadata.creationTimestamp' -A -w | |
| ingress-nginx 2s Normal RELOAD pod/nginx-ingress-controller-6c8d74ffc-b6nmd NGINX reload triggered due to a change in configuration | |
| argocd 2s Normal Requested certificate/argocd-secret Created new CertificateRequest resource "argocd-secret-wwpsc" | |
| argocd 2s Normal Reused certificate/argocd-secret Reusing private key stored in existing Secret resource "argocd-secret" | |
| argocd 2s Normal Issuing certificate/argocd-secret Issuing certificate as Secret was previously issued by Issuer.cert-manager.io/ | |
| argocd 2s Normal OrderPending certificaterequest/argocd-secret-wwpsc Waiting on certificate issuance from order argocd/argocd-secret-wwpsc-3668447565: "" | |
| argocd 2s Normal OrderCreated |
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
| > argocd cluster list | |
| SERVER NAME VERSION STATUS MESSAGE | |
| https://kubernetes.default.svc in-cluster Unknown Cluster has no application and not being monitored. |
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
| > argocd cluster add kerch-kube-cluster | |
| WARNING: This will create a service account `argocd-manager` on the cluster referenced by context `kerch-kube-cluster` with full cluster level admin privileges. Do you want to continue [y/N]? y | |
| INFO[0006] ServiceAccount "argocd-manager" created in namespace "kube-system" | |
| INFO[0006] ClusterRole "argocd-manager-role" created | |
| INFO[0006] ClusterRoleBinding "argocd-manager-role-binding" created | |
| Cluster 'https://kubeapi.kar.int' added |