For running through the steps of the tutorial It is supposed to have a working Kubernetes cluster which serves web applications from an IP address of your host machine.
At the moment the only component that needs to be deployed outside of the cluster is the GeoAvalanche server which is not yet Docker-ready. We can compile it and deploy into an application container like Tomcat.
If you are running minikube for a local instance of kubernetes cluster then following these steps:
the result is something like
minikube: Running cluster: Running kubectl: Correctly Configured: pointing to minikube-vm at 192.168.99.100
our host IP address will be
eval $(minikube docker-env)
At this point starting an instance of PostGIS is quite simple with a
docker command and some configuration parameters for it:
docker run -p 5432:5432 --name caaml-db -e POSTGRES_PASSWORD=geonode -e GEONODE_DATABASE=geonode -e GEONODE_DATABASE_PASSWORD=geonode -e GEONODE_GEODATABASE=caaml_data -e GEONODE_GEODATABASE_PASSWORD=geonode -d geonode/postgis
Important notes are:
5432of the host
Let's start also an utility to work with the previously created database
docker run -p 54321:80 --name caaml-pgadmin4 -e PGADMIN_DEFAULT_PASSWORD=geonode -e PGADMIN_DEFAULT_EMAILfirstname.lastname@example.org -d dpage/pgadmin4
54321of the host
Login to the console:
You can then add a new connection by right-clicking on
Servers, then choicing
Fill the connection form with the values for accessing the database and give it a name i.e.
caaml_tutorial then click the
# connection parameters Hostname: 192.168.99.100 Port: 5432 Username: postgres Password: geonode
We should see something similar to this dashboard: