You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Nicolas Massé 77ddebd8a1 wip 3 years ago
infrastructure wip 3 years ago
kustomize/postgres add pg operator deployment 3 years ago
.gitignore boilerplate 3 years ago
README.md boilerplate 3 years ago
infrastructure.yaml.sample boilerplate 3 years ago

README.md

GitOps Artefacts for the MAD Roadshow France 2023

Pre-requisites

  • 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
  • Create the required namespaces.

oc new-project fruits-dev
  • Label the fruits-dev namespace with argocd annotations
oc label namespace fruits-dev argocd.argoproj.io/managed-by=openshift-gitops
  • Give admin access rights on the fruits-dev namespace to the OpenShift Gitops operator.
oc adm policy add-role-to-user admin -n fruits-dev system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller

Deploy Postgres CrunchyDB

  1. Create a namespace preprod-database
  2. Install the crunchyDB operator
  3. run oc apply -k kustomize/postgres

More details here : https://access.crunchydata.com/documentation/postgres-operator/5.3.1/quickstart/