Skip to content

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

Open
@MelulekiDube

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions