Skip to content

carpalex/ci_cd_lab

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI/CD workshop repository

Prerequisites

Install Argo CD in k8s

kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

Install Argo CD Argo Rollouts

kubectl create namespace argoproj
kubectl apply -f https://raw.githubusercontent.com/argoproj/argo-rollouts/stable/manifests/install.yaml

Add a repository to Argo CD

Get the admin password and use it to login with argo cd:

kubectl get secret argocd-initial-admin-secret -n argocd   -o jsonpath="{.data.password}" | base64 -d && echo
argocd login localhost:8080 --username admin --password <password>

Then add the git repo to Argo CD:

export USERNAME=<your-github-repository>
export REPO=go-simple-webserver
argocd app create go-simple-webserver \
  --repo https://github.com/$USERNAME/$REPO.git \
  --path manifests \
  --dest-server https://kubernetes.default.svc \
  --dest-namespace default

Argo UI Guideline

kubectl port-forward svc/argocd-server -n argocd 8080:443

To login use the following credentials: admin/<password>

<password> can be retrieved from kubectl get secret argocd-initial-admin-secret -n argocd -o jsonpath="{.data.password}" | base64 -d && echo

About

This is a repository for a CI/CD uni lab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 80.8%
  • Dockerfile 19.2%