Skip to content

milanogrizovic/gitops-k8s

Repository files navigation

EVERYTHING GITOPS IN KUBERNETES

Local platform is MacOs

1. kind

Local kubernetes cluster with docker. Cluster with config file provided, creates Ingress (nginx) enabled cluster.

Create a kind cluster with extraPortMappings and node-labels.

  • extraPortMappings allow the local host to make requests to the Ingress controller over ports 80/443
  • node-labels only allow the ingress controller to run on a specific node(s) matching the label selector.

install

kind create cluster --name gitops-k8s --config ./kind/cluster-config.yaml

2. nginx

Kubernetes ingress controller.

install

Installing kind specific installation

kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml

3. argocd

ArgoCD installation.

install

  • create argocd ns
kubectl create namespace argocd
  • install argocd with custom values
helm install argocd argo/argo-cd -n argocd -f ./argocd/values.yaml
  • export generated password to ARGOCD_PASS env var
export ARGOCD_PASS=$(kubectl -n default get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d)

About

GitOps Everything

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published