-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathingress-demo.sh
executable file
·44 lines (33 loc) · 946 Bytes
/
ingress-demo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
########################
# include the magic
########################
. ./demo-magic.sh
########################
# Configure the options
########################
#
# speed at which to simulate typing. bigger num = faster
#
TYPE_SPEED=20
#
# custom prompt
#
# see http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for escape sequences
#
DEMO_PROMPT="${GREEN}➜ ${CYAN}\W "
# text color
# DEMO_CMD_COLOR=$BLACK
# hide the evidence
clear
pei "kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml"
pei "kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s"
wait
pei "cat ingress.yml"
wait
pei "kubectl apply -f ingress.yml"
wait
pei "curl localhost:80/host"
pei "curl localhost:80/host"
pei "curl localhost:80/host"
pei "curl localhost:80/host"