Skip to content

The Pod is invalid: spec.containers[0].restartPolicy: Forbidden: may not be set for non-init containers #53

@kishor7007

Description

@kishor7007

Running kubectl exec-as -u root -n default -c istio-proxy -d sleep-db7f48c4-spbgw -- /bin/bash command throws below error
The Pod "kishor-1" is invalid: spec.containers[0].restartPolicy: Forbidden: may not be set for non-init containers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions