Let’s create the DJ App!
To create the prod namespace, issue the following command:
kubectl apply -f 1_create_the_initial_architecture/1_prod_ns.yaml
Output should be similar to:
Now that we have the prod namespace created, we’ll deploy the DJ App (dj, metal, and jazz microservices) into it.
Create the DJ App deployment in the prod namespace by issuing the following command:
kubectl apply -nprod -f 1_create_the_initial_architecture/1_initial_architecture_deployment.yaml
Output should be similar to:
Create the services that front these deployments by issuing the following command:
kubectl apply -nprod -f 1_create_the_initial_architecture/1_initial_architecture_services.yaml
Output should be similar to:
Let’s verify everything has been setup correctly by getting all resources from the prod namespace. Issue this command:
kubectl get all -nprod
Output should display dj, jazz, and metal pods, services, deployments, and replica sets, similar to:
Once you’ve verified all resources have been created correctly in the prod namespace, next we’ll test out this initial version of the DJ App.