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.
|
|
3 years ago | |
|---|---|---|
| infrastructure | 3 years ago | |
| kustomize/postgres | 3 years ago | |
| .gitignore | 3 years ago | |
| README.md | 3 years ago | |
| infrastructure.yaml.sample | 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-devnamespace 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
- Create a namespace preprod-database
- Install the crunchyDB operator
- run oc apply -k kustomize/postgres
More details here : https://access.crunchydata.com/documentation/postgres-operator/5.3.1/quickstart/