MongoDB-Datenbank mit StatefulSets in Kubernetes ausführenZum Lab
had issue with the lab. the command <kubectl apply -f mongo-statefulset.yaml> did not work with the current version of cluster (>=v1.16). Had to fall back to creating the cluster with v1.15 - you will need to update the instructions for the same.
Mongo DB sidecar configuration is not correct
'kubectl apply -f mongo-statefulset.yaml' kept giving error - 'error: unable to recognize "mongo-statefulset.yaml": no matches for kind "StatefulSet" in version "apps/v1beta1"'
statefulset Object 배포를 이해했습니다.
outdated yaml file for mongo db
apiversion for statefulset was wrong and should have been "apps/v1" this caused a lot of issues and made it impossible to finish the lab as expected.
Change your gke cluster version to 1.15 or else it will not work.
The version of the statefulset.yaml needs update as the kubernetes API on GKE was upgradet from beta for v1.