Skip to content

Latest commit

 

History

History
83 lines (61 loc) · 4.55 KB

README.md

File metadata and controls

83 lines (61 loc) · 4.55 KB

gitops-playground

AWS UP Azure UP

Spin up a K8s cluster in a real world kubernetes sandbox environment with one command. Base script will install kubernetes and:

AWS

Requirements

Install

  1. git clone https://github.com/drogerschariot/gitops-playground.git
  2. cd gitops-playground/aws-infra/
  3. Copy example env file cp aws-env .env Edit the .env file and update environment variables.
  4. Run script ./aws-up.sh

The script will run terraform to install required k8s infrastructure, install services, EBS CSI driver, and add kubernetes context. You will see the ArgoCD password and ingress public IP at the end of the output.

After you install the script, the kubernetes context will be automatically installed. See kubectl config get-contexts You can access the cluster using apps like K9s or Lens.

Azure

Requirements

Install

  1. git clone https://github.com/drogerschariot/gitops-playground.git
  2. cd gitops-playground/azure-infra/
  3. Copy example env file cp azure-env .env Edit the .env file and update environment variables.
  4. Login to Azure az login
  5. Run script ./azure-up.sh

The script will run terraform to install required k8s infrastructure, install services, and add kubernetes context. You will see the ArgoCD password and ingress public IP at the end of the output.

After you install the script, the kubernetes context will be automatically installed. See kubectl config get-contexts You can access the cluster using apps like K9s or Lens.

Access

Local

  • ArgoCD (http://localhost:8080/): kubectl port-forward deployment/argocd-server 8080:8080 --namespace argocd
  • Grafana (http://localhost:3000/): kubectl port-forward deployment/kube-prometheus-stack-grafana 3000:3000 --namespace monitoring
  • Prometheus: (http://localhost:9090): kubectl port-forward svc/kube-prometheus-stack-prometheus 9090:http-web --namespace monitoring
  • Vault UI: (http://localhost:8200): kubectl port-forward svc/vault-ui 8200:8200 --namespace vault

Services

The following services are available to install and test. Click on the link to access service README.

Teardown

AWS

  • cd gitops-playground/aws-infra/
  • ./aws-down.sh

Azure

  • cd gitops-playground/azure-infra/
  • ./azure-down.sh