Giter VIP home page Giter VIP logo

gitops-test's Introduction

GitOps Examples

Introduction

This repository contains some example Kubernetes/ArgoCD manifests. It is useful for testing the functionalities, configurations and syncOptions of ArgoCD.

Getting started

  1. We will be using a kind cluster for our tests. Please follow the installation instructions before continuing.

  2. Create a new kind cluster called kind-gitops-test for our tests:

    kind create cluster --name kind-gitops-test --kubeconfig ~/.kube/kind-gitops-test
    Creating cluster "kind-gitops-test" ...
     โœ“ Ensuring node image (kindest/node:v1.26.3) ๐Ÿ–ผ
     โœ“ Preparing nodes ๐Ÿ“ฆ
     โœ“ Writing configuration ๐Ÿ“œ
     โœ“ Starting control-plane ๐Ÿ•น๏ธ
     โœ“ Installing CNI ๐Ÿ”Œ
     โœ“ Installing StorageClass ๐Ÿ’พ
    Set kubectl context to "kind-kind-gitops-test"
    You can now use your cluster with:
    
    kubectl cluster-info --context kind-kind-gitops-test --kubeconfig ~/.kube/kind-gitops-test
    
    Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community ๐Ÿ™‚
    
  3. Export the KUBECONFIG variable in your shell.

    export KUBECONFIG=~/.kube/kind-gitops-test
  4. Install ArgoCD on the kind cluster in a new argocd namespace:

    You can find the latest instructions on the ArgoCD Getting Started documentation page.

    kubectl create namespace argocd
    kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
  5. Get the intial admin secret for your test argocd instance:

    kubectl get secret -n argocd argocd-initial-admin-secret --template='{{ index .data.password | base64decode }}{{ "\n" }}'
  6. Port-forward the argocd-server service to get access to the web-ui/api

    kubectl port-forward svc/argocd-server -n argocd 8080:443
  7. Navigate to https://localhost:8080/, ingore the certificate warning and login with user admin and the initial admin password.

  8. [optional] Navigate to User info and Click the UPDATE PASSWORD button, change the password and reauthenticate

  9. Follow the instructions in the README file of each example.

gitops-test's People

Contributors

pascalva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.