Skip to content

MAD-Roadshow-France-2023/gitops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitOps Artefacts for the MAD Roadshow France 2023

Deploy OpenShift resources with OpenShift GitOps

  • Install the OpenShift GitOps operator.

  • Fix the ArgoCD ingress route in order to use the router default TLS certificate.

oc patch argocd openshift-gitops -n openshift-gitops -p '{"spec":{"server":{"insecure":true,"route":{"enabled": true,"tls":{"termination":"edge","insecureEdgeTerminationPolicy":"Redirect"}}}}}' --type=merge
  • Get the Webhook URL of your OpenShift Gitops installation
oc get route -n openshift-gitops openshift-gitops-server -o jsonpath='https://{.spec.host}/api/webhook'
  • Add a webhook to your GitHub/GitLab repo

    • Payload URL: url above
    • Content-Type: Application/json
  • Give cluster-admin access rights to the OpenShift Gitops operator.

oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller
cp infrastructure.yaml.sample infrastructure.yaml
oc apply -f infrastructure.yaml -n openshift-gitops