Hello Node Kubernetes のレビュー

Hello Node Kubernetes のレビュー

20523 件のレビュー

When building/running the docker image, the PROJECT_ID won't exist if copied as is. How about using an environment variable: PROJECT_ID=$(gcloud config list --format 'value(core.project)') docker build -t gcr.io/$PROJECT_ID/hello-node:v1 . docker run -d -p 8080:8080 gcr.io/$PROJECT_ID/hello-node:v1 ... There's also a warning that `gcloud docker` won't be supported in the future, so we might as well update the commands to use `gcloud auth configure-docker` Editing the deployment (kubectl edit deployment hello-node) and copying-pasting the new config gives me an error: A copy of your changes has been stored to "/tmp/kubectl-edit-fplln.yaml" error: no original object found for &unstructured.Unstructured{Object:map[string]interface {}{"apiVersion":"extensions/v1beta1", "kind":"Deployment", "metadata":map[string]interface {}{"namespace":"default", "resourceVersion":"151017", "uid":"981fe302-f1e9-11e5-9a78-42010af00005", "annotations":map[string]interface {}{"deployment.kubernetes.io/revision":"1"}, "g eneration":3, "labels":map[string]interface {}{"run":"hello-node"}, "name":"hello-node", "selfLink":"/apis/extensions/v1beta1/namespaces/default/deployments/hello-node", "creationTim estamp":"2016-03-24T17:55:28Z"}, "spec":map[string]interface {}{"replicas":4, "selector":map[string]interface {}{"matchLabels":map[string]interface {}{"run":"hello-node"}}, "strategy ":map[string]interface {}{"type":"RollingUpdate", "rollingUpdate":map[string]interface {}{"maxSurge":1, "maxUnavailable":1}}, "template":map[string]interface {}{"metadata":map[string ]interface {}{"creationTimestamp":interface {}(nil), "labels":map[string]interface {}{"run":"hello-node"}}, "spec":map[string]interface {}{"containers":[]interface {}{map[string]inte rface {}{"terminationMessagePath":"/dev/termination-log", "image":"gcr.io/PROJECT_ID/hello-node:v1", "imagePullPolicy":"IfNotPresent", "name":"hello-node", "ports":[]interface {}{map [string]interface {}{"containerPort":8080, "protocol":"TCP"}}, "resources":map[string]interface {}{}}}, "dnsPolicy":"ClusterFirst", "restartPolicy":"Always", "securityContext":map[st ring]interface {}{}, "terminationGracePeriodSeconds":30}}}}} After exploring it, it's also because there are mentions of PROJECT_ID, we just have to mention to replace it with your actual project ID

Cavazos David · 6年弱前にレビュー済み

When building/running the docker image, the PROJECT_ID won't exist if copied as is. How about using an environment variable: PROJECT_ID=$(gcloud config list --format 'value(core.project)') docker build -t gcr.io/$PROJECT_ID/hello-node:v1 . docker run -d -p 8080:8080 gcr.io/$PROJECT_ID/hello-node:v1 ... There's also a warning that `gcloud docker` won't be supported in the future, so we might as well update the commands to use `gcloud auth configure-docker` Editing the deployment (kubectl edit deployment hello-node) and copying-pasting the new config gives me an error: A copy of your changes has been stored to "/tmp/kubectl-edit-fplln.yaml" error: no original object found for &unstructured.Unstructured{Object:map[string]interface {}{"apiVersion":"extensions/v1beta1", "kind":"Deployment", "metadata":map[string]interface {}{"namespace":"default", "resourceVersion":"151017", "uid":"981fe302-f1e9-11e5-9a78-42010af00005", "annotations":map[string]interface {}{"deployment.kubernetes.io/revision":"1"}, "g eneration":3, "labels":map[string]interface {}{"run":"hello-node"}, "name":"hello-node", "selfLink":"/apis/extensions/v1beta1/namespaces/default/deployments/hello-node", "creationTim estamp":"2016-03-24T17:55:28Z"}, "spec":map[string]interface {}{"replicas":4, "selector":map[string]interface {}{"matchLabels":map[string]interface {}{"run":"hello-node"}}, "strategy ":map[string]interface {}{"type":"RollingUpdate", "rollingUpdate":map[string]interface {}{"maxSurge":1, "maxUnavailable":1}}, "template":map[string]interface {}{"metadata":map[string ]interface {}{"creationTimestamp":interface {}(nil), "labels":map[string]interface {}{"run":"hello-node"}}, "spec":map[string]interface {}{"containers":[]interface {}{map[string]inte rface {}{"terminationMessagePath":"/dev/termination-log", "image":"gcr.io/PROJECT_ID/hello-node:v1", "imagePullPolicy":"IfNotPresent", "name":"hello-node", "ports":[]interface {}{map [string]interface {}{"containerPort":8080, "protocol":"TCP"}}, "resources":map[string]interface {}{}}}, "dnsPolicy":"ClusterFirst", "restartPolicy":"Always", "securityContext":map[st ring]interface {}{}, "terminationGracePeriodSeconds":30}}}}} After exploring it, it's also because there are mentions of PROJECT_ID, we just have to mention to replace it with your actual project ID

Cavazos David · 6年弱前にレビュー済み

Storrier Jimmy · 6年弱前にレビュー済み

Peat Morgan · 6年弱前にレビュー済み

Intoum Itsarapong · 6年弱前にレビュー済み

thankyou

Kanapi Jerick Oasan · 6年弱前にレビュー済み

Lin HungWei · 6年弱前にレビュー済み

Token for the kubernetes dashboard at the end didn't work for myself and a colleague

Frost Chris · 6年弱前にレビュー済み

Lin HungWei · 6年弱前にレビュー済み

Couldn't authenticate with the token to see the kubernetes UI

Mehdi Tomas · 6年弱前にレビュー済み

Excellent!

Talampas Christian De Vera · 6年弱前にレビュー済み

Poupore Walter · 6年弱前にレビュー済み

Gonzalez Morales Rodrigo · 6年弱前にレビュー済み

amazing, it's easy to make cluster

Wahyudiono Agung · 6年弱前にレビュー済み

Wan Pak Ming · 6年弱前にレビュー済み

Schneider Leo · 6年弱前にレビュー済み

Wan Pak Ming · 6年弱前にレビュー済み

Lab needs update: Before deploying on GKE, kubectl needs credentials, which can be acquired through "gcloud container clusters get-credentials hello-world --zone=<ZONE.

Bavinck Peter · 6年弱前にレビュー済み

yes thanks!

Segador Caronan Romar · 6年弱前にレビュー済み

Dimaano Reyes Gabrielle Ann · 6年弱前にレビュー済み

great!

echica karen · 6年弱前にレビュー済み

great!

echica karen · 6年弱前にレビュー済み

Excellent!

Talampas Christian De Vera · 6年弱前にレビュー済み

Schneider Leo · 6年弱前にレビュー済み

great

Wang Jemmy · 6年弱前にレビュー済み

公開されたレビューが、製品を購入または使用した人によるものであることは保証されません。Google はこれらのレビューの検証を行っていません。