mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 00:55:10 +00:00
fix: improve resources and readme
This commit is contained in:
parent
f4d0affd44
commit
5cacf65887
10 changed files with 10 additions and 22 deletions
|
|
@ -26,8 +26,8 @@ Notes:
|
|||
Cert Manager can be used to automate Letsencrypt certificate management.
|
||||
During Creation of new ingress, cert-manager annotations are used.
|
||||
|
||||
[Installation](https://cert-manager.io/docs/installation/kubernetes/)
|
||||
[Configure Issuer](https://cert-manager.io/docs/installation/kubernetes/#configuring-your-first-issuer)
|
||||
- [Installation](https://cert-manager.io/docs/installation/kubernetes/)
|
||||
- [Configure Issuer](https://cert-manager.io/docs/installation/kubernetes/#configuring-your-first-issuer)
|
||||
|
||||
## Prepare MariaDB
|
||||
|
||||
|
|
@ -147,7 +147,7 @@ kubectl create namespace erpnext
|
|||
helm repo add erpnext https://helm.erpnext.com/repo
|
||||
helm repo update
|
||||
|
||||
helm install frappe-bench-0001 --namespace erpnext-v12 erpnext \
|
||||
helm install frappe-bench-0001 --namespace erpnext erpnext-v12 \
|
||||
--set mariadbHost=mariadb.mariadb.svc.cluster.local \
|
||||
--set persistence.storageClass=rook-cephfs
|
||||
```
|
||||
|
|
|
|||
|
|
@ -32,13 +32,7 @@ spec:
|
|||
- name: sites-dir
|
||||
mountPath: /home/frappe/frappe-bench/sites
|
||||
imagePullPolicy: {{ .Values.pythonImage.pullPolicy }}
|
||||
command: ["docker-entrypoint.sh"]
|
||||
args: ["schedule"]
|
||||
{{ if .Values.runAsRoot }}
|
||||
env:
|
||||
- name: "RUN_AS_ROOT"
|
||||
value: "1"
|
||||
{{ end }}
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ spec:
|
|||
- name: sites-dir
|
||||
mountPath: /home/frappe/frappe-bench/sites
|
||||
imagePullPolicy: {{ .Values.pythonImage.pullPolicy }}
|
||||
command: ["docker-entrypoint.sh"]
|
||||
args: ["worker"]
|
||||
env:
|
||||
- name: "WORKER_TYPE"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ spec:
|
|||
- name: sites-dir
|
||||
mountPath: /home/frappe/frappe-bench/sites
|
||||
imagePullPolicy: {{ .Values.pythonImage.pullPolicy }}
|
||||
command: ["docker-entrypoint.sh"]
|
||||
args: ["worker"]
|
||||
env:
|
||||
- name: "WORKER_TYPE"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ spec:
|
|||
- name: sites-dir
|
||||
mountPath: /home/frappe/frappe-bench/sites
|
||||
imagePullPolicy: {{ .Values.pythonImage.pullPolicy }}
|
||||
command: ["docker-entrypoint.sh"]
|
||||
args: ["worker"]
|
||||
env:
|
||||
- name: "WORKER_TYPE"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: migrate-sites-1587307712
|
||||
name: migrate-sites-{{ template "erpnext.fullname" . }}-{{ date "20060102150405" .Release.Time }}
|
||||
spec:
|
||||
backoffLimit: 1
|
||||
template:
|
||||
|
|
@ -11,8 +11,8 @@ spec:
|
|||
supplementalGroups: [1000]
|
||||
containers:
|
||||
- name: erpnext
|
||||
image: frappe/erpnext-worker:v12
|
||||
command: ["migrate"]
|
||||
image: "{{ .Values.pythonImage.repository }}:{{ .Values.pythonImage.tag }}"
|
||||
args: ["migrate"]
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: sites-dir
|
||||
|
|
@ -21,6 +21,6 @@ spec:
|
|||
volumes:
|
||||
- name: sites-dir
|
||||
persistentVolumeClaim:
|
||||
claimName: erpnext-v12
|
||||
claimName: {{ template "erpnext.fullname" . }}
|
||||
readOnly: false
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,6 @@ imagePullSecrets: []
|
|||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
# Run workers, scheduler and web as root
|
||||
runAsRoot: false
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ spec:
|
|||
containers:
|
||||
- name: erpnext
|
||||
image: frappe/erpnext-worker:${VERSION}
|
||||
command: "backup"
|
||||
args: ["backup"]
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: "WITH_FILES"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ spec:
|
|||
containers:
|
||||
- name: erpnext
|
||||
image: frappe/erpnext-worker:${VERSION}
|
||||
command: "migrate"
|
||||
args: ["migrate"]
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: sites-dir
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ spec:
|
|||
containers:
|
||||
- name: erpnext
|
||||
image: frappe/erpnext-worker:${VERSION}
|
||||
command: "new"
|
||||
args: ["new"]
|
||||
imagePullPolicy: IfNotPresent
|
||||
volumeMounts:
|
||||
- name: sites-dir
|
||||
|
|
|
|||
Loading…
Reference in a new issue