Skip to content

This repo contains all required code to start k8s cluster locally and start the argocd on it.

Notifications You must be signed in to change notification settings

zilinjak/k8s-argocd-playground

Repository files navigation

Purpose

This repository is for testing and playing with K8S and Argocd. It is intended to be able to easily initialize infrastructure on local k8s cluster - using docker desktop.

Prerequisites

  • Installed Docker Desktop
  • Enable Kubernetes in Docker Desktop
  • Installed kubectl and helmcli
  • Switch to docker-desktop context in kubectl

List all argo-cd chart versions

helm search repo argo-cd/argo-cd --versions

Install ArgoCD

# Install the chart
helm install argo argo/argo-cd --namespace=argocd --create-namespace --version 7.3.3 --values argocd-values.yaml

Configuring the argo-cd chart

See all possible values, add them to the argocd-values.yaml file and install the chart with the file.

helm show values argo/argo-cd

Upgrade the chart

# Upgrade the chart
helm upgrade argo argo/argo-cd --namespace=argocd --version x.x.x --values argocd-values.yaml

Others

# Get the password
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

# If NodePort is not set use port forwarding <SHOULD NOT BE NEEDED>
kubectl port-forward service/argo-argocd-server -n argocd 8080:443

Install all our apps

## Install root sync app
```bash
helm install root-sync-app root-sync-app --create-namespace

Accessing the apps

Start the cluster

  • Minikube: minikube start
  • Start tunneling: minikube tunnel

Links

About

This repo contains all required code to start k8s cluster locally and start the argocd on it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages