<<<<<<< HEAD
- Lab1 uses the manifests folder. see manifest-solution for a completed solution.
- Other Labs Other labs have their own folders (Lab2, Lab3 etc.)
=======
5f088949ba130133d0851b0ed0eda367cc5170e4
- Clone the repo
git clone https://github.com/IBT-learning/kubernetes-python-flask
Remember your minikube commands. Here is how to delete the cluster and start a fresh one. Remember docker needs to be running before minikube will work.
minikube delete
minikube start
<<<<<<< HEAD The solution is is in the solution1 folder. Try filling out the deployment,namnespaces and services.yml files in the manifests folder. You can use the solution1 folder as a reference. If you run into problems you can always just copy over the files from the solution1 folder.
The solution is is in the solution1 folder. Try filling out the deployment, namespaces and services.yml files in the manifests folder. You can use the solution1 folder as a reference. If you run into problems you can always just copy over the files from the solution1 folder.
5f088949ba130133d0851b0ed0eda367cc5170e4
- Start with creating the namespaces first. This will create the namespaces for the application. Namespaces need to be created first because the other resources will be created in the namespaces.
kubectl apply -f ./manifests/namespaces.yml
- Now start filling out the deployment.yml file. Once complete run the command:
kubectl apply -f ./manifests/deployment.yml
- Once the deployment is created, create the service.
kubectl apply -f ./manifests/services.yml
- Check out the resources you have created
kubectl get all -n dev
- Want to test a connection to the application? You can use minikube service command to get the url to the application. The --all flag will list all the services in the cluster. The -n flag will list the services in the namespace.
minikube service --all -n dev
- Want to make changes to any of the manifests and apply them all?
kubectl apply -f ./manifests/
The above command will apply ALL the manifests in the manifests folder.
5f088949ba130133d0851b0ed0eda367cc5170e4