Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.69 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.69 KB

Clalit DevOps Task

Release Version Build Status Coverage Status

This project will set up a Flask web application with a single deployment. The main page will display "Welcome Clalit!" and it will use PostgreSQL as the database.

Prerequisites

Before installing this project, ensure you have the following tools installed:

Usage

Use the deploy.sh to deploy the project.

In order to get the URL endpoint for the deployment, run the command above:

oc get route deployment -o json | jq -r '.spec.host'
  • Insert random data, access to: https://<URL>/insert
  • Read the data from the database, access to: https://<URL>/read

Updating deployment index: First option is updating the configmap itself on-the-go aka kubectl edit configmap deployment-configmap.

Second option is updating changes in the charts/deployment/templates/configmap.yaml template. After changes, apply helm upgrade using helm upgrade --install deployment ./charts/deployment --values ./charts/deployment/values.yaml.

After updating the configmap, run this command to apply changes kubectl rollout restart deployment deployment.

Enjoy!