Skip to content

mrizkiprmn/frappe-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deployment frappe framework menggunakan Kubernetes

Prequisites Deploy menggunakan Helm

helm repo add frappe https://helm.erpnext.com
helm pull frappe/erpnext
tar -xzvf  erpnext-4.0.24.tgz

Prequisites Deploy dengan file yml

clone repository
cd k8s-manifest/
kubectl apply -f <foldername>/ -n <namespace>

values.yaml

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

Deploy manifest dengan file yaml

cd k8s-manifest/
kubectl apply -f <foldername> -n <namespace>

Install helm deploy pada Kubernetes

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

image


Logs sukses ketika membuat sites baru

image


Logs sukses ketika backup sites

image

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

image

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published