From a972254622025c6bc0b4fea8f2301700685bc209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Sat, 24 Sep 2022 10:53:17 +0200 Subject: [PATCH] doc --- SETUP.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 SETUP.md diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 0000000..ee72787 --- /dev/null +++ b/SETUP.md @@ -0,0 +1,49 @@ +# Setup + +## OpenShift Platform + +* Install the OpenShift Pipeline operator +* Install the OpenShift Virtualization operator +* Install the Red Hat OpenShift GitOps operator +* Install the Red Hat OpenShift Serverless operator +* Create a KnativeServing CR in the knative-serving namespace +* Deploy Let's Encrypt public certificates on your router +* Create an HyperConverged CR in the openshift-cnv namespace +* Create/update the StorageProfile + +```yaml +apiVersion: cdi.kubevirt.io/v1beta1 +kind: StorageProfile +metadata: + name: managed-nfs-storage +spec: + claimPropertySets: + - accessModes: + - ReadWriteOnce + - ReadWriteMany + - ReadOnlyMany + volumeMode: Filesystem + cloneStrategy: copy + storageClass: managed-nfs-storage +``` + +## GitHub + +* Create a personal access token with access to all your public repos +* Store the personal access token in a secret + +```sh +m4 -D__GITHUB_TOKEN__=REDACTED secret.yaml | oc apply -f - -n demo-appdev +``` + +* Get the route hostname of your Tekton Listener + +```sh +oc get route -n demo-appdev el-demo-appdev -o jsonpath='{.spec.host}' +``` + +* Add a webhook to your GitHub repo + + * Payload URL: `https://` + * Content-Type: Application/json + * Secret: `secret`