From caba91e6936e9e26204ba597cde1f2c9d4df9380 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 22 Nov 2024 12:57:00 +0100 Subject: [PATCH] Dejo solo buildconfig y fuentes --- NginxHelloWorld/Dockerfile | 8 -------- NginxHelloWorld/creaTodo.sh | 6 ------ NginxHelloWorld/deployment.yaml | 25 ------------------------- NginxHelloWorld/deployment2.yaml | 31 ------------------------------- NginxHelloWorld/paraTodo.sh | 5 ----- NginxHelloWorld/route.yaml | 16 ---------------- NginxHelloWorld/service.yaml | 16 ---------------- 7 files changed, 107 deletions(-) delete mode 100644 NginxHelloWorld/Dockerfile delete mode 100644 NginxHelloWorld/creaTodo.sh delete mode 100644 NginxHelloWorld/deployment.yaml delete mode 100644 NginxHelloWorld/deployment2.yaml delete mode 100644 NginxHelloWorld/paraTodo.sh delete mode 100644 NginxHelloWorld/route.yaml delete mode 100644 NginxHelloWorld/service.yaml diff --git a/NginxHelloWorld/Dockerfile b/NginxHelloWorld/Dockerfile deleted file mode 100644 index 2e1ce25..0000000 --- a/NginxHelloWorld/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM ubuntu:latest -RUN apt update && \ - apt install -y nginx vim - -COPY index.html /usr/share/nginx/html -COPY nginx.conf /etc/nginx/nginx.conf - -CMD /usr/sbin/nginx -g 'daemon off;' diff --git a/NginxHelloWorld/creaTodo.sh b/NginxHelloWorld/creaTodo.sh deleted file mode 100644 index 0abea50..0000000 --- a/NginxHelloWorld/creaTodo.sh +++ /dev/null @@ -1,6 +0,0 @@ -oc create -f buildconfig.yaml -oc create imagestream nginx-hello-world -oc start-build nginx-hello-world --from-dir=./ --follow -oc create -f deployment2.yaml -oc create -f service.yaml -oc create -f route.yaml diff --git a/NginxHelloWorld/deployment.yaml b/NginxHelloWorld/deployment.yaml deleted file mode 100644 index 36530a6..0000000 --- a/NginxHelloWorld/deployment.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nginx-hello-world - labels: - app: nginx-hello-world -spec: - replicas: 3 - selector: - matchLabels: - app: nginx-hello-world - template: - metadata: - labels: - app: nginx-hello-world - spec: - containers: - - name: nginx - image: "image-registry.openshift-image-registry.svc:5000/miproyecto/nginx-hello-world" - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - tty: true - stdin: true - serviceAccount: default - terminationGracePeriodSeconds: 5 diff --git a/NginxHelloWorld/deployment2.yaml b/NginxHelloWorld/deployment2.yaml deleted file mode 100644 index 4bcd15f..0000000 --- a/NginxHelloWorld/deployment2.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nginx-hello-world - labels: - app: nginx-hello-world -spec: - replicas: 1 - selector: - matchLabels: - app: nginx-hello-world - template: - metadata: - labels: - app: nginx-hello-world - spec: - containers: - - name: nginx-hello-world - image: "image-registry.openshift-image-registry.svc:5000/miproyecto/nginx-hello-world" - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - tty: true - stdin: true - serviceAccount: default - volumeMounts: - - mountPath: /usr/share/nginx/html - name: html-volume - volumes: - - name: html-volume - persistentVolumeClaim: - claimName: miproyecto-claim diff --git a/NginxHelloWorld/paraTodo.sh b/NginxHelloWorld/paraTodo.sh deleted file mode 100644 index 8a9a9ac..0000000 --- a/NginxHelloWorld/paraTodo.sh +++ /dev/null @@ -1,5 +0,0 @@ -oc delete buildconfig nginx-hello-world -oc delete imagestream nginx-hello-world -oc delete deployment nginx-hello-world -oc delete service nginx-hello-world -oc delete route nginx-hello-world diff --git a/NginxHelloWorld/route.yaml b/NginxHelloWorld/route.yaml deleted file mode 100644 index 879c77a..0000000 --- a/NginxHelloWorld/route.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - name: nginx-hello-world -spec: - # hostname: foo.apps.CLUSTER.ccs.ornl.gov - port: - targetPort: nginx - tls: - insecureEdgeTerminationPolicy: Redirect - termination: edge - to: - kind: Service - name: nginx-hello-world - weight: 100 - wildcardPolicy: None diff --git a/NginxHelloWorld/service.yaml b/NginxHelloWorld/service.yaml deleted file mode 100644 index 0bf458d..0000000 --- a/NginxHelloWorld/service.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app: nginx-hello-world - name: nginx-hello-world -spec: - ports: - - name: nginx - port: 80 - protocol: TCP - targetPort: 8080 - selector: - app: nginx-hello-world - sessionAffinity: None - type: ClusterIP