提交 a8df0a95 作者: 余乾开

feat(config):log

上级 893d1010
# nginx # nginx
FROM nginx:alpine 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 # Set working directory to nginx asset directory
WORKDIR /var/www/html/h5/ WORKDIR /var/www/html/h5/
# Remove default nginx static assets # Remove default nginx static assets
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: h5-deployment name: h5-deployment
namespace: default namespace: default
spec: spec:
# minReadySeconds: 250 minReadySeconds: 5
revisionHistoryLimit: 2 revisionHistoryLimit: 2
replicas: 1 replicas: 1
selector: selector:
...@@ -18,9 +18,16 @@ spec: ...@@ -18,9 +18,16 @@ spec:
containers: containers:
- name: h5 - name: h5
image: REGISTRY/NAMESPACE/IMAGE:TAG image: REGISTRY/NAMESPACE/IMAGE:TAG
volumeMounts:
- name: log-of-nginx
mountPath: /var/log/nginx
resources: resources:
limits: limits:
memory: 256Mi memory: 256Mi
cpu: 100m cpu: 100m
ports: ports:
- containerPort: 80 - containerPort: 80
volumes:
- name: log-of-nginx
hostPath:
path: /var/log/nginx
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论