initial: add day one instructions
Also, add instructions to execute this repo.
This commit is contained in:
23
day-001/README.md
Normal file
23
day-001/README.md
Normal 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
|
7
day-001/kind/kind-cluster.yml
Normal file
7
day-001/kind/kind-cluster.yml
Normal 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
18
day-001/pod.yml
Normal 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: {}
|
Reference in New Issue
Block a user