我想在我的 Microk8s 实例上使用 JFrog 运行本地 Maven 代理。我收到以下错误消息:
ERROR: Max number of open files 1024, is too low. Cannot run Artifactory!
我的部署 yaml 文件如下所示:
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
打开文件的推荐设置为32000
,启动服务的最低设置为10000
. JFrog 的容器映像以非 root 用户身份启动。有人知道如何解决这个问题吗?
先感谢您