Remove ArgoCD
The only thing we deploy with ArgoCD at this point is Zookeeper, and
a followup change will remove that in favor of simply deploying via
helm chart output.
Change-Id: Iec7b52da86f523cdab4061e8f6f4de131bb0ae78
diff --git a/README b/README
index f18df48..b7e6d06 100644
--- a/README
+++ b/README
@@ -5,35 +5,6 @@
Manual steps for bootstrapping:
-kubectl create clusterrolebinding cluster-admin-binding \
- --clusterrole=cluster-admin \
- --user=$(gcloud config get-value core/account)
-
-# Install argo
-
-kubectl create namespace argocd
-kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
-
-kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
-
-# This gets the name of the argo pod
-kubectl get pods -n argocd -l app.kubernetes.io/name=argocd-server -o name | cut -d'/' -f 2
-
-# Use the IP address of the load balancer
-argocd login $IP
-# Update the admin password (by default, it's the name of the pod above)
-argocd account update-password
-
-# Install zookeeper
-argocd app create zookeeper \
- --repo http://storage.googleapis.com/kubernetes-charts-incubator \
- --helm-chart zookeeper \
- --revision 2.1.3 \
- --dest-server https://kubernetes.default.svc \
- --dest-namespace zookeeper
-
-argocd app sync zookeeper
-
# Install certmanager
kubectl create namespace cert-manager
diff --git a/playbooks/deploy.yaml b/playbooks/deploy.yaml
index cfc2342..375967e 100644
--- a/playbooks/deploy.yaml
+++ b/playbooks/deploy.yaml
@@ -3,6 +3,14 @@
vars:
root: "{{ (zuul.executor.work_root + '/' + zuul.project.src_dir) }}"
tasks:
+ - name: Remove argocd
+ k8s:
+ state: absent
+ definition:
+ apiVersion: v1
+ kind: Namespace
+ metadata:
+ name: argocd
- name: Make kube directory
file:
path: "{{ ansible_user_dir }}/.kube"