From b003482af689902467ddf8213970f9d27c0227a8 Mon Sep 17 00:00:00 2001 From: Sangmin Kim Date: Wed, 27 Mar 2024 15:52:26 +0900 Subject: [PATCH] modified: nginx/nginx-deployment.yml --- README.md | 6 +++--- nginx/nginx-deployment.yml | 14 +++++++------- nginx/nginx-route.yml | 14 -------------- 3 files changed, 10 insertions(+), 24 deletions(-) delete mode 100644 nginx/nginx-route.yml diff --git a/README.md b/README.md index 4ad64e9..9f292ee 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Sample client: https://training.akamai.com/ewp Bob ->> Alice: Do you have any prefered web server software, like apache or nginx? Alice ->> Bob: nginx would be good. Bob ->> Alice: Do you need any other softwares? -Alice ->> Bob: No, I'm good. I have my own web content files.(html, css, js, images,...) +Alice ->> Bob: Yes. Please install python3. And I have my own web content files.(html, css, js, images,...) ``` > Bob can install other softwares or tools such as **akamai cli**, based on the lab scenario. > @@ -40,7 +40,7 @@ Alice ->> Bob: No, I'm good. I have my own web content files.(html, css, js, ima ``` Bob ->> Alice: We use Kubernetes for labs by default. Would it be ok with you? Alice ->> Bob: What other choices do I have? -Bob ->> Alice: You can select a virtual machine or docker. However, Kubernetes are superior to them in availability and scalability. +Bob ->> Alice: You can select a virtual machine or docker. However, Kubernetes is better when it comes to availability and scalability. Alice ->> Bob: Alright. I will go with Kubernetes. ``` > Bob will use Kubernetes unless Alice has a compelling reason to use other infrastructure. @@ -73,7 +73,7 @@ cd traefik kubectl apply -f 00-account.yml -f 00-role.yml -f 01-role-binding.yml -f 02-traefik.yml -f 02-traefik-services.yml cd ../nginx -kubectl apply -f nginx-deployemt.yml -f nginx-service.yml -f nginx-ext.yml -f nginx-ingress.yml +kubectl apply -f nginx-deployemt.yml -f nginx-service.yml -f nginx-ext.yml -f nginx-ingress.yml -f pv.yml -f pvc.yml ``` > Alice validates the environment by end-to-end test. \ No newline at end of file diff --git a/nginx/nginx-deployment.yml b/nginx/nginx-deployment.yml index 1a4cf63..ac86bff 100644 --- a/nginx/nginx-deployment.yml +++ b/nginx/nginx-deployment.yml @@ -33,10 +33,10 @@ spec: port: 80 initialDelaySeconds: 5 periodSeconds: 10 - # volumeMounts: - # - name: vol0001 - # mountPath: /usr/share/nginx/html - # volumes: - # - name: vol0001 - # persistentVolumeClaim: - # claimName: pvc0001 + volumeMounts: + - name: vol0001 + mountPath: /usr/share/nginx/html + volumes: + - name: vol0001 + persistentVolumeClaim: + claimName: pvc0001 diff --git a/nginx/nginx-route.yml b/nginx/nginx-route.yml deleted file mode 100644 index c6f4bd6..0000000 --- a/nginx/nginx-route.yml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: nginxir - namespace: juiceshop -spec: - entryPoints: - - web - routes: - - match: Host(`whoami.172.233.166.227.nip.io`) && PathPrefix(`/`) - kind: Rule - services: - - name: nginx - port: 80 \ No newline at end of file