I would like run a local Maven proxy with JFrog on my Microk8s instance. I get the following error message:
ERROR: Max number of open files 1024, is too low. Cannot run Artifactory!
My deployment yaml file looks like this:
apiVersion: apps/v1
kind: Deployment
metadata:
name: jfrog
spec:
selector:
matchLabels:
app: jfrog
template:
metadata:
labels:
app: jfrog
spec:
containers:
- name: jfrog
image: docker.bintray.io/jfrog/artifactory-oss:latest
env:
- name: TZ
value: Europe/Berlin
- name: EXTRA_JAVA_OPTIONS
value: -Dartifactory.maven.suppressPomConsistencyChecks=true
ports:
- name: http
containerPort: 8081
protocol: TCP
resources:
limits:
cpu: 400m
memory: 2Gi
requests:
cpu: 200m
memory: 512Mi
The recommended setting for open files is 32000
and the minimum to get the services started is 10000
. The container image for JFrog is started as a non-root user. Anyone an idea how to solve this problem?
Thank you in advance
Comment out the following line in /etc/sysconfig/docker:
OPTIONS="--default-ulimit nofile=1024:4096"