Code Monkey home page Code Monkey logo

argocd-dex's Introduction

argocd-dex

ArgoCD with Dex Configuration

Install ArgoCD

  • To Install argoCD. Update the version if required.
        kubectl apply -k argocd-install/
  • If you are using public cloud update svc for argocd-server as load balancer"
    kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}'
  • Get Initial Secret :
    kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
    
  • Login to ArgoCD server to upate password
    argocd login <ARGOCD_SERVER> # Just  the IP:PORT
    argocd account update-password

ArgoCD Dex Integration with Microsoft connector

Prerequsites

  • Create new application in AzureAD OIDC follow following link for the same Quick Start : Register an application
  • Call back URL in your AzureAD application would be :
    • https://<ArgoCD_Server_IP/URL>/api/dex/callback
  • I worked with GKE so still needs to work with localhost. It should work for localhost too where the IP/URL is required.

Lets run some commands now to get it work

Microsoft Connector

  • Following file needs to be updated:

    • microsoft-connector/argocd-extra.yaml

      • <Your Base64 Client Secret> : with your ClientSecret created in AzureAD for OIDC application
      • <Your Clinet/ApplicationID of Azure app> : Client/Application ID in AuzreAD OIDC Application.
      • <ArgoCD_Server_IP/URL> : If you port forward your application to localhost it should be localhost If you create a nodeport type service it should be localhost:nodeport If you create a loadbalancer it will be your loadbalancerIP
  • Lets first apply the file with configmap and secret changes

    kubectl apply -f microsoft-connector/argocd-extra.yaml -n argo 
    
  • Lets install argocd now

    kubectl apply -f microsoft-connector/argocd-install.yaml -n argo 
    
  • Now port-forward your server to localhost or use the loadbalancer IP and you should see following screen:

  • URL should be :

    • https://localhost OR https://<LoadBalancerIP>
    • Click on AZURETEST and it should authenticate your with AzureAD

    Login Page

argocd-dex's People

Contributors

tiwarisanjay avatar

Stargazers

EMMANUEL-RONOH avatar Yannam C Chiranjeevi avatar Chris Diehl avatar

Watchers

Andrew Rothstein avatar  avatar

Forkers

eliodevbr doraa7

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.