apiVersion: apps/v1
kind: Deployment
metadata:
annotations: {}
labels:
workload.user.cattle.io/workloadselector: deployment-nginx
name: nginx
namespace: dev
spec:
replicas: 1
selector:
matchLabels:
workload.user.cattle.io/workloadselector: deployment-nginx
template:
metadata:
labels:
workload.user.cattle.io/workloadselector: deployment-nginx
spec:
containers:
- image: 192.168.10.100:30100/nginx
imagePullPolicy: IfNotPresent
name: nginx
ports:
- containerPort: 80
name: tcp80
protocol: TCP
volumeMounts:
- mountPath: "/etc/nginx/conf.d"
name: vol1
subPath: nginx/config
restartPolicy: Always
volumes:
- name: vol1
persistentVolumeClaim:
claimName: nginx-pvc
nginx.conf
server {
listen 80;
server_name_in_redirect on;
# 系统清单服务代理
location / {
root /www/root/html/;
}
}
Content type
Image
Digest
Size
54.1 MB
Last updated
over 4 years ago
docker pull wangzhiwei/nginx