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.
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.
- Which ingress-controller are you using? You need ingress-controller with LoadBalancer service installed to create ingress and serve domain based sites.
- How to add custom domain? FAQ | ERPNext Helm Chart (It assumes you are using Welcome - NGINX Ingress Controller)
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