# Linkerd viz error for initcontainer

**URL:** <https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228>\
**Category:** Linkerd General Discussion\
**Tags:** metrics\
**Created:** [August 16, 2023, 10:15am UTC](https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228 "2023-08-16T10:15:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kuppusamy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@Kuppusamy](https://linkerd.buoyant.io/u/Kuppusamy)\
**Post date:** [August 16, 2023, 10:15am UTC](https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228/1 "2023-08-16T10:15:30Z")

</div>

Installed linkerd stable-2.13.5 in an air gapped environment. Copied all the images based on yaml. The check after installation of linkerd is fine. But when trying to install viz plugin, all deployments - metrics-api, prometheus, tap, tap-injector and web - throwing error as below:

Error creating: Pod “metrics-api-2323ksadsa0asdfas” is invalid: [spec.initcontainers[0].name: Required value]

The cluster is running in Kubernetes v1.21.

Any one got such errors previously and any pointers for the fix?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![alpeb](https://yyz1.discourse-cdn.com/flex029/user_avatar/linkerd.buoyant.io/alpeb/32/61_2.png) [@alpeb](https://linkerd.buoyant.io/u/alpeb)\
**Post date:** [August 16, 2023, 2:19pm UTC](https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228/2 "2023-08-16T14:19:36Z")

</div>

Before installing linkerd-viz, did you wait for the linkerd core control plane to become ready? The linkerd-proxy-injector in particular needs to be ready in order to inject the linkerd-init initContainer and linkerd-proxy container when the viz workloads are deployed. Can you share the metrics-api pod yaml to see what could be going on?

---

<div class="post-metadata">

**Author:** ![Kuppusamy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@Kuppusamy](https://linkerd.buoyant.io/u/Kuppusamy)\
**Post date:** [August 16, 2023, 2:26pm UTC](https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228/3 "2023-08-16T14:26:47Z")

</div>

Yes…all the four deployments in linkerd namespace were up.

The viz yml used to create the workloads is [here](https://drive.google.com/file/d/1nj8hvRR_nSreoqKhf3KukEXPVulqEiuM/view?usp=drive_link)

---

<div class="post-metadata">

**Author:** ![alpeb](https://yyz1.discourse-cdn.com/flex029/user_avatar/linkerd.buoyant.io/alpeb/32/61_2.png) [@alpeb](https://linkerd.buoyant.io/u/alpeb)\
**Post date:** [August 17, 2023, 7:14pm UTC](https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228/4 "2023-08-17T19:14:48Z")

</div>

That yaml seems fine, and applying it on a cluster with a healthy linkerd instance brings up viz fine…  
Can you share the yaml of the actual metrics-api pod, not its deployment?

---

<div class="post-metadata">

**Author:** ![Kuppusamy](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@Kuppusamy](https://linkerd.buoyant.io/u/Kuppusamy)\
**Post date:** [August 28, 2023, 1:42pm UTC](https://linkerd.buoyant.io/t/linkerd-viz-error-for-initcontainer/228/5 "2023-08-28T13:42:37Z")

</div>

The POD keep crashing and i am not able to describe the POD to get the yaml. I just added some zipkin as an init container but now complaining as spec.initcontainers[1].name: Required value. Not sure how this list of arrays and validations are coming up.
