{
    "componentChunkName": "component---src-templates-post-js",
    "path": "/post/gke/",
    "result": {"pageContext":{"post":{"title":"GKE","description":null,"slug":"gke","coverImage":null,"publishDate":"2021-10-06","bodyMarkdown":{"childMarkdownRemark":{"html":"<h4>setting gcloud</h4>\n<p>gcloud init</p>\n<h4>Update components</h4>\n<p>gcloud components update\ngcloud components update kubectl</p>\n<h5>Set CLUSTER_NAM and NODE_POOL</h5>\n<p>CLUSTER_NAME=\"hogehoge-cluster\"\nNODE_POOL=\"stable-node\"\nZONE=\"asia-northeast1-a\"</p>\n<h4>Create clustor and nodes</h4>\n<p>gcloud container clusters create $CLUSTER_NAME --preemptible --machine-type=g1-small --num-nodes 1 --disk-size 10 --zone $ZONE\ngcloud container node-pools create $NODE_POOL --cluster $CLUSTER_NAME --machine-type=g1-small --num-nodes 1 --disk-size 10 --zone $ZONE</p>\n<h4>Show clustor</h4>\n<p>gcloud container node-pools list --cluster $CLUSTER_NAME</p>\n<h4>Show credentials</h4>\n<p>gcloud container clusters get-credentials $CLUSTER_NAME</p>\n<h4>Show token</h4>\n<p>kubectl describe secrets</p>\n<h4>Delete clustor</h4>\n<p>gcloud container clusters delete  $CLUSTER_NAME</p>"},"bodyMarkdown":"#### setting gcloud\ngcloud init\n\n#### Update components\ngcloud components update\ngcloud components update kubectl\n\n##### Set CLUSTER_NAM and NODE_POOL\nCLUSTER_NAME=\"hogehoge-cluster\"\nNODE_POOL=\"stable-node\"\nZONE=\"asia-northeast1-a\"\n\n#### Create clustor and nodes\ngcloud container clusters create $CLUSTER_NAME --preemptible --machine-type=g1-small --num-nodes 1 --disk-size 10 --zone $ZONE\ngcloud container node-pools create $NODE_POOL --cluster $CLUSTER_NAME --machine-type=g1-small --num-nodes 1 --disk-size 10 --zone $ZONE\n\n#### Show clustor\ngcloud container node-pools list --cluster $CLUSTER_NAME\n\n#### Show credentials\ngcloud container clusters get-credentials $CLUSTER_NAME\n\n#### Show token\nkubectl describe secrets\n\n#### Delete clustor\ngcloud container clusters delete  $CLUSTER_NAME"}}}},
    "staticQueryHashes": ["3000541721"]}