Skip to content

Instantly share code, notes, and snippets.

@tullo
Forked from vfarcic/minikube-argocd.sh
Created March 1, 2021 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tullo/e4589c5b08bc93cce8cead16dd8a1bcd to your computer and use it in GitHub Desktop.
Save tullo/e4589c5b08bc93cce8cead16dd8a1bcd to your computer and use it in GitHub Desktop.
# Source: https://gist.github.com/84324e2d6eb1e62e3569846a741cedea
####################
# Create a Cluster #
####################
minikube start
#############################
# Deploy Ingress Controller #
#############################
minikube addons enable ingress
kubectl --namespace kube-system wait \
--for=condition=ready pod \
--selector=app.kubernetes.io/component=controller \
--timeout=120s
export INGRESS_HOST=$(minikube ip)
###################
# Install Argo CD #
###################
git clone \
https://github.com/vfarcic/devops-catalog-code.git
cd devops-catalog-code
git pull
helm repo add argo \
https://argoproj.github.io/argo-helm
helm upgrade --install \
argocd argo/argo-cd \
--namespace argocd \
--create-namespace \
--version 2.8.0 \
--set server.ingress.hosts="{argocd.$INGRESS_HOST.xip.io}" \
--values argo/argocd-values.yaml \
--wait
export PASS=$(kubectl --namespace argocd \
get pods \
--selector app.kubernetes.io/name=argocd-server \
--output name \
| cut -d'/' -f 2)
argocd login \
--insecure \
--username admin \
--password $PASS \
--grpc-web \
argocd.$INGRESS_HOST.xip.io
echo $PASS
argocd account update-password
cd ..
#######################
# Destroy The Cluster #
#######################
minikube delete
@tullo
Copy link
Author

tullo commented Mar 1, 2021

helm chart is missing gpg keys config map

echo 'kind: ConfigMap
apiVersion: v1
metadata:
  name: argocd-gpg-keys-cm
  namespace: argocd
  labels:
    app.kubernetes.io/name: argocd-gpg-keys-cm
    app.kubernetes.io/part-of: argocd' | kubectl create --filename -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment