modified: nginx/nginx-deployment.yml

This commit is contained in:
Sangmin Kim 2024-03-27 15:52:26 +09:00
parent 6eb18117fd
commit b003482af6
3 changed files with 10 additions and 24 deletions

View File

@ -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? Bob ->> Alice: Do you have any prefered web server software, like apache or nginx?
Alice ->> Bob: nginx would be good. Alice ->> Bob: nginx would be good.
Bob ->> Alice: Do you need any other softwares? 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. > 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? Bob ->> Alice: We use Kubernetes for labs by default. Would it be ok with you?
Alice ->> Bob: What other choices do I have? 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. Alice ->> Bob: Alright. I will go with Kubernetes.
``` ```
> Bob will use Kubernetes unless Alice has a compelling reason to use other infrastructure. > 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 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 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. > Alice validates the environment by end-to-end test.

View File

@ -33,10 +33,10 @@ spec:
port: 80 port: 80
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 10 periodSeconds: 10
# volumeMounts: volumeMounts:
# - name: vol0001 - name: vol0001
# mountPath: /usr/share/nginx/html mountPath: /usr/share/nginx/html
# volumes: volumes:
# - name: vol0001 - name: vol0001
# persistentVolumeClaim: persistentVolumeClaim:
# claimName: pvc0001 claimName: pvc0001

View File

@ -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