add first yaml for lab1
This commit is contained in:
parent
37a414f8b6
commit
26b06ad1ec
2 changed files with 29 additions and 0 deletions
7
01_nginx/yaml/01_namespace.yaml
Normal file
7
01_nginx/yaml/01_namespace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: lab1
|
||||
|
||||
# vim: set ts=2 sw=2 et:
|
22
01_nginx/yaml/02_deployment.yaml
Normal file
22
01_nginx/yaml/02_deployment.yaml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:stable
|
||||
ports:
|
||||
- containerPort: 80
|
||||
|
||||
# vim: set ts=2 sw=2 et:
|
Loading…
Reference in a new issue