Agregando el ejercicio de la clase 3
This commit is contained in:
parent
edc2953082
commit
806f342235
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
BIN
Clase 3/.DS_Store
vendored
Normal file
Binary file not shown.
47
Clase 3/Ejercicio/hello-app/hello-app.yaml
Normal file
47
Clase 3/Ejercicio/hello-app/hello-app.yaml
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user