You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
pizza latest 983a34711d0d 34 seconds ago 125MB
burger latest 3b740094c254 35 seconds ago 125MB
Run kubectl command to deploy artifacts (Use the command printed on screen in step 2):
$> kubectl apply -f /Users/parkavi/Documents/Parkavi/BalKube/kubernetes/samples/sample10/target/kubernetes/burger
service/burgerep-svc created
ingress.extensions/burgerep-ingress created
deployment.apps/burger-deployment created
$ kubectl apply -f /Users/parkavi/Documents/Parkavi/BalKube/kubernetes/samples/sample10/target/kubernetes/pizza
service/pizzaep-svc created
ingress.extensions/pizzaep-ingress created
deployment.apps/foodstore created
Verify kubernetes deployment, service, secrets and ingress is deployed:
$> kubectl get pods
NAME READY STATUS RESTARTS AGE
burger-deployment-85448f5797-8wktg 1/1 Running 0 36s
foodstore-7bc59c848b-7lk5d 1/1 Running 0 11s
foodstore-7bc59c848b-8nczc 1/1 Running 0 11s
$> kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
burgerep-svc ClusterIP 10.107.127.86 <none> 9096/TCP 45s
pizzaep-svc ClusterIP 10.96.214.133 <none> 9099/TCP 45s
$> kubectl get ingress
NAME HOSTS ADDRESS PORTS AGE
burgerep-ingress burger.com 80, 443 1m
pizzaep-ingress pizza.com 80 43s
Access the hello world service with curl command:
Using ingress:
Add /etc/hosts entry to match hostname.
(127.0.0.1 is only applicable to docker for mac users. Other users should map the hostname with correct ip address
from kubectl get ingress command.)
$> curl http://pizza.com/pizzastore/pizza/menu
Pizza menu
$> curl http://burger.com/menu -k
Burger menu