This commit is contained in:
26
File/Yaml/nginx-deployment-v2.yaml
Normal file
26
File/Yaml/nginx-deployment-v2.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment-2
|
||||
namespace: default
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
version: v2
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: registry.cn-hangzhou.aliyuncs.com/offends/demo:nginx-alpine-v2
|
||||
ports:
|
||||
- containerPort: 80
|
||||
Reference in New Issue
Block a user