-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Vault pod is not ready after I restart my computer #326
Comments
Vault is very complicated. You have to start Vault, but it won't work until it's unsealed and inititalized. We decided to have the Sales-Api service do this in the initContainer. So, until the initContainer runs, Vault is useless. I believe we are using cluster level persisted storage for what we need to do to init the system and I would have expected that to help in the situation you are experiencing. Beyond this information, I'm not sure. |
Thanks. Are you experiencing the same situation? I'm not sure if this is a known issue of the project, or if have I done something wrong with my code. |
I will run the project again shortly. Maybe I broke something in the past 24 hours. |
The code is working. I did push changes if you want to run the latest. |
Hi @ardan-bkennedy, I pulled your latest code and started the cluster, everything was ok. But after I restarted my Docker Desktop, the |
Having sleeping on it I think the problem might be the order docker is restarting the containers. It's critical that vault is started before sales and there is time between the two. I made some changes to the apply to test things out. I just start the observability services without waiting first, then I start the vault, database, wait, sales. I always bring down the cluster every night, but even when I just put my machine to sleep I don't have issues. I am curious why you are restarting docker? |
Having slept on it I think the problem might be the order docker is restarting the containers. It's critical that vault is started before sales and there is time between the two. I made some changes to the apply to test things out. I just start the observability services without waiting first, then I start the vault, database, wait, sales. I always bring down the cluster every night, but even when I just put my machine to sleep I don't have issues. I am curious why you are restarting docker? |
Having sleeping on it I think the problem might be the order docker is restarting the containers. It's critical that vault is started before sales and there is time between the two. I made some changes to the apply to test things out. I just start the observability services without waiting first, then I start the vault, database, wait, sales. I always bring down the cluster every night, but even when I just put my machine to sleep I don't have issues. I am curious why you are restarting docker? |
I don't think putting the machine to sleep will cause the issue. I only ran into this situation when I shut down my computer and then started it again to continue my work. In other words, this issue happens as my Docker gets restarted. |
Look at the changes to apply, this has sped up the time it takes to bring up the cluster. I NEVER shut my machine down. Have you tried just putting your machine to sleep instead of shutting it down all the time? I have a solution for the DB. You can run the database outside the cluster and keep the volume around. Read the dev-database-external.yaml file. |
Yes, I think an external database will work. Just wonder if is there anything that we can do with Vault instead. |
You don't need value. Use my in-memory keystore. |
Yes,thanks |
Why does the Vault pod keep becoming not ready every time I restart my computer? To fix this, I have to delete the cluster and start it again. Thanks.
![Screenshot 2023-10-30 at 21 44 35](https://private-user-images.githubusercontent.com/15848072/279096449-ba0d04ba-1485-4029-bd6a-8354b6811061.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMyNTMzMDgsIm5iZiI6MTcyMzI1MzAwOCwicGF0aCI6Ii8xNTg0ODA3Mi8yNzkwOTY0NDktYmEwZDA0YmEtMTQ4NS00MDI5LWJkNmEtODM1NGI2ODExMDYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEwVDAxMjMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiMGRhMWU0NDg5YmZhNzI1NmUzNjNmZTcxMmUzMDE5NWZjN2VlY2U4MDhmMjY5ZDBkZmU0OWNhOGFhYmFjZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9hxHHqfLgRK9xKLM5jTZPAbBC8taoBqkLrM-opUZe6E)
The text was updated successfully, but these errors were encountered: