第1章 nginx配置文件yaml
1.1 nginx _rc文件 (rc资源类型)
cat nginx_rc.yaml apiVersion: v1 kind: ReplicationController metadata: name: nginx4 spec: replicas: 1 selector: app: nginx4 template: metadata: labels: app: nginx4 spec: containers: - name: nginx4 image: 10.0.0.10:5000/nginx:v2 ports: - containerPort: 80 volumeMounts: - mountPath: /usr/local/nginx/html name: web volumes: - hostPath: path: /root/test name: web
转载于:https://blog.51cto.com/fenyuer/2153733