Hello everyone,
I'd like to ask if it's possible to start a kubernetes pod without starting the application. many knowledge base articles have "Stop jira" as the first step but that's not really possible if it's deployed via kubernetes as far as I know right?
Our setup is official helm chart deployed on aws eks. My use case is testing out things and maintenance, manipulating file system which is locked when the app is running. when I shut down the pod I can't access the file system.
Big thanks in advance to any reply.
Lubos
@Lubos Valco command and args can't be overridden. What you can do, however, is declare additionalInitContainer that mounts shared home (or shared and local home if necessary) with some sleep infinity command:
additionalInitContainers:
- name: debug
image: ubuntu
command: ["/bin/bash"]
args: ["-c", "sleep infinity"]
volumeMounts:
- name: shared-home
mountPath: /shared-home
You can then exec into this init container and inspect the filesystem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.