initial: add day one instructions

Also, add instructions to execute this repo.
This commit is contained in:
2024-05-09 12:45:44 +00:00
commit 8a320542e3
5 changed files with 88 additions and 0 deletions

23
day-001/README.md Normal file
View File

@@ -0,0 +1,23 @@
# Descomplicando `Kubernetes` - Dia 01
## Criando o _cluster_ com [`kind`][kind]
Para subir o _cluster_ com as [configurações especificadas][kind-config], executaremos:
```bash
kind create cluster --config ./kind-cluster.yml --name dk8s-day-001
```
## _Deploy_ do `pod` aplicando o manifesto
Com o _cluster_ rodando, podemos subir um novo `pod` usando o comando:
```bash
kubectl apply -f pod.yml
```
[Voltar para o `README`][readme]
[kind]: https://kind.sigs.k8s.io/
[kind-config]: ./kind/kind-cluster.yml
[readme]: ../README.md

View File

@@ -0,0 +1,7 @@
---
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
- role: worker
- role: worker

18
day-001/pod.yml Normal file
View File

@@ -0,0 +1,18 @@
---
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: server
name: server
spec:
containers:
- image: nginx
name: server
ports:
- containerPort: 80
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}