-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Welcome to the quarkuscoffeeshop-helm wiki!
Install Helm
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
$ chmod 700 get_helm.sh
$ ./get_helm.sh
Login to OpenShift and create project
oc new-project <<NAMESPACE>
Install postgres-operator using deploy-postgres-operator.sh
$ curl -OL https://raw.githubusercontent.com/tosin2013/postgres-operator/main/scripts/deploy-postgres-operator.sh
$ chmod +x deploy-postgres-operator.sh
$ ./deploy-postgres-operator.sh
./deploy-postgres-operator.sh [OPTION]
Options:
-d Add domain
-t OpenShift Token
-u Uninstall deployment
To deploy postgres-operator playbooks
./deploy-postgres-operator.sh -d ocp4.example.com -o sha-123456789
To Delete postgres-operator playbooks from OpenShift
./deploy-postgres-operator.sh -d ocp4.example.com -o sha-123456789 -u true
For more Postgress deployment Options see postgres-operator
Run deploy-quarkuscoffeeshop-ansible.sh to install Red Hat AMQ and Configure Postgres on the target cluster
$ curl -OL https://raw.githubusercontent.com/quarkuscoffeeshop/quarkuscoffeeshop-ansible/dev/files/deploy-quarkuscoffeeshop-ansible.sh
$ chmod +x deploy-quarkuscoffeeshop-ansible.sh
$ cat >env.variables<<EOF
ACM_WORKLOADS=n
AMQ_STREAMS=y
CONFIGURE_POSTGRES=y
MONGODB_OPERATOR=n
MONGODB=n
HELM_DEPLOYMENT=n
EOF
$ ./deploy-quarkuscoffeeshop-ansible.sh -d ocp4.example.com -t sha-123456789 -p 123456789 -s ATLANTA
Add the Quarkus Coffee Shop Helm Chart repository
helm repo add quarkuscoffeeshop https://quarkuscoffeeshop.github.io/quarkuscoffeeshop-helm/
Check helm repo
$ helm repo list
NAME URL
quarkuscoffeeshop https://quarkuscoffeeshop.github.io/quarkuscoffeeshop-helm/
Test the helm repo
helm search repo quarkuscoffeeshop
Configure values.yml
cat >values.yml<<EOF
# Quarkus Cafe Application Variables
projectnamespace: <<NAMESPACE>>
domain: <<DOMAIN>>
kafka_cluster_name: cafe-cluster
pgsql_password: <<CHANGEPASSWORD>>
storeid: <<CHANGESTOREID>>
# Helm chart variables
Release:
Name: quarkuscoffeeshop-deployment
release-namespace: <<NAMESPACE>>
EOF
Deploy the Cluster Operator using the Helm command line tool
# Run a test of deployment
helm install quarkuscoffeeshop/quarkuscoffeeshop-charts --generate-name --values values.yml --dry-run
# Deploy quarkuscoffeeshop
helm install quarkuscoffeeshop/quarkuscoffeeshop-charts --generate-name --values values.yml
Expose routes for Web and Customermocker
The Helm chart does not currently expose the routes for our Web UI or the Customermocker service. You will need to log in and expose them using oc:
oc expose svc/quarkuscoffeeshop-web
oc expose svc/quarkuscoffeeshop-customermocker
Uninstall quarkus application
helm uninstall quarkus-cafe-deployment
Git clone repo to laptop
git clone https://github.com/quarkuscoffeeshop/quarkuscoffeeshop-helm.git
cd into quarkuscoffeeshop-helm/charts
cd quarkuscoffeeshop-helm/charts
-
Update the default values found in
quarkuscoffeeshop-helm/charts/quarkuscoffeeshop-charts/values.yaml
. -
Optional: Edit files in the
quarkuscoffeeshop-helm/charts/quarkuscoffeeshop-charts/templates
folder to modify the deployment configs.
Test Install quarkus application
helm install quarkuscoffeeshop-deployment quarkuscoffeeshop-charts/ --values quarkuscoffeeshop-charts/values.yaml --dry-run
Install quarkus application
helm install quarkuscoffeeshop-deployment quarkuscoffeeshop-charts/ --values quarkuscoffeeshop-charts/values.yaml
Expose routes for Web and Customermocker
The Helm chart does not currently expose the routes for our Web UI or the Customermocker service. You will need to log in and expose them using oc:
oc expose svc/quarkuscoffeeshop-web
oc expose svc/quarkuscoffeeshop-customermocker
Uninstall quarkus application
helm uninstall quarkuscoffeeshop-deployment