Agregando el ejercicio de la clase 3

This commit is contained in:
Alejandro Lembke Barrientos 2022-09-07 12:28:50 -06:00
parent edc2953082
commit 806f342235
4 changed files with 49 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
CuestionarioKubernetes.docx
Videos de Clase
Hojas de Asistencia
Clase 3
Clase 3/Clase 3.pptx
Clase 3/Ejercicio/nginx-app

BIN
Clase 3/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,47 @@
apiVersion: v1
kind: Namespace
metadata:
name: hello
---
apiVersion: v1
kind: Service
metadata:
name: my-hello-svc
namespace: hello
labels:
app: hello
spec:
type: ClusterIP
selector:
app: hello
ports:
- port: 80
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-hello
namespace: hello
labels:
app: hello
spec:
replicas: 2
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello
image: gcr.io/google-samples/hello-app:1.0
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 8080