提交 a8df0a95 作者: 余乾开

feat(config):log

上级 893d1010
# nginx
FROM nginx:alpine
VOLUME ["/var/log/nginx/"]
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
# Set working directory to nginx asset directory
WORKDIR /var/www/html/h5/
# Remove default nginx static assets
......
......@@ -4,7 +4,7 @@ metadata:
name: h5-deployment
namespace: default
spec:
# minReadySeconds: 250
minReadySeconds: 5
revisionHistoryLimit: 2
replicas: 1
selector:
......@@ -18,9 +18,16 @@ spec:
containers:
- name: h5
image: REGISTRY/NAMESPACE/IMAGE:TAG
volumeMounts:
- name: log-of-nginx
mountPath: /var/log/nginx
resources:
limits:
memory: 256Mi
cpu: 100m
ports:
- containerPort: 80
\ No newline at end of file
- containerPort: 80
volumes:
- name: log-of-nginx
hostPath:
path: /var/log/nginx
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论