In case there is a need to directly expose Frappe/EPRNext instead of using ingress controller, add a service like following:
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/scw-loadbalancer-protocol-http: "true"
name: frappe-bench-erpnext-lb
namespace: erpnext
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 8080
- name: https
port: 443
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/instance: frappe-bench-nginx
app.kubernetes.io/name: erpnext-nginx
type: LoadBalancer
Notes:
- Change
metadata.name
,metadata.annotations
,metadata.namespace
,spec.selector
as per your setup. - The above yaml assumes you’ve installed Helm Release called
frappe-bench
under namespaceerpnext