Is it possible to fail/terminate pod creation from a Python script executed from an Init container?
Init container:
apiVersion: v1kind: Podmetadata: name: myapp-pod labels: app.kubernetes.io/name: MyAppspec: containers: - name: myapp-container image: busybox:1.28 command: ['sh', '-c', 'echo The app is running! && sleep 3600'] initContainers: - name: init-myservice image: busybox:1.28 command: ["python3", "/scripts/example.py"]
example.py
What would this Python script contain?
Thanks!