helm repo add frappe https://helm.erpnext.com
helm pull frappe/erpnext
tar -xzvf erpnext-4.0.24.tgz
clone repository
cd k8s-manifest/
kubectl apply -f <foldername>/ -n <namespace>
Sesuaikan value storageClass
yang ada pada cluster
persistence:
worker:
enabled: true
size: 8Gi
storageClass: standard
logs:
enabled: true
size: 8Gi
storageClass: standard
Sesuaikan siteName
dengan domain
createSite:
enabled: true
forceCreate: true
siteName: "localhost"
adminPassword: "praktis2022"
installApps:
- "erpnext"
dbType: "mariadb"
dropSite:
enabled: false
forced: true
siteName: "localhost"
backup:
enabled: true
siteName: "localhost"
withFiles: true
migrate:
enabled: false
siteName: "localhost"
Sesuaikan auth pada mariadb
mariadb:
enabled: true
auth:
rootPassword: "praktis2022"
username: "praktis"
password: "praktis2022"
replicationPassword: "praktis2022"
primary:
service:
ports:
mysql: 3306
Additional config untuk external database host
dbHost: "<deployname>.<namespace>.svc.cluster.local"
dbPort: 3306
dbRootUser: root
dbRootPassword: praktis2022
cd k8s-manifest/
kubectl apply -f <foldername> -n <namespace>
cd Helm-Chart/erp-next
helm install <release name> -f values.yaml . -n <namespace>
Upgrade values.yaml
helm upgrade <release name> -f values.yaml . -n <namespace>
Cek semua resources dan pastikan semua running
Logs sukses ketika membuat sites baru
Logs sukses ketika backup sites
NOTE: Jobs backup running jika site sudah ada/dibuat.
Akses menggunakan localhost
dengan port-forward untuk login ke desk frappe
kubectl port-forward pod/<nginx-pod> -n <namespace> 8080:8080
Tampilan desk frappe