Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐈 Make Pet Battle deployment part of this chart #107

Open
springdo opened this issue Mar 21, 2022 · 1 comment
Open

🐈 Make Pet Battle deployment part of this chart #107

springdo opened this issue Mar 21, 2022 · 1 comment

Comments

@springdo
Copy link
Contributor

springdo commented Mar 21, 2022

As per the feedback / convo with Matt and co the other day. It would be great to have Pet Battle deploy to it's own namespace on each cluster deployment. This can give the attendees time to play with it and explore while we're setting the scene with the pet-battle lightning talk

image

FYI - @jfilipcz / @eformat / @mtakane / @ckavili / @oybed

@eformat
Copy link
Member

eformat commented Mar 22, 2022

ok, am dropping in the instructions for pet battle deploy here .. this will need automating of course.

we can also use the fast forward app perhaps ? which will create a full team environment upto end of Chapter.2 in the tech exercises.

https://github.com/eformat/tl500-teamsters

git clone https://github.com/petbattle/pet-battle-infra
helm upgrade --install keycloak ./pet-battle-infra/keycloak --namespace pb --create-namespace
cat <<'EOF' | oc apply -f-
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: pb-og
  namespace: pb
spec:
  targetNamespaces: 
    - pb
EOF
helm upgrade --install pet-battle-api petbattle/pet-battle-api --version=1.2.1 --namespace pb
export TEAM_NAME=pb
export CLUSTER_DOMAIN=$(oc get ingress.config/cluster -o 'jsonpath={.spec.domain}')
wget https://raw.githubusercontent.com/petbattle/pet-battle/master/chart/values.yaml
export JSON="'"'{
        "catsUrl": "https://pet-battle-api-'${TEAM_NAME}'.'${CLUSTER_DOMAIN}'",
        "tournamentsUrl": "https://pet-battle-tournament-'${TEAM_NAME}'.'${CLUSTER_DOMAIN}'",
        "matomoUrl": "https://matomo-'${TEAM_NAME}'-ci-cd.'${CLUSTER_DOMAIN}'/",
        "keycloak": {
          "url": "https://keycloak-'${TEAM_NAME}'.'${CLUSTER_DOMAIN}'/auth/",
          "realm": "pbrealm",
          "clientId": "pbclient",
          "redirectUri": "http://localhost:4200/tournament",
          "enableLogging": true
        }
      }'"'"
yq e '.config_map = env(JSON)' -i values.yaml
helm upgrade --install pet-battle petbattle/pet-battle --version=1.0.6 -f values.yaml --namespace pb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants