GitOps rep used to deploy in-cluster services and products to Kubernetes clusters. This is an opinionated file structure on how argocd should be setup.
- Update
apps/argocd/{dev,prod}/argocd-secret.yaml
with base64 withadmin:password
- Update
apps/argocd/{dev,prod}/repository.yaml
with gitlab/github api key
kubectl apply -k argocd/dev
kubectl apply -k argocd/prod
This will create a kubernetes secret that will allow us to pull docker and helm charts from artifactory into our cluster.
kubectl create secret docker-registry regcred \
--docker-server=https://artifactory \
--docker-username=read-only \
--docker-password=artifactory_apikey \
[email protected] \
-n dev
We can then get the contents of this file in declarative form.
kubectl get secret regcred -dev -o yaml
We can output the contents of this file into our devops folder.