This repository contains Kubernetes resource configurations managed using Kustomize. They are meant to be deployed to a Kubernetes cluster either manually or automatically via ArgoCD.
Ensure you have the following before starting:
- Access to a Kubernetes cluster.
- ArgoCD installed in the cluster (only for automatic deployment).
- kubectl and kustomize installed on your local machine.
Ensure that you've selected the correct Kubernetes context if you have access to multiple clusters. To manually deploy these resources to your cluster, navigate to the root directory of this repository and run the following command:
kubectl apply -k overlays/develop
To manage these resources automatically using ArgoCD, you need to have ArgoCD installed and running in your cluster.
Apply application.yaml
and project.yaml
to the argocd
namespace to make sure argocd will monitor and sync changes in kustomize repo:
kubectl apply -f argocd/project.yaml -n argocd
kubectl apply -f argocd/application.yaml -n argocd
This creates an ArgoCD project and application that will monitor changes in the main
branch of this repository and sync them to the cluster.