From b6f7231339ee4673bccb3bc5225386f89a51b978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Mon, 12 Jan 2026 21:03:48 +0000 Subject: [PATCH] modified: README.md new file: manifests/nginx-simple-deployment.yaml --- README.md | 12 ++++++ manifests/nginx-simple-deployment.yaml | 57 ++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 manifests/nginx-simple-deployment.yaml diff --git a/README.md b/README.md index 9a790d4..f27c9fa 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, - [Resources](#resources) - [Persistent volumes claims](#persistent-volumes-claims) - [Services Accounts](#services-accounts) +- [Namespaces](#namespaces) - [Secrets](#secrets) - [Manifest - Opaque / Base64](#manifest---opaque--base64) - [Manifest - StringData](#manifest---stringdata) @@ -280,6 +281,17 @@ kubectl get secret -o jsonpath='{.data.token}' | base64 -d > ./ser kubectl config view --raw -o jsonpath='{.clusters[0].cluster.certificate-authority-data}' ``` +## Namespaces + +``` yaml +apiVersion: v1 +kind: Namespace +metadata: + name: namespace-name + labels: + name: namespace-name +``` + ## Secrets ### Manifest - Opaque / Base64 diff --git a/manifests/nginx-simple-deployment.yaml b/manifests/nginx-simple-deployment.yaml new file mode 100644 index 0000000..6ea529a --- /dev/null +++ b/manifests/nginx-simple-deployment.yaml @@ -0,0 +1,57 @@ +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:latest + ports: + - containerPort: 80 + volumeMounts: + - name: html + mountPath: /usr/share/nginx/html + volumes: + - name: html + configMap: + name: nginx-html +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: nginx-html + namespace: tests +data: + index.html: | + + + + Hello World + + +

Hello, World!

+ + + +--- + +apiVersion: v1 +kind: Service +metadata: + name: nginx-service +spec: + selector: + app: nginx + ports: + - protocol: TCP + port: 80 + targetPort: 80 \ No newline at end of file