Mise à jour de 'README.md'

This commit is contained in:
Fabrice Didon 2020-11-24 21:41:10 +01:00
parent ab52e2e4cc
commit f096c53a69

View File

@ -0,0 +1,54 @@
# Gitops repository
## How to use
1) Create your directory
2) put your yaml manifests in
3) Create the app application in argocd
```
$ argocd app create dns --repo https://git.open-it.io/Open-IT/gitops.git --path dns --dest-server https://kubernetes.default.svc --dest-namespace dns
```
4) Sync the app
```
$ argocd app sync dns
```
5) Wait and check status
```
$ argocd app get dns
Name: dns
Project: default
Server: https://kubernetes.default.svc
Namespace: dns
URL: https://192.168.5.200/applications/dns
Repo: https://git.open-it.io/Open-IT/gitops.git
Target:
Path: dns
SyncWindow: Sync Allowed
Sync Policy: <none>
Sync Status: Synced to (ab52e2e)
Health Status: Healthy
GROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE
Namespace dns dns Running Synced namespace/dns created
ConfigMap dns coredns Synced configmap/coredns created
ServiceAccount dns external-dns Synced serviceaccount/external-dns created
rbac.authorization.k8s.io ClusterRole dns external-dns Running Synced clusterrole.rbac.authorization.k8s.io/external-dns created
rbac.authorization.k8s.io ClusterRoleBinding dns external-dns-viewer Running Synced clusterrolebinding.rbac.authorization.k8s.io/external-dns-viewer created
Service dns etcd-dns Synced Healthy service/etcd-dns created
Service dns coredns Synced Healthy service/coredns created
apps Deployment dns external-dns Synced Healthy deployment.apps/external-dns created
apps Deployment dns coredns Synced Healthy deployment.apps/coredns created
apps StatefulSet dns etcd-dns Synced Healthy statefulset.apps/etcd-dns created
Namespace dns Synced
rbac.authorization.k8s.io ClusterRole external-dns Synced
rbac.authorization.k8s.io ClusterRoleBinding external-dns-viewer Synced
```