This repo contains all the code needed to follow along with our YouTube Tutorial or Written Article.
To follow along with this tutorial, you'll need:
- kubectl installed and configured (https://youtu.be/IBkU4dghY0Y)
- Helm installed: (https://kubernetestraining.io/blog/installing-helm-on-mac-and-windows)
- A GitHub account: (https://github.com/)
helm repo add argo https://argoproj.github.io/argo-helm
helm repo update
kubectl create namespace argocd
helm install argocd argo/argo-cd --namespace argocdkubectl port-forward svc/argocd-server -n argocd 8080:80kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -dapiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: grade-submission-api
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/YOUR_USERNAME/grade-api-gitops.git
targetRevision: HEAD
path: .
destination:
server: https://kubernetes.default.svc
namespace: default
syncPolicy:
automated:
prune: true
selfHeal: trueTo allow Kubernetes to pull images from GitHub Container Registry:
kubectl create secret docker-registry ghcr-secret \\
--docker-server=ghcr.io \\
--docker-username=YOUR_USERNAME \\
--docker-password=YOUR_PAT \\
--namespace=defaultIf you found this guide helpful, check out our Kubernetes Training course