<p>I have application that is using Helm charts to be deployed. On first <code>helm upgrade --install</code> command everything works as expected but second time I have this error:</p>
<pre><code>Error: UPGRADE FAILED: failed to replace object: PersistentVolumeClaim &quot;logs&quot; is invalid: spec: Forbidden: is immutable after creation except resources.requests for bound claims &amp;&amp; failed to replace object: Service &quot;application&quot; is invalid: spec.clusterIP: Invalid value: &quot;&quot;: field is immutable
</code></pre>
<p>here is my <code>application-deployment.yaml</code>:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: application
  name: application
spec:
  selector:
    matchLabels:
      app: application
  replicas: 1
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: application
    spec:
      imagePullSecrets:
        - name: aws-registry
      containers:
      - image: &quot;{{ .Values.image.repository }}:{{ .Values.image.tag }}&quot;
        imagePullPolicy: Always
        name: application
        resources: {}
        volumeMounts:
        - mountPath: /app/var/logs
          name: logs
      restartPolicy: Always
      volumes:
      - name: logs
        persistentVolumeClaim:
          claimName: logs
</code></pre>
<p>here is <code>application-service.yaml</code>:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  labels:
    app: application
  name: application
spec:
  ports:
  - port: 9000
    protocol: TCP
    targetPort: 9000
  selector:
    app: application
</code></pre>
<p>and here is <code>logs-pvc.yaml</code>:</p>
<pre><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: middleware-logs
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 400Mi
status: {}
</code></pre>
<p>I don't have any idea how to solve this it is impossible that once created pvc or service can't be change so I am guessint that I am doing something wrong but not sure what.</p>

<p>Removing --force from helm upgrade solved my issue.</p>
