Skip to content

ONDC-Official/helm-ondc-buyer-app-chart

Repository files navigation

1. Add helm repo

helm repo add mongodb https://mongodb.github.io/helm-charts
helm repo add spotahome https://spotahome.github.io/redis-operator
helm repo add bitnami oci://registry-1.docker.io/bitnamicharts
helm repo add elastic https://helm.elastic.co/

2. Update helm repo

helm repo update

3. Install helm

helm install ondc-buyer-app-release . -f values.yaml --namespace ondc-buyer-app-pre-prod

if above does not work, we will try to bring all the charts locally and then install

mkdir -p charts
curl -L -o charts/community-operator-0.9.0.tgz https://github.com/mongodb/helm-charts/releases/download/community-operator-0.9.0/community-operator-0.9.0.tgz
curl -L -o charts/redis-operator-3.2.9.tgz https://github.com/spotahome/redis-operator/releases/download/Chart-3.2.9/redis-operator-3.2.9.tgz
curl -L -o charts/rabbitmq-cluster-operator-4.3.1.tgz https://charts.bitnami.com/bitnami/rabbitmq-cluster-operator-4.3.1.tgz
curl -L -o charts/eck-operator-2.9.0.tgz https://helm.elastic.co/helm/eck-operator/eck-operator-2.9.0.tgz
kubectl create namespace ondc-prod-prod
# uninstall
helm uninstall ondc-buyer-app-release --namespace ondc-prod-prod
kubectl create secret generic my-mongodb-admin-password --from-literal=password='mongopass123' -n ondc-prod-prod
kubectl create secret generic my-mongodb-scram-credentials -n ondc-prod-prod \
  --from-literal=password='cGFzc3dvcmQ=' \
  --from-literal=scram-sha-1='cGFzc3dvcmQ=' \
  --from-literal=scram-sha-256='cGFzc3dvcmQ=' \
  --from-literal=scram-sha-1-salt='cGFzc3dvcmQ=' \
  --from-literal=scram-sha-256-salt='cGFzc3dvcmQ='

to update the values

 helm upgrade ondc-buyer-app-release . -f values.yaml --namespace ondc-prod-prod

dscribe crd

kubectl describe mongodbcommunity --namespace ondc-prod-prod

Connect to mongo from any pod

mongosh "mongodb+srv://my-user:[email protected]/admin?ssl=true"

Get mongo password

kubectl get secret example-mongodb-admin-my-user -n ondc-prod-prod \
-o json | jq -r '.data | with_entries(.value |= @base64d)'

use set for following values

JUSPAY_WEBHOOK_PASSWORD MMI_CLIENT_SECRET AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY RAZORPAY_KEY_SECRET RAZORPAY_WEBHOOK_SECRET BHASHINI_ULCA_API_KEY DLT_PASSWORD

We have makefile to install the helm chart

One time make install

make helm-dep-up 

Make upgrade

make helm-upgrade

Make uninstall

make helm-uninstall

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published