Is there any way to stop restarting pod again and again when inside container fails.
simple way to check this is to pass [ "exit", "1" ]
to pod as-
enter code here
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
labels:
app: myapp
spec:
containers:
- name: myapp-container
image: alpine:latest
command: ['sh','-c','exit','1']
Note -
RestartPolicy : Never
this option is unsupported.