Git Product home page Git Product logo

cloud-tests's Introduction

CRC details

After crc start:

Started the OpenShift cluster.

The server is accessible via web console at:
  https://console-openshift-console.apps-crc.testing

Log in as administrator:
  Username: kubeadmin
  Password: MF2PA-QvXQ9-kU6cs-X9rD9 # changes every time

  oc login -u kubeadmin https://api.crc.testing:6443

Log in as user:
  Username: developer
  Password: developer

Use the 'oc' command line interface:
  > @FOR /f "tokens=*" %i IN ('crc oc-env') DO @call %i
  > oc login -u developer https://api.crc.testing:6443

ArgoCD

The ArgoCD Application YAML:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
    name: argocd-deplo-test
spec:
    destination:
        name: in-cluster
        namespace: argo-deplo-ns
        server: ''
    source:
        path: nodejs-deployment
        repoURL: 'https://github.com/lcrespom/cloud-tests.git'
        targetRevision: HEAD
        directory:
            recurse: true
    project: default
    syncPolicy:
        syncOptions:
            - CreateNamespace=true

Getting the admin password

oc extract secret/openshift-gitops-cluster -n openshift-gitops --to=-

Synchronize error

See workaround here: https://access.redhat.com/solutions/6447811

oc adm policy add-role-to-user admin system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller -n argo-deplo-ns

The namespace of the above command must match with the spec.destination.namespace field of the above yaml.

cloud-tests's People

Contributors

lcrespom avatar

Watchers

 avatar  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.