10. Kubernetes
Activity 10.01: Installing the Panoramic Trekking App on Kubernetes
Solution:
It is possible to create the database and Panoramic Trekking App with the following steps:
- Install the database with the following
helm
command:helm install database stable/postgresql --set postgresqlPassword=kubernetes
This will install multiple Kubernetes resources for PostgreSQL and show a summary as follows:
This output first lists Helm chart-related information such as name, deployment time, status, and revision, followed by information related to the PostgreSQL instance and how to access it. This is a widely accepted method in Helm charts to give such information following the installation of a chart. Otherwise, it would be difficult to learn how to connect to the applications installed by Helm.
- Create a
statefulset.yaml
file with the following content:apiVersion: apps/v1 kind: StatefulSet metadata: Â Â name: panoramic-trekking...