Yes, you can add multiple containers with the same image.
The container object must contain:
- Name: The name of the container. It must be DNS_LABEL and be
unique inside the module. Unable to update. - image: The name of the docker image.
You need to make a unique container name
You can do the following:
- name: app image: php-app-db-url-env --- - name: app2 |> same image image: php-app-db-url-env ---
But not this one:
- name: app image: php-app-db-url-env - name: app image: <any image>
Also, the container specification should include a unique port number in the Pod
source share