How to initialize systemd services in kubernetes pod?
To solve this issue you can use kubernetes init container which run first before the main container creation and start the necessary services.
apiVersion: v1kind: Podmetadata: name: myapp-pod labels: app: myappspec: initContainers: - name: check-system-ready image: busybox command: ['sh', '-c', 'Your sysntax for systemd'] containers: - your container spec
Sharing here official kubernetes init container doc : https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-initialization/