Skip to content

Instantly share code, notes, and snippets.

@welshstew
Last active January 17, 2022 13:02
Show Gist options
  • Save welshstew/acde5f2ffc8e625278872f148a402338 to your computer and use it in GitHub Desktop.
Save welshstew/acde5f2ffc8e625278872f148a402338 to your computer and use it in GitHub Desktop.
ArgoCD Demo

Helm Stuff

Show artifacthub

helm search repo quarkus
helm show chart redhat-charts/quarkus
helm show readme redhat-charts/quarkus
helm pull redhat-charts/quarkus --untar
helm install redhat-charts/quarkus --generate-name

helm create sample-app

Prior to demo

Ensure AWS Credentials + EKS Cluster Setup

vi ~/.aws/credentials
rm -rf ~/.kube
eksctl create cluster
kubectl get nodes

Openshift

Login to Openshift cluster... oc login...

oc new-project labs-ci-cd && oc new-project ateam-ci-cd

git clone https://github.com/eformat/openshift-gitops
cd openshift-gitops

export GITOPS_NAMESPACES=labs-ci-cd,ateam-ci-cd

oc apply -k openshift-gitops/cluster
sed "s/GITOPS_NAMESPACES/$GITOPS_NAMESPACES/" openshift-gitops/cluster/subscription-openshift-gitops.yaml | oc apply -f-

oc apply -k .

oc new-project nodejs && oc new-project pricelist
oc label namespace nodejs argocd.argoproj.io/managed-by=labs-ci-cd
oc label namespace pricelist argocd.argoproj.io/managed-by=labs-ci-cd

Login to ArgoCD

kubectl port-forward svc/argocd-server 8443:443 -n labs-ci-cd
argocd login --username admin --password $(oc get secrets -n labs-ci-cd argocd-cluster -o jsonpath="{.data.admin\.password}" | base64 -d) --insecure localhost:8443
argocd cluster list

Add the EKS cluster

add pricelist-eks

kubectl config get-contexts
kubectl config use-context
kubectl port-forward svc/pricelist 8080:8080 -n pricelist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment