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