Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Latest commit

 

History

History
executable file
·
38 lines (31 loc) · 1.03 KB

updating_the_app.md

File metadata and controls

executable file
·
38 lines (31 loc) · 1.03 KB

Updating the application

Once you've made some code changes, you'll want to redeploy the app. But helm upgrade --install [name] chart/[name] will say there's nothing to do unless the associated deployment yaml is modified. In a production setting this would occur by setting the specific version of the associated image. When testing locally you can add another label to spec.template.metadata.labels, or modify the value of an existing one. For example,

spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: webapp-deployment

can become:

spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: webapp-deployment
        dummy: version1

and then next time:

spec:
  replicas: 1
  template:
    metadata:
      labels:
        name: webapp-deployment
        dummy: version2

There's a bug in Kubernetes where this will sometimes not work. Do please help us understand, better work around, document, track and perhaps even fix this problem.