Skip to content

Tournament Service Install & Config

noelo edited this page Sep 13, 2020 · 1 revision

Create project

oc new-project petbattle

Install requisite operators

  • Infinispan
  • Cert-Utils
  • Keycloak

Create Keycloak instance

oc apply -f keycloak-instance.yml

Create the Keycloak realm

oc apply -f src/main/ocp-resources/keycloak-realm.yml

Create the Keycloak client

oc apply -f src/main/ocp-resources/keycloak-client.yml

To view the admin password

kubectl get secret credential-pbkeycloak -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}'

Create Infinispan instance with custom credentials

kubectl create secret generic --from-file=identities.yaml tournament-cache-authsecret

Patch the infinispan csv to use the working operator and server image

`

            - name: DEFAULT_IMAGE

              value: quay.io/infinispan/server:11.0.3.Final-2

            image: quay.io/infinispan/operator:latest 

`

oc apply -f infinispan-setup.yml

Create MongoDB via Helm

helm repo add bitnami https://charts.bitnami.com/bitnami

helm install tournamentdb bitnami/mongodb --set podSecurityContext.fsGroup=1000570000,containerSecurityContext.runAsUser=1000570000,auth.enabled=true,auth.password=tpassword,auth.username=tuser,auth.database=tauth

Create ConfigMap with truststore

oc apply -f truststore-cm.yml

Clone this wiki locally