From 26b06ad1ec994b67e114740866512a3b3111d99e Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Wed, 8 Jan 2020 09:26:03 +0100 Subject: [PATCH] add first yaml for lab1 --- 01_nginx/yaml/01_namespace.yaml | 7 +++++++ 01_nginx/yaml/02_deployment.yaml | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 01_nginx/yaml/01_namespace.yaml create mode 100644 01_nginx/yaml/02_deployment.yaml diff --git a/01_nginx/yaml/01_namespace.yaml b/01_nginx/yaml/01_namespace.yaml new file mode 100644 index 0000000..62dfe1a --- /dev/null +++ b/01_nginx/yaml/01_namespace.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: lab1 + +# vim: set ts=2 sw=2 et: diff --git a/01_nginx/yaml/02_deployment.yaml b/01_nginx/yaml/02_deployment.yaml new file mode 100644 index 0000000..f7bb43c --- /dev/null +++ b/01_nginx/yaml/02_deployment.yaml @@ -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: