How Can We Help?
Failed to execute the action: exit status 1: Error: UPGRADE FAILED: “<app name>” has no deployed releases
If you get this command its most likely that you have an issue with your Helm deployment.yaml file. It is basically saying that no value has been set for the template value app.
Location: chart//templates/deployment.yaml
Fix:
Add in a new object called selector with has your app name in.
For example for the app ‘nodehelloworld’:
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Chart.Name }}-deployment"
labels:
chart: '{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}'
app: "{{ .Chart.Name }}"
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
# BEGIN PATCH
selector:
matchLabels:
app: nodehelloworld
# END PATCH
template:
metadata:
labels:
app: "{{ .Chart.Name }}"
version: "current"
...