Skip to content
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

Not able to deploy to gcp with mysql 8 image #22

Open
MelulekiDube opened this issue Oct 17, 2023 · 1 comment
Open

Not able to deploy to gcp with mysql 8 image #22

MelulekiDube opened this issue Oct 17, 2023 · 1 comment

Comments

@MelulekiDube
Copy link
Contributor

MelulekiDube commented Oct 17, 2023

The terraform scripts we provide are currently not working properly with the following errors:
db container: Suggestion from the error is that the posthook script used failed to run:

Exec lifecycle hook ([<command>]) for Container "db-server" in Pod "db-0_default(9c22863b-e4ef-45d9-a2a8-043855956fe7)" failed - error: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "34d74b9f8c016cb1305da691ddcaa3621a6f2b35eddbfca1c7733d356b5f879b": OCI runtime exec failed: exec failed: unable to start container process: read init-p: connection reset by peer: unknown, message: ""

Reproducing steps:
To be able to get detailed error messages ensure that the nodes for db and master are using kubernetes version 1.25 and below lilke this by specifying the following:
Get the list of supported master and node level kubernetes version using(ensure that you have set up gclound and already have run gcloud init):
gcloud container get-server-config --zone us-west1-a
On master specify the node_version and min_master_version to some value below or equal to 1.25, to get possible values for any of these for instance:

 min_master_version = "1.24.14-gke.2700"
 node_version   = "1.24.14-gke.2700"

On the db Node pool update the kubernetes version with also another version less than or equal to 1.25 for instance:
version = "1.24.14-gke.2700"
Run terraform apply now and then use kubectl describe pod to get the above logs.

@JefriReynaldi
Copy link

Exec lifecycle hook ([]) for Container "db-server" in Pod "db-0_default(9c22863b-e4ef-45d9-a2a8-043855956fe7)" failed - error: rpc error: code = Unknown desc = failed to exec in container: failed to start exec "34d74b9f8c016cb1305da691ddcaa3621a6f2b35eddbfca1c7733d356b5f879b": OCI runtime exec failed: exec failed: unable to start container process: read init-p: connection reset by peer: unknown, message: ""
min_master_version = "1.24.14-gke.2700"
node_version = "1.24.14-gke.2700"
min_master_version = "1.24.14-gke.2700"
node_version = "1.24.14-gke.2700"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@MelulekiDube @JefriReynaldi and others