<p>How to create in kubernetes deployment on nginx which will create custom index.html?</p>
<p>is there a way how to create custom index.hmtl with a text: &quot;welcome to the lab&quot;?
Or its not possible to do that? Or I should use ConfigmaP? Thank you for your time:</p>

Kwaker
<p>To create custom <code>index.hmtl</code> with a text <code>&quot;welcome to the lab&quot;</code>, you need to build your own docker image and then by using that image you can create the kubernetes deployment.</p>
<pre><code>containers:
      - name: nginx
        image: nginx
        ports:
        - containerPort: 80
</code></pre>
<p>here, in the manifest you are giving the specification of the container, where you used <code>nginx</code> image and you can not change the image as you have no access of the <code>dockerfile</code> by which that image were created.</p>
<p>In your <code>deployment</code> manifest you give two specification, in outer specification you give the <code>replicas</code> which means how many replica of your application need to run. Another specification is the container specification, here you give your application <code>image</code> which can be your own <code>image</code> or others image like <code>nginx</code>, now the when the deployment create successfully and also the pods then you will only see the things that was defined in your used application image. So, you if you want different things than you need different image containing your desired outputs.</p>
