diff --git a/.DS_Store b/.DS_Store index 39ba509..f2af216 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 83eab2b..cc5ffdb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ CuestionarioKubernetes.docx Videos de Clase Hojas de Asistencia -Clase 3 \ No newline at end of file +Clase 3/Clase 3.pptx +Clase 3/Ejercicio/nginx-app \ No newline at end of file diff --git a/Clase 3/.DS_Store b/Clase 3/.DS_Store new file mode 100644 index 0000000..ea07b92 Binary files /dev/null and b/Clase 3/.DS_Store differ diff --git a/Clase 3/Ejercicio/hello-app/hello-app.yaml b/Clase 3/Ejercicio/hello-app/hello-app.yaml new file mode 100644 index 0000000..8aaab0c --- /dev/null +++ b/Clase 3/Ejercicio/hello-app/hello-app.yaml @@ -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 +