modified: nginx/nginx-deployment.yml
This commit is contained in:
parent
6eb18117fd
commit
b003482af6
|
@ -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.
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue