<p>I have this deployment:</p>

<p><a href="https://i.stack.imgur.com/hk8yl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hk8yl.jpg" alt="enter image description here"></a></p>

<p>I was able to edit the index page at one of my pods, but how can I commit it to the deployment image? So when I scale the application all new pods will have the same image with index edited.</p>

<p>It's worked for me</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
    ports:
      - containerPort: 80
    volumeMounts:
      - mountPath: /usr/share/nginx/html/index.html
        name: nginx-conf
        subPath: index.html
  volumes:
    - name: nginx-conf
      configMap:
        name: nginx-index-html-configmap
</code></pre>

<p>And simple configmap with:</p>

<pre><code>data:
&lt;html&gt;&lt;/html&gt;
</code></pre>
