Sorry, you need to enable JavaScript to visit this website.
Skip to main content
Redhat Developers  Logo
  • Start building apps

    Try Red Hat products now

    • Developer Sandbox for Red Hat OpenShift
      Try Red Hat's products and technologies without setup or configuration free for 30 days with this shared OpenShift and Kubernetes cluster.

    Hands-on learning

    • Learning paths
      Customize your learning to align with your needs and make the most of your time by exploring our massive collection of paths and lessons.

    Looking for more?

    • Start building modern apps
  • Products & technologies

    Linux

    • Red Hat Enterprise Linux
      A stable, proven foundation that's versatile enough for rolling out new applications, virtualizing environments, and creating a secure hybrid cloud.
    • Red Hat Universal Base Images (UBI)
    • Containers

    Cloud-native

    • Red Hat OpenShift
      Open, hybrid-cloud Kubernetes platform to build, run, and scale container-based applications -- now with developer tools, CI/CD, and release management.
    • Kubernetes
    • Red Hat Integration
    • Cloud Native Application Development and Delivery Platform

    Automation

    • Red Hat Ansible Automation Platform
      Automate your cloud provisioning, application deployment, configuration management, and more with this simple yet powerful automation engine.
    • CI/CD
    • DevOps

    Java

    • Java runtimes and frameworks
      Deploy your application safely and securely into your production environment without system or resource limitations.
    • Java for developers
    • Event-driven architecture
    • Quarkus

    Looking for more

    • See all Red Hat Products
    • Browse all technologies
  • Events

    Join the DevNation community

    • DevNation events calendar
      Join us for online events, or attend regional events held around the world—you'll meet peers, industry leaders, and Red Hat's Developer Evangelists and OpenShift Developer Advocates.

    Looking for more?

    • Explore all developer events
  • Learn

    Featured free learning paths

    • Openshift & Kubernetes learning
    • OpenShift Data Science learning
    • OpenShift Streams for Apache Kafka learning
    • OpenShift API Management learning

    More developer resources

    • Cheat sheets
    • E-books
    • Interactive tutorials
    • Blogs and articles

    Looking for more?

    • Start learning now
  • OpenShift sandbox

    OpenShift developer sandbox (free)

    • Try hands-on activities in the OpenShift Sandbox
      Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore the sandbox IDE

    Featured sandbox activities

    • Deploy a Java application on Kubernetes in minutes
    • Learn Kubernetes using the OpenShift sandbox
    • Deploy full-stack JavaScript apps to the Sandbox

    Ready to start developing apps?

    • Explore the free OpenShift Sandbox
  • DevNation

    Explore the community

    • What’s DevNation?
      Join developers across the globe for live and virtual events led by Red Hat technology experts.
    • Deep Dives
    • Tech Talks
    • The Show

    Upstream communities

    • Camel K
    • CentOS
    • Istio
    • Quarkus

    Looking for more DevNation?

    • Explore DevNation
  • Blog

< DevNation Day India

DevNation Day India 2021 - Demystify Helm Chart Hooks

 

Abstract

Helm provides a mechanism in the form of hooks to intervene at certain points in a deployment life cycle. In this talk, I will explain hooks in the simplest form along with a Practical use case. I will showcase DB initialization post-install, DB backup pre-upgrade & more such use cases for MySQL DB.

Helm Chart deployment life cycle comprises of following:

  1. Install
  2. Upgrade
  3. Rollback (In case of failure)
  4. Delete

So If you want to perform a certain task at a particular stage before or after then hooks become the obvious choice. Helm provides a total of 9 Hooks, Two (Pre & Post) for each stage for e.g. pre-install & post-install, and one for the test.

To explain the hooks I will use MySQL DB in the form of a container. I will showcase the following scenarios with MySQL DB deployment lifecycle:

  1. DB initialization post-install.
  2. DB backup pre-upgrade.
  3. DB restore post-rollback.
  4. Clean up post-delete

All the above scenarios are practical and widely performed by DB Admins. With Helm Hooks, I am trying to automate all these tasks through Kubernetes Job.

The talk will include both a presentation and a demo on the above scenarios.

  Sagar Jadhav, Software Engineer, IBM

Sagar Jadhav has over 8+ years of experience in Software Development. He has experience in a wide range of tools & technologies such as Java, Cloud, Kubernetes, Golang, Terraform, etc. He is currently working as a Software Engineer at IBM. He is working in Hybrid Cloud Space and currently working on a product used for Infrastructure automation and management. He is always keen to learn new technologies specifically related to DevOps & Cloud-Native and also believes in sharing the same with others through meetups, conferences, webinars & blogs. Find him on LinkedIn.

  • Featured Topics
    • Istio
    • Quarkus
    • CI/CD
    • Serverless
    • Enterprise Java
    • Linux
    • Microservices
    • DevOps
  • Build
    • Developer Tools
    • Interactive Tutorials
    • Container Catalog
    • Operators Marketplace
    • Certify Applications
    • Red Hat on Github
  • Quicklinks
    • What's new
    • DevNation events
    • Books
    • Cheat Sheets
    • Videos
    • Products
  • Communicate
    • Site Status Dashboard
    • Report a security problem
    • Helping during COVID-19
    • About Red Hat Developers
    • Contact Sales

Red Hat Developer

Build here. Go anywhere.

We serve the builders. The problem solvers who create careers with code.

Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

Sign me up
Red Hat Logo
  • ©2023 Red Hat, Inc.
  • Privacy Statement
  • Terms of Use
  • All policies and guidelines
Red Hat Summit