How to add custom domain to erpnext install using kubernetes and helm

i use this gitlab repo https://gitlab.com/castlecraft/aws-eks-erpnext to install erpnext and custom apps on AWS EKS. Now all my pods are running perfectly and everything looks smooth. How can i access my application using ip address. Furthermore how to add custom domain to access it.

1 Like

You need to explore options available for Service. Check if NodePort works for you. Make sure you execute bench use {site-name} to serve only 1 site from bench. No multi-tenancy possible in this case. If you find a way to have NodePort based multi-tenancy do share.

thank you for your response ,
in the guide, i have applied this command
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.5.1/deploy/static/provider/aws/deploy.yaml
and after installing cluster-issuer and certificate with route 53
i applied this yaml file for ingress

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: roadslink.info
  namespace: erpnext
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-wildcard
    kubernetes.io/ingress.class: nginx
spec:
  rules:
  - host: roadslink.info
    http:
      paths:
      - backend:
          service:
            name: erpnext-v13
            port:
              number: 8080
        path: /
        pathType: ImplementationSpecific
  tls:
  - hosts:
    - 'roadslink.info'
    - '*.roadslink.info'
    secretName: letsencrypt-wildcard

also , i bought this domain from godady site
and register the ip address of the vpc Elastic IP addresses in their site with A class and domain name with CNAMe

hi agian , i have solved the issue of the access from internet to cluster,
but the page return nginx error 404 not fount with https and http. also i can access the domain name only by typing www in front of domain name with no ssl secure connection ,
can any one help

if you’re using ingress nginx check redirect annotation ingress-nginx/annotations.md at main · kubernetes/ingress-nginx · GitHub

you can redirect any domain to www

thank you again for support the problem was in my ingress yaml file but all thing are working fine now , my question now is there any way i can make the erpnext internet access directly to root domain instead of subdomain

i have the following error building docker image when set --set jobs.configure.enabled=false
in helm install

Logs from

frappe-bench-ownership

in

erpnext-v13-vol-fix-20221212160444-bvck6

chown: changing ownership of ‘/home/frappe/frappe-bench/sites/.build’: Operation not permitted

chown: changing ownership of ‘/home/frappe/frappe-bench/sites/assets’: Operation not permitted

chown: changing ownership of ‘/home/frappe/frappe-bench/sites’: Operation not permitted

arguments is :
chown -R
“1000:1000”
/home/frappe/frappe-bench

how to change this in docker image