add first yaml for lab1

This commit is contained in:
Cedric Girard 2020-01-08 09:26:03 +01:00
parent 37a414f8b6
commit 26b06ad1ec
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: lab1
# vim: set ts=2 sw=2 et:

View 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: